/* === SEO-OPTIMIZED BIRTHDAY GENERATOR CSS === */

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

:root {
    /* Primary Colors */
    --primary: #667eea;
    --primary-dark: #5a6fd8;
    --primary-light: #818cf8;
    
    /* Secondary Colors */
    --secondary: #f59e0b;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Pacifico', cursive;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 1000;
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-2);
    left: var(--space-2);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><path d="M0,20 Q250,0 500,20 T1000,20 V100 H0 Z"/></svg>') repeat-x bottom;
    background-size: 1000px 100px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.year-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.8em;
    margin-left: var(--space-2);
    animation: pulse 2s infinite;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    opacity: 0.9;
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Navigation */
.main-nav {
    background: var(--white);
    padding: var(--space-4) 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--gray-50);
    transform: translateY(-2px);
}

/* Main Content */
main {
    background: var(--white);
    margin: var(--space-8) 0;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.tool-section {
    display: none;
    padding: var(--space-12) 0;
}

.tool-section.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

.tool-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.tool-header h2 {
    font-size: 2.5rem;
    color: var(--gray-800);
    margin-bottom: var(--space-4);
}

.tool-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

/* Form Styles */
.form-group {
    margin-bottom: var(--space-6);
}

label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

input,
select,
textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

/* Preview Panels */
.preview-panel {
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preview-placeholder {
    text-align: center;
    color: var(--gray-400);
}

.preview-placeholder i {
    margin-bottom: var(--space-4);
}

.card-preview,
.wish-preview,
.countdown-preview {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.action-buttons {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ Section */
.faq-section {
    background: var(--gray-50);
    padding: var(--space-20) 0;
    margin-top: var(--space-12);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--gray-800);
    margin-bottom: var(--space-12);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.faq-item h3 {
    color: var(--gray-800);
    margin-bottom: var(--space-4);
    font-size: 1.3rem;
}

.faq-item p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Content Sections */
.content-section {
    padding: var(--space-16) 0;
    background: var(--white);
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--gray-800);
    margin-bottom: var(--space-12);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
}

.content-grid article {
    background: var(--gray-50);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: var(--transition-normal);
}

.content-grid article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.content-grid h3 {
    color: var(--gray-800);
    margin-bottom: var(--space-4);
    font-size: 1.5rem;
}

.content-grid p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-8);
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-2);
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-700);
    color: var(--gray-400);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: var(--space-16) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .tool-section {
        padding: var(--space-8) 0;
    }
    
    .tool-header h2 {
        font-size: 2rem;
    }
}

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

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

/* Generated Content Styles */
.generated-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.generated-wish {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
    font-style: italic;
    color: var(--gray-700);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.time-unit {
    background: var(--primary);
    color: white;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 80px;
}

.time-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.time-label {
    font-size: 0.8rem;
    opacity: 0.8;
}