/* ==========================================================================
   BOTANICAL OLIVE — HAUTE COUTURE MEDITERRANEAN BOTANICAL THEME (v2.0.0)
   CemiyeteDavet Premium Collection
   Inspiration: Tuscan Olive Groves, Warm Cotton Deckle Paper & Serene Editorial Design
   ========================================================================== */

:root {
    /* Color Palette: Ancient Olive, Herbal Sage & Warm Italian Linen */
    --olive-deep: #243323;       /* Deep Tuscan Cypress / Forest Olive */
    --olive-main: #364835;       /* Classical Mediterranean Olive */
    --olive-leaf: #52674f;       /* Herbal Sage Olive */
    --olive-sage: #758a72;       /* Soft Silvery Olive Leaf */
    --olive-mist: #d6ded4;       /* Misted Sage Border */
    --olive-tint: #edf2eb;       /* Gentle Botanical Wash */
    --olive-badge-bg: #e6ede4;   /* Subtle Pill Fill */
    
    --paper-base: #f9f7f2;       /* Warm Handmade Deckled Cotton Paper */
    --card-surface: #ffffff;     /* Crisp Pure White Surface */
    --card-warm: #fcfbf9;        /* Warm Card Contrast */
    
    --terracotta-accent: #8c6239; /* Warm Mediterranean Terracotta / Bronze */
    --terracotta-soft: #c49d79;  /* Soft Warm Accent */
    --gold-accent: #bda36e;      /* Subtle Sunlit Olive Accent */
    
    --text-primary: #1c261b;     /* Deep Charcoal Umber */
    --text-secondary: #485447;   /* Medium Botanical Slate */
    --text-muted: #768375;       /* Subdued Sage Gray */
    --border-light: rgba(54, 72, 53, 0.12);
    --border-medium: rgba(54, 72, 53, 0.22);

    /* Typography */
    --font-serif-display: 'Italiana', 'Cormorant Garamond', serif;
    --font-serif-text: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows & Transitions */
    --shadow-soft: 0 12px 36px rgba(36, 51, 35, 0.07);
    --shadow-card: 0 18px 45px rgba(36, 51, 35, 0.09), 0 2px 8px rgba(36, 51, 35, 0.04);
    --shadow-lift: 0 24px 60px rgba(36, 51, 35, 0.14);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Smooth Rendering */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    background-color: var(--paper-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    /* Subtle Mediterranean fine paper fiber texture */
    background-image: 
        radial-gradient(var(--olive-mist) 0.75px, transparent 0.75px),
        radial-gradient(rgba(140, 98, 57, 0.08) 0.5px, transparent 0.5px);
    background-size: 28px 28px, 56px 56px;
    background-position: 0 0, 14px 14px;
}

/* ==========================================================================
   FLOATING AUDIO TOGGLE
   ========================================================================== */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--olive-main);
    border: 1px solid var(--border-medium);
    box-shadow: 0 8px 24px rgba(36, 51, 35, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

.music-toggle:hover {
    transform: scale(1.06);
    background: var(--olive-tint);
    border-color: var(--olive-leaf);
    color: var(--olive-deep);
}

.disc-icon.playing {
    animation: gentleRotate 6s linear infinite;
}

@keyframes gentleRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   SERENE BOTANICAL FOLIO COVER (Natural Opening Experience)
   ========================================================================== */
.folio-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(145deg, #1f2b1e 0%, #2e3e2c 50%, #1e281d 100%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    overflow: hidden;
}

.folio-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Organic Foliage Silhouette in Background */
.folio-bg-silhouette {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(circle at 50% 30%, rgba(117, 138, 114, 0.2) 0%, transparent 65%);
    pointer-events: none;
}

.folio-card-wrapper {
    position: relative;
    max-width: 440px;
    width: 100%;
    perspective: 1200px;
    animation: folioEntrance 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes folioEntrance {
    0% { opacity: 0; transform: translateY(30px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Botanical Card Deckle Outer */
.folio-card {
    background: var(--paper-base);
    border-radius: var(--radius-md);
    padding: 42px 28px 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* Subtle deckled border inner line */
.folio-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(54, 72, 53, 0.2);
    border-radius: 12px;
    pointer-events: none;
}

/* Botanical Wreath Motif in Folio */
.folio-wreath-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--olive-main);
}

.folio-wreath-icon svg {
    width: 100%;
    height: 100%;
}

.folio-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--olive-leaf);
    margin-bottom: 12px;
}

.folio-names {
    font-family: var(--font-serif-display);
    font-size: 2.35rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--olive-deep);
    line-height: 1.15;
    margin-bottom: 8px;
    text-wrap: balance;
}

.folio-invitation-badge {
    display: inline-block;
    padding: 6px 18px;
    background: var(--olive-badge-bg);
    border: 1px solid var(--olive-mist);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--olive-deep);
    margin: 12px 0 24px;
}

/* Botanical Opening Action Button */
.btn-botanical-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--olive-deep) 0%, var(--olive-main) 100%);
    color: #ffffff;
    border: none;
    padding: 15px 36px;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 24px rgba(36, 51, 35, 0.28);
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 290px;
}

.btn-botanical-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(36, 51, 35, 0.38);
    background: linear-gradient(135deg, var(--olive-main) 0%, var(--olive-leaf) 100%);
    color: #ffffff;
}

.btn-botanical-open svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.btn-botanical-open:hover svg {
    transform: scale(1.15);
}

.folio-hint {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ==========================================================================
   MAIN INVITATION CONTAINER (Deckled Paper Card Layout)
   ========================================================================== */
.invitation-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 50px 20px 80px;
    transition: opacity 0.8s ease;
}

.invitation-container.hidden {
    display: none;
    opacity: 0;
}

/* Mediterranean Master Paper Sheet */
.botanical-paper-sheet {
    background: var(--card-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 64px 44px;
    position: relative;
    overflow: hidden;
}

/* Inner Deckle Frame Line */
.botanical-paper-sheet::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    border: 1px solid var(--olive-mist);
    border-radius: 18px;
    pointer-events: none;
}

/* ==========================================================================
   HEADER & TITLE SECTION
   ========================================================================== */
.botanical-header {
    text-align: center;
    position: relative;
    padding-bottom: 32px;
}

.botanical-top-emblem {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    color: var(--olive-leaf);
}

.botanical-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--terracotta-accent);
    margin-bottom: 14px;
}

.botanical-names {
    font-family: var(--font-serif-display);
    font-size: 3.25rem;
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0.03em;
    color: var(--olive-deep);
    margin-bottom: 16px;
    text-wrap: balance;
}

.botanical-names .ampersand {
    font-family: var(--font-serif-text);
    font-style: italic;
    color: var(--terracotta-accent);
    font-size: 0.9em;
    margin: 0 4px;
}

/* Olive Sprig Divider */
.olive-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 22px;
    color: var(--olive-leaf);
}

.olive-divider::before,
.olive-divider::after {
    content: '';
    height: 1px;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--olive-mist), transparent);
}

.olive-divider svg {
    width: 32px;
    height: 16px;
    fill: currentColor;
}

.botanical-quote {
    font-family: var(--font-serif-text);
    font-size: 1.28rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* ==========================================================================
   FAMILY / PARENTS HONOR SECTION (Turkish Etiquette)
   ========================================================================== */
.botanical-family-card {
    background: var(--paper-base);
    border: 1px solid var(--olive-mist);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 32px 0 44px;
    text-align: center;
    position: relative;
}

.family-honor-text {
    font-family: var(--font-serif-text);
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 16px;
}

.family-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.family-side strong {
    display: block;
    font-family: var(--font-serif-display);
    font-size: 1.18rem;
    color: var(--olive-deep);
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.family-side span {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--olive-leaf);
}

.family-separator {
    color: var(--terracotta-accent);
    font-size: 1.1rem;
    font-family: var(--font-serif-text);
    font-style: italic;
}

/* ==========================================================================
   EVENTS & CEREMONIES SECTION (Single & Dual Event Architecture)
   ========================================================================== */
.events-section-title {
    font-family: var(--font-serif-display);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--olive-deep);
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 8px;
}

.events-section-desc {
    font-family: var(--font-serif-text);
    font-size: 1.05rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-bottom: 36px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

/* Individual Event Card */
.event-ceremony-card {
    background: var(--card-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: var(--transition-smooth);
}

.event-ceremony-card:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--olive-leaf);
    transform: translateY(-2px);
}

/* Primary/Düğün Card Highlight Badge */
.event-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: var(--olive-badge-bg);
    color: var(--olive-deep);
    border: 1px solid var(--olive-mist);
    margin-bottom: 18px;
}

.event-badge-pill.highlight {
    background: var(--olive-deep);
    color: #ffffff;
    border-color: var(--olive-deep);
}

.event-title-main {
    font-family: var(--font-serif-display);
    font-size: 2.15rem;
    font-weight: 400;
    color: var(--olive-deep);
    letter-spacing: 0.04em;
    margin-bottom: 22px;
    line-height: 1.2;
}

/* Venue Image Banner with Lightbox */
.venue-visual-box {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 24px;
    max-height: 260px;
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.venue-visual-box img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.venue-visual-box:hover img {
    transform: scale(1.03);
}

.venue-visual-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(36, 51, 35, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Ceremony Details Grid */
.ceremony-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 22px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.detail-col {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.detail-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--olive-tint);
    border: 1px solid var(--olive-mist);
    color: var(--olive-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.detail-col-info strong {
    display: block;
    font-family: var(--font-serif-display);
    font-size: 1.22rem;
    color: var(--olive-deep);
    letter-spacing: 0.03em;
    line-height: 1.3;
    margin-bottom: 4px;
}

.detail-col-info span {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: block;
    line-height: 1.45;
}

/* ==========================================================================
   CERAMIC BOTANICAL COUNTDOWN TIMER
   ========================================================================== */
.countdown-box {
    background: var(--paper-base);
    border: 1px solid var(--olive-mist);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.countdown-title-label {
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--olive-leaf);
    margin-bottom: 14px;
}

.timer-tiles {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.time-tile {
    flex: 1;
    max-width: 76px;
    background: var(--card-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 4px 8px;
    box-shadow: 0 4px 12px rgba(36, 51, 35, 0.04);
}

.time-tile .num {
    display: block;
    font-family: var(--font-serif-display);
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--olive-deep);
    line-height: 1.1;
}

.time-tile .lbl {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Map & Action Buttons */
.card-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-olive-map {
    flex: 1;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--card-surface);
    color: var(--olive-deep);
    border: 1.5px solid var(--olive-main);
    padding: 13px 22px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-olive-map:hover {
    background: var(--olive-deep);
    color: #ffffff;
    border-color: var(--olive-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(36, 51, 35, 0.18);
}

/* ==========================================================================
   INTERACTIVE RSVP / LCV SECTION
   ========================================================================== */
.botanical-rsvp-box {
    text-align: center;
    padding: 44px 20px 24px;
    border-top: 1px solid var(--border-light);
    margin-top: 36px;
}

.btn-botanical-rsvp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--olive-deep) 0%, var(--olive-main) 100%);
    color: #ffffff;
    border: none;
    padding: 16px 42px;
    border-radius: var(--radius-full);
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(36, 51, 35, 0.22);
    transition: var(--transition-smooth);
}

.btn-botanical-rsvp:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(36, 51, 35, 0.32);
    color: #ffffff;
}

/* ==========================================================================
   FOOTER & SIGNATURE
   ========================================================================== */
.botanical-footer {
    text-align: center;
    padding-top: 48px;
    margin-top: 36px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
}

.botanical-footer-couples {
    font-family: var(--font-serif-display);
    font-size: 1.35rem;
    color: var(--olive-deep);
    margin-bottom: 6px;
}

.botanical-footer-copy {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.botanical-platform-link {
    display: inline-block;
    font-size: 0.76rem;
    color: var(--olive-leaf);
    text-decoration: none;
    transition: color 0.2s ease;
}

.botanical-platform-link:hover {
    color: var(--olive-deep);
    text-decoration: underline;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(28, 38, 27, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}

.lightbox.hidden {
    display: none;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #ffffff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN (390×844, 375×812 & Tablets)
   ========================================================================== */
@media (max-width: 768px) {
    .invitation-container {
        padding: 24px 12px 60px;
    }

    .botanical-paper-sheet {
        padding: 44px 20px 36px;
        border-radius: var(--radius-md);
    }

    .botanical-paper-sheet::before {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 12px;
    }

    .botanical-names {
        font-size: 2.45rem;
    }

    .botanical-quote {
        font-size: 1.1rem;
    }

    .ceremony-details-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .family-columns {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .family-separator {
        display: none;
    }

    .event-ceremony-card {
        padding: 26px 18px;
    }

    .event-title-main {
        font-size: 1.75rem;
    }

    .time-tile .num {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .botanical-names {
        font-size: 2.15rem;
    }

    .folio-names {
        font-size: 1.95rem;
    }

    .timer-tiles {
        gap: 6px;
    }

    .time-tile {
        padding: 8px 2px 6px;
    }
}
