/* ================================================
   BLUEMOON FAMILY REUNION - SHARED STYLES
   Modern, sleek dark theme
   ================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
    --bg-dark: #0a0f1e;
    --bg-accent: #131b2e;
    --bg-card: #182035;
    --bg-card-hover: #1e2a45;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --text-main: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-gold: #fbbf24;
    --text-gold-light: #fde68a;
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-blue-glow: rgba(59, 130, 246, 0.15);
    --gold-glow: rgba(251, 191, 36, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-med: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1100px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Subtle Animated Background --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(251, 191, 36, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* --- Navigation --- */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 18px 24px;
    transition: color var(--transition-fast), background var(--transition-fast);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width var(--transition-med);
    border-radius: 2px;
}

nav a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

nav a:hover::after {
    width: 60%;
}

nav a.active {
    color: var(--accent-blue-light);
}

nav a.active::after {
    width: 60%;
    background: var(--accent-blue);
}

/* --- Header / Hero --- */
header {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(10, 15, 30, 0.6) 0%,
        rgba(10, 15, 30, 0.85) 100%
    ), url('images/background.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 120px 20px 100px;
    border-bottom: none;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    pointer-events: none;
}

header p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.15rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    margin-top: 8px;
}

header p strong {
    color: var(--text-gold);
    font-weight: 600;
}

/* --- Typography --- */
h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-gold);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 16px;
    position: relative;
}

h3 {
    font-family: 'Inter', sans-serif;
    color: var(--accent-blue-light);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

a {
    color: var(--accent-blue-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-gold);
}

/* --- Container --- */
.container {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
}

/* --- Section Spacing --- */
section {
    margin-bottom: 60px;
}

section:last-child {
    margin-bottom: 0;
}

/* --- Card Styles --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-medium);
}

/* --- Glass Card --- */
.glass-card {
    background: rgba(19, 27, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Map Section --- */
.map-container {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    margin-top: 40px;
}

.map-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
    color: #ffffff;
    padding: 14px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
    margin-top: 20px;
    transition: all var(--transition-med);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.btn:hover::before {
    left: 100%;
}

.btn-gold {
    background: linear-gradient(135deg, var(--text-gold) 0%, #f59e0b 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    color: var(--bg-dark);
}

/* --- Images --- */
.img-rounded {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.img-rounded:hover {
    transform: scale(1.02);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.image-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.image-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

/* --- Schedule Timeline --- */
.schedule-day {
    position: relative;
    padding-left: 32px;
    margin-bottom: 48px;
}

.schedule-day::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
}

.schedule-day h2 {
    position: relative;
    padding-left: 0;
}

.schedule-day h2::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--accent-blue);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.schedule-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 10px;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.schedule-item:hover {
    border-color: var(--border-medium);
    transform: translateX(4px);
}

.schedule-item .time {
    color: var(--text-gold);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2px;
}

.schedule-item .event {
    color: var(--text-main);
    font-size: 0.95rem;
}

.schedule-item .event a {
    color: var(--accent-blue-light);
    text-decoration: none;
    border-bottom: 1px dashed rgba(96, 165, 250, 0.3);
    transition: all var(--transition-fast);
}

.schedule-item .event a:hover {
    color: var(--text-gold);
    border-bottom-color: var(--text-gold);
}

.schedule-item.arrival-item {
    background: transparent;
    border: 1px dashed var(--border-medium);
    color: var(--text-secondary);
    font-style: italic;
}

/* --- History Section Cards --- */
.history-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 32px;
    transition: border-color var(--transition-med);
}

.history-section:hover {
    border-color: var(--border-medium);
}

.history-section .subsection {
    padding-left: 20px;
    border-left: 2px solid var(--border-subtle);
    margin-top: 20px;
}

/* --- Divider --- */
.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--text-gold));
    border: none;
    margin: 20px 0 24px;
    border-radius: 2px;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-accent);
}

footer p {
    margin-bottom: 0;
}

.footer-help-link {
    display: inline-block;
    color: var(--accent-blue-light);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 8px 20px;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 50px;
    margin-bottom: 16px;
    transition: all var(--transition-med);
}

.footer-help-link:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-blue);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RSVP Section --- */
.rsvp-section {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    margin: 48px 0;
}

.rsvp-section h2 {
    margin-bottom: 12px;
}

.rsvp-section p {
    max-width: 500px;
    margin: 0 auto 24px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        gap: 0;
    }

    nav a {
        font-size: 0.75rem;
        padding: 14px 14px;
        letter-spacing: 0.05em;
    }

    header {
        padding: 80px 20px 70px;
    }

    .container {
        padding: 40px 16px;
    }

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

    .image-grid img {
        height: 220px;
    }

    .schedule-day {
        padding-left: 24px;
    }

    .history-section {
        padding: 24px;
    }

    .rsvp-section {
        padding: 36px 20px;
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 0.7rem;
        padding: 12px 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .schedule-item {
        padding: 12px 14px;
    }
}

/* --- Scroll Animation Script Trigger --- */
/* Applied via JS IntersectionObserver for .fade-in elements */
