/* ==========================================================================
   Global Styles - Baby Girl Teaser Page
   Optimized for Performance & SEO
   ========================================================================== */

:root {
    /* Color palette inspired by invitation design */
    --cream: #f5e6d3;
    --light-pink: #f4a8c5;
    --soft-pink: #e8b4c9;
    --light-blue: #f0a8d5;
    --soft-blue: #f0b8e0;
    --gold: #daa546;
    --peach: #e8b88a;
    --dark-text: #2c1810;
    --light-text: #5a4a42;
    --white: #ffffff;
    
    /* Typography - System fonts (self-hosted, fast loading) */
    --font-serif: Georgia, 'Garamond', 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Typography */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, var(--cream) 0%, #faf2e3 100%);
    color: var(--dark-text);
    line-height: 1.6;
    letter-spacing: 0.3px;
    overflow-x: hidden;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 230, 211, 0.9) 100%);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid rgba(218, 165, 70, 0.2);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--soft-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 2px;
    animation: fadeIn 1.2s ease-out;
}

.tagline {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

/* Hero Section */
.hero {
    position: relative;
    margin-bottom: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    border-radius: var(--radius-lg);
    animation: slideIn 1s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 168, 197, 0.15) 0%, rgba(168, 213, 240, 0.15) 100%);
    pointer-events: none;
    border-radius: var(--radius-lg);
}

/* Announcement Section */
.announcement {
    background: linear-gradient(135deg, var(--white) 0%, rgba(248, 244, 240, 0.8) 100%);
    padding: var(--spacing-2xl) var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-2xl);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(244, 168, 197, 0.2);
    animation: fadeIn 1.4s ease-out;
}

.announcement-content h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--dark-text);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    letter-spacing: 1px;
}

.announcement-text {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.excitement-text {
    font-size: 1.1rem;
    color: var(--light-pink);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

/* Decoration */
.decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.8rem;
    animation: float 3s ease-in-out infinite;
}

.heart {
    color: var(--light-pink);
}

.sparkle {
    color: var(--gold);
}

/* Celebration Section */
.celebration {
    background: linear-gradient(135deg, rgba(168, 213, 240, 0.15) 0%, rgba(244, 168, 197, 0.15) 100%);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    border: 1px solid rgba(168, 213, 240, 0.3);
    animation: fadeIn 1.6s ease-out;
}

.celebration-content h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--light-pink);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.celebration-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.celebration-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: linear-gradient(180deg, rgba(245, 230, 211, 0.8) 0%, var(--cream) 100%);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    border-top: 1px solid rgba(218, 165, 70, 0.2);
    margin-top: var(--spacing-2xl);
}

.footer-content p {
    font-size: 0.95rem;
    color: var(--light-text);
    letter-spacing: 0.5px;
}

.heart-symbol {
    color: var(--light-pink);
    margin: 0 var(--spacing-xs);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet & smaller screens */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.8rem;
    }
    
    .announcement-content h2 {
        font-size: 2.5rem;
    }
    
    .celebration-content h3 {
        font-size: 1.6rem;
    }
    
    .announcement-text {
        font-size: 1.1rem;
    }
    
    .celebration-content p {
        font-size: 1rem;
    }
    
    main {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .announcement {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

/* Mobile screens */
@media (max-width: 480px) {
    :root {
        --spacing-2xl: 2.5rem;
        --spacing-xl: 1.5rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .announcement-content h2 {
        font-size: 1.8rem;
    }
    
    .announcement-text {
        font-size: 1rem;
    }
    
    .excitement-text {
        font-size: 0.95rem;
    }
    
    .celebration-content h3 {
        font-size: 1.3rem;
    }
    
    .celebration-content p {
        font-size: 0.95rem;
    }
    
    .decoration {
        font-size: 1.4rem;
        gap: var(--spacing-sm);
    }
    
    header {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    main {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .hero {
        margin-bottom: var(--spacing-xl);
    }
}

/* Print styles */
@media print {
    header, footer {
        display: none;
    }
    
    body {
        background: var(--white);
    }
    
    .announcement, .celebration {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==========================================================================
   ACCESSIBILITY & PERFORMANCE
   ========================================================================== */

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Light theme is default, included above */
