/* ============================================================
   style.css  —  Digital Wedding Album "Minimal Elegance"
   Custom CSS layered on top of Tailwind CDN
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Prompt:wght@300;400;500&display=swap');

/* ── CSS Custom Properties (Design Tokens) ────────────────── */
:root {
    --color-cream:      #ffffff;
    --color-ivory:      #f5f7fa;
    --color-blush:      #e2e8f0;
    --color-rose:       #1a2b4c;
    --color-rose-dark:  #0f192d;
    --color-gold:       #475569;
    --color-gold-light: #cbd5e1;
    --color-text:       #1e293b;
    --color-muted:      #64748b;
    --color-border:     #e2e8f0;

    --font-display:  'Great Vibes', cursive;
    --font-heading:  'Playfair Display', serif;
    --font-body:     'Prompt', sans-serif;

    --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft:   0 4px 24px rgba(26,43,76,0.06);
    --shadow-card:   0 8px 40px rgba(26,43,76,0.1);
    --radius-card:   16px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ───────────────────────────────────────────── */
.font-display   { font-family: var(--font-display); }
.font-heading   { font-family: var(--font-heading); }
.font-body      { font-family: var(--font-body); }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-ivory); }
::-webkit-scrollbar-thumb { background: var(--color-gold-light); border-radius: 3px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26,43,76,0.08);
}
.site-nav .nav-logo {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--color-rose);
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.02em;
}
.nav-link {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    text-decoration: none;
    padding: 0.35rem 0;
    position: relative;
    transition: color var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--color-rose);
    transition: width var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--color-rose);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Hamburger */
.hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.hamburger span { display: block; height: 1.5px; width: 24px; background: var(--color-text); transition: var(--transition); border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.77,0,0.18,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .nav-link { font-size: 1.1rem; letter-spacing: 0.18em; }

/* ============================================================
   HERO  (index.php)
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: top center;
    transform: scale(1.05);
    transition: transform 6s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(15,25,45,0.48) 60%,
        rgba(15,25,45,0.72) 100%
    );
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
    animation: fadeUp 1.2s ease both;
}
.hero-couple-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.35);
    margin-bottom: 0.5rem;
}
.hero-ampersand {
    font-family: var(--font-display);
    font-size: 0.55em;
    color: var(--color-gold-light);
}
.hero-date {
    font-family: var(--font-heading);
    font-size: clamp(0.8rem, 2vw, 1rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin: 1.2rem 0;
}
.hero-divider {
    display: flex; align-items: center; gap: 1rem;
    justify-content: center;
    margin: 1rem 0 2rem;
}
.hero-divider::before,
.hero-divider::after {
    content: '';
    flex: 1; max-width: 80px;
    height: 1px;
    background: rgba(255,255,255,0.4);
}
.hero-divider .diamond {
    width: 6px; height: 6px;
    background: var(--color-gold-light);
    transform: rotate(45deg);
}
.btn-enter {
    display: inline-block;
    padding: 0.9rem 2.8rem;
    border: 1.5px solid rgba(255,255,255,0.7);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
    cursor: pointer;
}
.btn-enter:hover {
    background: rgba(255,255,255,0.25);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}
.scroll-indicator i { font-size: 1rem; }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-rose);
    display: block;
    margin-bottom: 0.6rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-text);
    font-weight: 400;
    line-height: 1.25;
}
.section-title em { font-style: italic; color: var(--color-rose); }
.section-subtitle {
    font-size: 0.9rem;
    color: var(--color-muted);
    max-width: 480px;
    margin: 0.8rem auto 0;
}
.ornament {
    display: flex; align-items: center; gap: 1rem;
    justify-content: center;
    margin: 1.2rem 0;
}
.ornament::before, .ornament::after {
    content: '';
    flex: 1; max-width: 60px;
    height: 1px;
    background: var(--color-border);
}
.ornament i { color: var(--color-gold); font-size: 0.8rem; }

/* ============================================================
   CATEGORY / CHAPTER NAV
   ============================================================ */
.chapter-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.chapter-btn {
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    font-family: var(--font-body);
    font-weight: 400;
    cursor: pointer;
    border: 1.5px solid var(--color-border);
    background: transparent;
    color: var(--color-muted);
    transition: var(--transition);
    white-space: nowrap;
}
.chapter-btn:hover,
.chapter-btn.active {
    background: var(--color-rose);
    border-color: var(--color-rose);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,43,76,0.35);
}

/* ============================================================
   HORIZONTAL GRID GALLERY
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    border-radius: var(--radius-card);
    overflow: hidden;
    cursor: pointer;
    background: var(--color-ivory);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(0.9);
}
.gallery-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(26,43,76,0.55) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex; align-items: flex-end; justify-content: space-between;
    padding: 1rem 1.1rem;
    pointer-events: none;   /* ← let clicks pass through to .glightbox underneath */
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-actions {
    display: flex; gap: 0.6rem;
    pointer-events: auto;   /* ← only download button area captures clicks */
}
.gallery-item-overlay .cat-badge {
    pointer-events: none;   /* label text should never intercept */
}
.btn-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
}
.btn-icon:hover { background: rgba(255,255,255,0.35); }

/* Lazy image skeleton */
.gallery-item img.lazy {
    background: var(--color-ivory);
    min-height: 200px;
    object-fit: cover;
}

/* ============================================================
   MUSIC PLAYER
   ============================================================ */
.music-player {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 0.55rem 1.1rem 0.55rem 0.6rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.music-player:hover { box-shadow: 0 12px 40px rgba(26,43,76,0.15); }
.music-player-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--color-rose);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.music-player-btn:hover { background: var(--color-rose-dark); transform: scale(1.08); }
.music-player-info { display: flex; flex-direction: column; }
.music-player-title { font-size: 0.72rem; font-weight: 500; color: var(--color-text); line-height: 1.2; }
.music-player-sub   { font-size: 0.62rem; color: var(--color-muted); }
.music-bars {
    display: flex; align-items: flex-end; gap: 2px; height: 16px;
}
.music-bars span {
    display: block; width: 3px; border-radius: 2px;
    background: var(--color-rose);
    animation: musicBar 0.9s ease-in-out infinite alternate;
}
.music-bars span:nth-child(1) { height: 6px;  animation-delay: 0s; }
.music-bars span:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.music-bars span:nth-child(3) { height: 10px; animation-delay: 0.3s; }
.music-bars span:nth-child(4) { height: 16px; animation-delay: 0.12s; }
.music-bars.paused span { animation-play-state: paused; height: 4px !important; }

/* ============================================================
   GUESTBOOK
   ============================================================ */
.guestbook-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.6rem 1.8rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: box-shadow var(--transition);
}
.guestbook-card:hover { box-shadow: var(--shadow-card); }
.guestbook-card::before {
    content: '\201C';
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--color-blush);
    line-height: 0.7;
    position: absolute;
    top: 1.2rem; left: 1.4rem;
    pointer-events: none;
}
.guestbook-message {
    font-size: 0.92rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
}
.guestbook-author {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    color: var(--color-rose);
    font-style: italic;
}
.guestbook-date {
    font-size: 0.7rem;
    color: var(--color-muted);
    letter-spacing: 0.08em;
}

/* Form */
.form-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}
.form-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.45rem;
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-cream);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    resize: vertical;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--color-rose);
    box-shadow: 0 0 0 3px rgba(26,43,76,0.12);
}
.btn-submit {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    background: linear-gradient(135deg, var(--color-rose), var(--color-rose-dark));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(26,43,76,0.35);
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26,43,76,0.45);
}

/* Alert feedback */
.alert {
    padding: 1rem 1.4rem;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}
.alert-success { background: #f0faf4; border: 1px solid #a7d7b7; color: #2c6e49; }
.alert-error   { background: #fdf0f0; border: 1px solid #e8a0a0; color: #8b2e2e; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.55);
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}
.site-footer .footer-names {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-gold-light);
    display: block;
    margin-bottom: 0.5rem;
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.share-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-family: var(--font-body);
    font-weight: 400;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.share-btn-line     { background: #00B900; color: #fff; }
.share-btn-facebook { background: #1877F2; color: #fff; }
.share-btn:hover    { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ============================================================
   GLightbox overrides
   ============================================================ */
.glightbox-clean .gslide-description { background: rgba(15,25,45,0.85); }
.glightbox-clean .gdesc-inner { padding: 1.2rem 1.5rem; }
.glightbox-clean .gslide-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

/* ============================================================
   PAGE TRANSITIONS & ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes musicBar {
    from { transform: scaleY(0.4); }
    to   { transform: scaleY(1); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.fade-in { animation: fadeIn 0.6s ease both; }

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.divider-rose { border: none; border-top: 1px solid var(--color-border); margin: 0; }
.text-rose    { color: var(--color-rose); }
.text-gold    { color: var(--color-gold); }
.text-muted   { color: var(--color-muted); }
.bg-ivory     { background-color: var(--color-ivory); }
.bg-cream     { background-color: var(--color-cream); }
