/* Reset & 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: #e0e0e0;
    background-color: #0f0f1e;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f1e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #b8b8d1;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Subscribe Form */
.subscribe-form {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.email-input {
    flex: 1;
    padding: 18px 24px;
    font-size: 1rem;
    border: 2px solid #3a3a5a;
    border-radius: 12px;
    background: rgba(30, 30, 63, 0.6);
    color: #ffffff;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(30, 30, 63, 0.9);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.submit-btn {
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.form-hint {
    font-size: 0.875rem;
    color: #8b8ba7;
    text-align: center;
}

/* Success/Error Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-message {
    background: rgba(72, 187, 120, 0.2);
    border: 2px solid #48bb78;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    color: #48bb78;
    margin-bottom: 0.5rem;
}

.error-message {
    background: rgba(245, 101, 101, 0.2);
    border: 2px solid #f56565;
}

.error-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.error-message p {
    color: #f56565;
    font-weight: 600;
}

/* Preview Section */
.preview {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: #ffffff;
}

.preview-card {
    max-width: 800px;
    margin: 0 auto 4rem;
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.preview-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.preview-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 3px solid #3a3a5a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.preview-headline {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.preview-summary {
    font-size: 1.125rem;
    color: #b8b8d1;
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: rgba(30, 30, 63, 0.5);
    border-radius: 12px;
    border: 2px solid #3a3a5a;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #8b8ba7;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #0a0a15;
    padding: 3rem 20px;
    text-align: center;
    color: #7a7a9e;
    font-size: 0.875rem;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-links {
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .form-group {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .preview-card {
        padding: 24px;
    }

    .preview-headline {
        font-size: 1.5rem;
    }
}

/* Today's Breaking News & Archive */
.today, .archive {
    padding: 80px 20px;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
}

.digest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.breaking-card {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #3a3a5a;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.breaking-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
}

.breaking-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.breaking-card-content {
    padding: 25px;
}

.breaking-card-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.breaking-card-summary {
    color: #b8b8d1;
    font-size: 15px;
    line-height: 1.6;
}

/* Archive Picker */
.archive-picker {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.archive-picker label {
    color: #b8b8d1;
    font-size: 16px;
    font-weight: 600;
}

#date-picker {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #3a3a5a;
    border-radius: 10px;
    background: rgba(30, 30, 63, 0.6);
    color: #ffffff;
    transition: all 0.3s ease;
}

#date-picker:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(30, 30, 63, 0.9);
}

.archive-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.archive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
    .digest-grid {
        grid-template-columns: 1fr;
    }
}
