/* ==========================================================================
   Undangan Pernikahan Digital — R24 & N.8
   Palet: Burgundy Marsala, Gold, dan Cream (Full Theme)
   ========================================================================== */

:root {
    /* Palet Baru: Burgundy Marsala & Gold */
    --wed-burgundy: #5e1224;       /* Warna utama gelap */
    --wed-burgundy-light: #7a1f33; /* Sedikit lebih terang */
    --wed-gold: #c79a52;           /* Emas utama */
    --wed-gold-light: #e6cb9a;     /* Emas terang */
    --wed-gold-pale: #f3e3cf;      /* Emas sangat pucat */
    --wed-cream: #fdf8f0;          /* Latar belakang terang */
    --wed-cream-deep: #f6ead9;     /* Latar belakang agak gelap */
    --wed-card: #fffdf9;           /* Latar kartu */
    
    /* Warna Teks & Garis disesuaikan dengan palet */
    --wed-text-dark: #3a2e22;      /* Teks utama */
    --wed-text-muted: #7a6a57;     /* Teks sekunder */
    --wed-border: #d9b97a;         /* Border emas pucat */
}

.wed-font-script {
    font-family: 'Cormorant Garamond', 'Poppins', serif;
}

body.wed-body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--wed-cream);
    color: var(--wed-text-dark);
}

/* ==========================================================================
   Decorative layer
   ========================================================================== */

.wed-textured {
    position: relative;
}
.wed-textured::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(94,18,36,0.05) 1px, transparent 0);
    background-size: 18px 18px;
    opacity: 0.6;
}
.wed-textured::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    box-shadow: inset 0 0 120px rgba(94,18,36,0.10);
}

/* Corner ornaments */
.wed-corner-ornament {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.55;
}
.wed-corner-ornament.tl { top: 18px; left: 18px; }
.wed-corner-ornament.tr { top: 18px; right: 18px; transform: scaleX(-1); }
.wed-corner-ornament.bl { bottom: 18px; left: 18px; transform: scaleY(-1); }
.wed-corner-ornament.br { bottom: 18px; right: 18px; transform: scale(-1,-1); }

@media (max-width: 640px) {
    .wed-corner-ornament { width: 70px; height: 70px; opacity: 0.4; }
}

/* ---------------------------------------------------------------
   Hero — Burgundy Background with Gold Accents
--------------------------------------------------------------- */
.wed-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 7rem 1.5rem 4rem;
    background: linear-gradient(180deg, var(--wed-burgundy) 0%, #4a0d1b 100%);
}

.wed-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    box-shadow: inset 0 0 160px rgba(0,0,0,0.4);
}

.wed-hero .wed-ornament-line {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
    stroke: var(--wed-gold) !important;
}

.wed-hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--wed-gold-light);
    font-weight: 600;
}

.wed-name-frame {
    position: relative;
    padding: 2.75rem 1.5rem;
}
.wed-name-frame::before,
.wed-name-frame::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 14px;
}
.wed-name-frame::before { top: 0; }
.wed-name-frame::after { bottom: 0; }

.wed-names {
    font-family: 'Cormorant Garamond', 'Poppins', serif;
    font-weight: 600;
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    line-height: 1.05;
    color: var(--wed-cream);
}

.wed-names .amp {
    display: block;
    color: var(--wed-gold);
    font-size: 0.5em;
    margin: 0.15em 0;
    font-style: italic;
}

.wed-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 253, 249, 0.1);
    border: 1px solid var(--wed-gold);
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--wed-cream);
    box-shadow: 0 8px 24px -12px rgba(0,0,0,0.3);
}

/* Countdown */
.wed-countdown-box {
    background: rgba(255, 253, 249, 0.1);
    border-radius: 1rem;
    padding: 0.9rem 0.5rem;
    min-width: 64px;
    box-shadow: 0 8px 20px -12px rgba(0,0,0,0.3);
    border: 1px solid var(--wed-gold);
}
.wed-countdown-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--wed-gold-light);
    line-height: 1;
}
.wed-countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wed-cream-deep);
}

/* ---------------------------------------------------------------
   Section utilities
--------------------------------------------------------------- */
.wed-section {
    padding: 5.5rem 1.5rem;
    position: relative;
}
.wed-section-alt {
    background-color: var(--wed-cream-deep);
}
.wed-divider-gold {
    position: relative;
    width: 96px;
    height: 18px;
    margin: 0 auto;
}
.wed-divider-gold svg { width: 100%; height: 100%; }

.wed-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wed-burgundy);
}
.wed-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--wed-burgundy);
}

.wed-card {
    background: var(--wed-card);
    border: 1px solid var(--wed-border);
    border-radius: 1.25rem;
    box-shadow: 0 12px 32px -18px rgba(58,46,34,0.18);
}

/* Maps embed wrapper */
.wed-map-frame {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--wed-border);
    box-shadow: 0 12px 32px -18px rgba(58,46,34,0.2);
}
.wed-map-frame iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

/* ---------------------------------------------------------------
   Galeri Prewedding
--------------------------------------------------------------- */
.wed-carousel {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .wed-carousel {
        max-width: 380px;
    }
}

.wed-carousel-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid var(--wed-border);
    box-shadow: 0 16px 40px -20px rgba(58,46,34,0.28);
    aspect-ratio: 4/5;
    background: var(--wed-cream-deep);
}

.wed-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.wed-carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}
.wed-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wed-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,253,249,0.92);
    border: 1px solid var(--wed-border);
    color: var(--wed-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px -10px rgba(58,46,34,0.3);
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}
.wed-carousel-arrow:hover {
    background: var(--wed-burgundy);
    color: var(--wed-gold);
}
.wed-carousel-arrow:active {
    transform: translateY(-50%) scale(0.94);
}
.wed-carousel-arrow.prev { left: 12px; }
.wed-carousel-arrow.next { right: 12px; }

@media (max-width: 480px) {
    .wed-carousel-arrow { width: 38px; height: 38px; }
}

.wed-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.1rem;
}
.wed-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wed-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.wed-carousel-dot.is-active {
    background: var(--wed-burgundy);
    transform: scale(1.25);
}

/* ---------------------------------------------------------------
   Rangkaian Acara
--------------------------------------------------------------- */
.wed-timeline {
    position: relative;
}
.wed-timeline::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--wed-burgundy), var(--wed-gold), var(--wed-burgundy));
}
@media (min-width: 768px) {
    .wed-timeline::before { left: 50%; transform: translateX(-50%); }
}

.wed-timeline-item {
    position: relative;
    padding-left: 64px;
    margin-bottom: 2.25rem;
}
.wed-timeline-dot {
    position: absolute;
    left: 16px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--wed-card);
    border: 2px solid var(--wed-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wed-gold);
}
@media (min-width: 768px) {
    .wed-timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 2.5rem;
    }
    .wed-timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-right: 0;
        padding-left: 2.5rem;
    }
    .wed-timeline-dot {
        left: auto;
        right: -13px;
    }
    .wed-timeline-item:nth-child(even) .wed-timeline-dot {
        right: auto;
        left: -13px;
    }
    .wed-timeline-item:nth-child(odd) { text-align: right; }
}

/* Music player */
.wed-music-toggle {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 50;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--wed-burgundy);
    color: var(--wed-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px -8px rgba(94,18,36,0.55);
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease;
}
.wed-music-toggle:hover { transform: scale(1.06); }
.wed-music-toggle .wed-disc {
    animation: wed-spin 4s linear infinite;
    animation-play-state: paused;
}
.wed-music-toggle.is-playing .wed-disc {
    animation-play-state: running;
}
@keyframes wed-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .wed-music-toggle .wed-disc { animation: none; }
}

/* ---------------------------------------------------------------
   Form gabungan: RSVP + Ucapan
--------------------------------------------------------------- */
.wed-input {
    background: var(--wed-card);
    border: 1px solid var(--wed-border);
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--wed-text-dark);
}
.wed-input:focus {
    border-color: var(--wed-burgundy);
    box-shadow: 0 0 0 3px rgba(94,18,36,0.18);
    outline: none;
}

.wed-attendance-option {
    cursor: pointer;
    border: 1px solid var(--wed-border);
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s, background 0.2s;
    background: var(--wed-card);
    color: var(--wed-text-dark);
}
.wed-attendance-option:has(input:checked) {
    border-color: var(--wed-burgundy);
    background: var(--wed-gold-pale);
}

.wed-btn-gold {
    background: var(--wed-gold);      /* Tombol jadi Emas */
    color: var(--wed-burgundy);       /* Teks jadi Burgundy */
    font-weight: 700;
    transition: background 0.25s, transform 0.25s;
}
.wed-btn-gold:hover {
    background: var(--wed-gold-light); /* Hover lebih terang */
    transform: translateY(-1px);
}

/* ---------------------------------------------------------------
   Daftar Ucapan
--------------------------------------------------------------- */
.wed-comment-card {
    background: var(--wed-card);
    border: 1px solid var(--wed-border);
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
}
.wed-comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wed-burgundy), var(--wed-burgundy-light));
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wed-comment-empty {
    text-align: center;
    color: var(--wed-text-muted);
    font-size: 0.9rem;
    padding: 1.5rem 0;
}
.wed-comment-skeleton {
    background: linear-gradient(90deg, #eee2cc 25%, #f5ece0 37%, #eee2cc 63%);
    background-size: 400% 100%;
    animation: wed-shimmer 1.4s ease infinite;
    border-radius: 0.5rem;
}
@keyframes wed-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* Honeypot field */
.wed-honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.wed-toast {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s;
}
.wed-toast.is-shown {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Reveal */
.wed-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.wed-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .wed-reveal { opacity: 1; transform: none; }
}