/**
 * Unsubscribe Page Styles
 * Copyright (C) 2024 Lafab Solutions. All rights reserved.
 */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3c5f 0%, #2a5c84 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Content */
.content {
    padding: 50px 40px;
    text-align: center;
}

/* Icons */
.success-icon,
.error-icon {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce 0.5s ease-out;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.success-icon {
    color: #5cb85c;
}

.error-icon {
    color: #d9534f;
}

/* Headings */
.content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Message */
.message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Email Display */
.email-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 20px 0;
    word-break: break-all;
    border: 1px solid #e0e0e0;
}

/* Buttons */
.button {
    display: inline-block;
    background: #5cb85c;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: #4cae4c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 184, 92, 0.3);
    text-decoration: none;
    color: white;
}

.resubscribe {
    background: #f0ad4e;
    margin-left: 10px;
}

.resubscribe:hover {
    background: #ec971f;
    box-shadow: 0 5px 15px rgba(240, 173, 78, 0.3);
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 25px;
    text-align: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
}

.footer p {
    margin: 5px 0;
}

.brand {
    color: #1e3c5f;
    font-weight: bold;
    text-decoration: none;
}

.brand:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .content {
        padding: 30px 20px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 22px;
    }
    
    .content h2 {
        font-size: 20px;
    }
    
    .button {
        display: block;
        margin: 10px 0;
    }
    
    .resubscribe {
        margin-left: 0;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
    }
    
    .button {
        display: none;
    }
}