/* ============================================
   ROMANTIC BIRTHDAY WEBSITE FOR MOURI
   Clean, elegant, and lovingly crafted
   ============================================ */

/* CSS Custom Properties (Variables) - Easy to customize */
:root {
    /* Color Palette - Soft Romantic Theme */
    --color-primary: #ff6b9d;          /* Soft pink */
    --color-primary-light: #ffb8d0;    /* Light pastel pink */
    --color-primary-dark: #e91e63;     /* Deeper pink for accents */
    --color-secondary: #f8e1e7;        /* Very light pink */
    --color-accent: #ffd1dc;           /* Blush pink */
    --color-gold: #f4d03f;             /* Subtle gold accent */
    
    /* Background Gradients */
    --gradient-birthday: linear-gradient(135deg, #fff5f7 0%, #ffeef2 25%, #ffe0e9 50%, #ffd1dc 75%, #ffc4d6 100%);
    --gradient-love: linear-gradient(180deg, #fef9fb 0%, #fdf2f5 30%, #fce8ed 70%, #fae0e7 100%);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    
    /* Font Sizes */
    --font-size-h1: clamp(2.5rem, 8vw, 4.5rem);
    --font-size-h2: clamp(1.8rem, 5vw, 2.8rem);
    --font-size-body: clamp(1rem, 2.5vw, 1.15rem);
    --font-size-small: 0.95rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(255, 107, 157, 0.15);
    --shadow-medium: 0 8px 30px rgba(255, 107, 157, 0.2);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s ease-in-out;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: #4a4a4a;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   BIRTHDAY PAGE (index.html)
   ============================================ */

.birthday-page {
    background: var(--gradient-birthday);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md) var(--spacing-lg);
    z-index: 100;
    display: flex;
    justify-content: space-between;
}

.thought-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-primary-dark);
    font-weight: 500;
    font-size: var(--font-size-small);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.thought-link:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--color-primary);
}

.love-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-primary-dark);
    font-weight: 500;
    font-size: var(--font-size-small);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.love-link:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--color-primary);
}

/* Hero Container - Perfect Centering */
.hero-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing-lg);
    position: relative;
    z-index: 10;
}

.content-wrapper {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

/* Main Heading */
.main-heading {
    font-family: var(--font-heading);
    font-size: var(--font-size-h1);
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.1);
}

/* Decorations */
.decorations {
    margin: var(--spacing-md) 0;
    font-size: clamp(2rem, 6vw, 3rem);
}

.decorations .cake,
.decorations .heart {
    display: inline-block;
    animation: gentleBounce 2s ease-in-out infinite;
}

.decorations .heart {
    animation-delay: 0.3s;
}

/* Birthday Message */
.birthday-message {
    font-size: var(--font-size-body);
    color: #666;
    line-height: 1.9;
    margin: var(--spacing-lg) 0;
    font-weight: 300;
}

.signature {
    margin-top: var(--spacing-lg);
}

.with-love {
    display: inline-block;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-primary);
    position: relative;
}

.with-love::before,
.with-love::after {
    content: '✨';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.with-love::before {
    left: -2rem;
}

.with-love::after {
    right: -2rem;
}

/* Floating Hearts Background Animation */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.heart-float {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    animation: floatUp 15s linear infinite;
}

.heart-float:nth-child(1) { left: 10%; animation-delay: 0s; font-size: 1.2rem; }
.heart-float:nth-child(2) { left: 25%; animation-delay: 3s; font-size: 2rem; }
.heart-float:nth-child(3) { left: 50%; animation-delay: 6s; font-size: 1.5rem; }
.heart-float:nth-child(4) { left: 75%; animation-delay: 9s; font-size: 1.8rem; }
.heart-float:nth-child(5) { left: 90%; animation-delay: 12s; font-size: 1.3rem; }

/* ============================================
   LOVE PAGE (love.html)
   ============================================ */

.love-page {
    background: var(--gradient-love);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   THOUGHT PAGE (thought.html)
   ============================================ */

.thought-page {
    background: var(--gradient-love);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.thought-letter {
    max-width: 750px;
}

.back-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-primary-dark);
    font-weight: 500;
    font-size: var(--font-size-small);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.back-link:hover {
    background: white;
    transform: translateX(-5px);
    box-shadow: var(--shadow-medium);
    color: var(--color-primary);
}

/* Letter Container */
.letter-container {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: calc(var(--spacing-xl) + 60px) var(--spacing-lg) var(--spacing-xl);
}

/* Love Letter Styling */
.love-letter {
    max-width: 680px;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: var(--spacing-xl);
    box-shadow: 
        0 20px 60px rgba(255, 107, 157, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: fadeIn 0.8s ease-out;
}

.letter-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.letter-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-xs);
}

.title-decoration {
    font-size: 2rem;
    margin-top: var(--spacing-xs);
}

/* Letter Content */
.letter-content {
    color: #555;
    line-height: 2;
}

.letter-paragraph {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-body);
    text-align: justify;
    hyphens: auto;
}

.letter-paragraph:first-of-type {
    font-weight: 500;
    color: var(--color-primary-dark);
    font-size: calc(var(--font-size-body) * 1.05);
}

.letter-closing {
    margin-top: var(--spacing-lg);
    font-style: italic;
    color: var(--color-primary-dark);
    line-height: 1.8;
}

.signature-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-block;
    margin-top: var(--spacing-xs);
}

/* Page Footer */
.page-footer {
    text-align: center;
    padding: var(--spacing-lg);
    margin-top: auto;
}

.footer-hearts {
    font-size: 1.2rem;
    opacity: 0.5;
    letter-spacing: 0.5rem;
}

/* Silent notification link - blends in but clickable */
.silent-link {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.silent-link:hover {
    opacity: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

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

/* Tablet */
@media (max-width: 768px) {
    .top-nav {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .love-link,
    .back-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .hero-container {
        padding: var(--spacing-md);
    }
    
    .love-letter {
        padding: var(--spacing-lg);
        border-radius: 20px;
    }
    
    .letter-container {
        padding: calc(var(--spacing-lg) + 50px) var(--spacing-md) var(--spacing-lg);
    }
    
    .with-love::before,
    .with-love::after {
        display: none;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 1.8rem;
        --spacing-xl: 2.5rem;
    }
    
    .love-letter {
        padding: var(--spacing-md);
        border-radius: 16px;
    }
    
    .letter-paragraph {
        text-align: left;
    }
    
    .footer-hearts {
        letter-spacing: 0.3rem;
        font-size: 1rem;
    }
}

/* Reduced Motion (Accessibility) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode (Accessibility) */
@media (prefers-contrast: high) {
    .love-letter {
        background: white;
        border: 2px solid var(--color-primary-dark);
    }
    
    .love-link,
    .back-link {
        background: white;
        border: 2px solid var(--color-primary-dark);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .top-nav,
    .floating-hearts,
    .page-footer {
        display: none;
    }
    
    .love-letter {
        box-shadow: none;
        border: 1px solid #ddd;
        background: white;
    }
    
    body {
        background: white !important;
    }
}
