﻿/* =============================================
   SVATEBNÍ WEB - STYLE
   Barevné schéma inspirováno akvarelovými květinami
   Levandulová, růžová, meruňková, šalvějová
   ============================================= */

:root {
    /* Hlavní barvy z květinového motivu */
    --lavender: #9b8ec4;
    --lavender-light: #c8bfe6;
    --lavender-pale: #ede8f5;
    --rose: #d4899a;
    --rose-light: #e8b4c0;
    --rose-pale: #f5dde3;
    --peach: #e8a87c;
    --peach-light: #f0c9a6;
    --peach-pale: #faeede;
    --sage: #8ba888;
    --sage-light: #b5cdb3;
    --sage-pale: #e2ede1;

    /* Neutrální barvy */
    --white: #ffffff;
    --cream: #faf8f5;
    --warm-white: #fdfcfa;
    --text-primary: #3d3545;
    --text-secondary: #6b6174;
    --text-light: #8e8299;
    --border: #e8e2ee;

    /* Přechodové barvy */
    --gradient-floral: linear-gradient(135deg, var(--lavender-pale) 0%, var(--rose-pale) 50%, var(--peach-pale) 100%);
    --gradient-soft: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);

    /* Stíny */
    --shadow-sm: 0 2px 8px rgba(155, 142, 196, 0.08);
    --shadow-md: 0 4px 20px rgba(155, 142, 196, 0.12);
    --shadow-lg: 0 8px 40px rgba(155, 142, 196, 0.16);
    --shadow-card: 0 2px 16px rgba(155, 142, 196, 0.10);

    /* Typografie */
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Nunito Sans', 'Helvetica Neue', sans-serif;
    --font-script: 'Dancing Script', cursive;

    /* Rozměry */
    --container-max: 1200px;
    --section-padding: 100px;
    --border-radius: 16px;
}

/* =============================================
   RESET & ZÁKLAD
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--cream);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* =============================================
   NAVIGACE
   ============================================= */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(155, 142, 196, 0.1);
    transition: all 0.4s ease;
}

.main-nav.scrolled {
    background: rgba(250, 248, 245, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--lavender);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--lavender);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--lavender);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobilní ikona galerie - skrytá na desktopu */
.nav-mobile-gallery {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--lavender);
    padding: 4px;
    transition: all 0.3s ease;
}

.nav-mobile-gallery:hover {
    color: var(--text-primary);
}

/* =============================================
   HERO SEKCE
   ============================================= */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-floral);
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(155, 142, 196, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(212, 137, 154, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(232, 168, 124, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Květinová dekorace - horní (v hero) */
.floral-top {
    position: absolute;
    top: 0;
    left: -15%;
    right: -15%;
    height: 320px;
    background: url('flowers.png') no-repeat top center;
    background-size: 100% auto;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* Květinová dekorace - spodní (v hero) */
.floral-bottom {
    position: absolute;
    bottom: 0;
    left: -15%;
    right: -15%;
    height: 280px;
    background: url('flowers.png') no-repeat bottom center;
    background-size: 100% auto;
    transform: rotate(180deg);
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 16px;
}

.hero-names {
    font-family: var(--font-script);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-names .amp {
    display: inline-block;
    color: var(--lavender);
    margin: 0 8px;
    font-style: italic;
}

.hero-date {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
}

/* =============================================
   SEKCE STYLING OBECNÉ
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 300;
}

.floral-accent {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--lavender-light), var(--rose-light), var(--peach-light));
    margin: 16px auto 0;
    border-radius: 2px;
}

/* =============================================
   ODPOČET
   ============================================= */
.countdown-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 32px;
    background: var(--gradient-floral);
    border-radius: var(--border-radius);
    min-width: 120px;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--lavender-light);
    font-weight: 300;
    padding-bottom: 20px;
}

.calendar-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-calendar {
    font-size: 0.85rem;
}

/* =============================================
   TIMELINE - NÁŠ PŘÍBĚH
   ============================================= */
.story-section {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(180deg, var(--lavender-light), var(--rose-light), var(--peach-light));
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-left {
    left: 0;
    text-align: right;
}

.timeline-right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--lavender);
    z-index: 2;
}

.timeline-left .timeline-dot {
    right: -8px;
}

.timeline-right .timeline-dot {
    left: -8px;
}

.timeline-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.timeline-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-card:hover .timeline-image img {
    transform: scale(1.05);
}

.timeline-content {
    padding: 24px;
    text-align: left;
}

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lavender);
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================
   HARMONOGRAM
   ============================================= */
.schedule-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.schedule-grid {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    background: var(--warm-white);
    border-radius: var(--border-radius);
    width: 100%;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.schedule-item:hover {
    border-color: var(--lavender-light);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.schedule-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-floral);
    border-radius: 50%;
    color: var(--lavender);
}

.schedule-icon svg {
    width: 20px;
    height: 20px;
}

.schedule-time {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--lavender);
    min-width: 60px;
}

.schedule-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    flex-grow: 1;
}

.schedule-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    max-width: 200px;
    text-align: right;
}

.schedule-connector {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, var(--lavender-light), var(--rose-light));
    border-radius: 2px;
}

/* =============================================
   INFORMACE PRO HOSTY
   ============================================= */
.info-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 32px 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--lavender-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.info-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-floral);
    border-radius: 50%;
    margin: 0 auto 16px;
    color: var(--lavender);
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.info-card p strong {
    color: var(--lavender);
    font-weight: 600;
}

/* =============================================
   MÍSTO SVATBY
   ============================================= */
.venue-section {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.venue-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.venue-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.venue-address {
    font-size: 1rem;
    color: var(--lavender);
    font-weight: 400;
    margin-bottom: 16px;
}

.venue-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.venue-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.venue-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.venue-detail svg {
    color: var(--lavender);
    flex-shrink: 0;
}

.venue-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* =============================================
   TLAČÍTKA
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--lavender);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--lavender);
    border: 1.5px solid var(--lavender);
}

.btn-outline:hover {
    background: var(--lavender);
    color: var(--white);
    transform: translateY(-2px);
}

/* =============================================
   RSVP FORMULÁŘ
   ============================================= */
.rsvp-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.rsvp-form {
    max-width: 640px;
    margin: 0 auto;
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 24px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--lavender);
    box-shadow: 0 0 0 3px rgba(155, 142, 196, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    font-weight: 300;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
}

.form-message {
    text-align: center;
    margin-top: 16px;
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 10px;
    display: none;
}

.form-message.success {
    display: block;
    background: var(--sage-pale);
    color: var(--sage);
    border: 1px solid var(--sage-light);
}

.form-message.error {
    display: block;
    background: var(--rose-pale);
    color: var(--rose);
    border: 1px solid var(--rose-light);
}

/* =============================================
   VZPOMÍNKY - NAHRÁVÁNÍ & GALERIE
   ============================================= */
.memories-section {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.upload-area {
    max-width: 640px;
    margin: 0 auto 40px;
    border: 2px dashed var(--lavender-light);
    border-radius: var(--border-radius);
    padding: 48px 24px;
    text-align: center;
    background: var(--warm-white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area.dragover {
    border-color: var(--lavender);
    background: var(--lavender-pale);
    transform: scale(1.01);
}

.upload-icon {
    color: var(--lavender-light);
    margin-bottom: 16px;
}

.upload-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.upload-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.upload-btn {
    cursor: pointer;
}

/* Upload zamčený (před svatbou) */
.upload-locked {
    padding: 16px 0;
}

.upload-locked h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-locked p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.upload-locked .upload-icon {
    color: var(--lavender-light);
    margin-bottom: 16px;
}

.upload-locked-sub {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Upload progress */
.upload-progress {
    margin-top: 20px;
}

.upload-progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.upload-progress-bar {
    flex-grow: 1;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lavender), var(--rose));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress-item.done {
    color: var(--sage);
}

/* Odkaz na galerii */
.gallery-link-box {
    text-align: center;
    margin-top: 32px;
    padding: 32px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.gallery-link-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Aktivní odkaz v navigaci */
.nav-gallery-link {
    color: var(--lavender) !important;
    font-weight: 700 !important;
}

.nav-active {
    border-bottom: 2px solid var(--lavender);
}

/* =============================================
   STRÁNKA GALERIE
   ============================================= */
.gallery-page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--gradient-floral);
    position: relative;
    overflow: hidden;
}

.gallery-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15%;
    right: -15%;
    height: 280px;
    background: url('flowers.png') no-repeat top center;
    background-size: 100% auto;
    opacity: 0.35;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.gallery-page-header .container {
    position: relative;
    z-index: 1;
}

.gallery-page-content {
    padding: 40px 0 var(--section-padding);
    background: var(--cream);
    min-height: 50vh;
}

.gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}

.gallery-total {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Prázdný stav galerie */
.gallery-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-light);
}

.gallery-empty svg {
    color: var(--lavender-light);
    margin-bottom: 20px;
}

.gallery-empty h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.gallery-empty p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Grid galerie na stránce */
.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-page-grid .gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-page-grid .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-page-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-page-grid .gallery-item:hover img {
    transform: scale(1.05);
}

/* Načítací indikátor */
.gallery-loader {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--lavender);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Lightbox counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 53, 69, 0.92);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2rem;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* =============================================
   PATIČKA
   ============================================= */
.footer {
    padding: 100px 0 60px;
    text-align: center;
    background: var(--gradient-floral);
    position: relative;
    overflow: hidden;
}

/* Květinová dekorace v patičce */
.footer-floral {
    position: absolute;
    top: 0;
    left: -15%;
    right: -15%;
    height: 260px;
    background: url('flowers.png') no-repeat top center;
    background-size: 100% auto;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-names {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-date {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-love {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* =============================================
   ANIMACE
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    :root {
        --section-padding: 72px;
    }

    /* Květinové dekorace na tabletu - výraznější */
    .floral-top {
        height: 200px;
        left: -30%;
        right: -30%;
        opacity: 0.4;
    }

    .floral-bottom {
        height: 180px;
        left: -30%;
        right: -30%;
        opacity: 0.35;
    }

    .footer-floral {
        height: 180px;
        left: -30%;
        right: -30%;
        opacity: 0.35;
    }

    .gallery-page-header::before {
        height: 180px;
        left: -30%;
        right: -30%;
        opacity: 0.35;
    }

    .hero {
        min-height: 75vh;
    }

    .footer {
        padding: 80px 0 40px;
    }

    /* Navigace - mobilní: jen logo vlevo + ikona galerie vpravo */
    .nav-links {
        display: none;
    }

    .nav-mobile-gallery {
        display: flex;
    }

    /* Timeline - mobilní */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 0 0 40px 52px;
        text-align: left;
    }

    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }

    /* Info grid */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Venue */
    .venue-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Formulář */
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rsvp-form {
        padding: 28px 20px;
    }

    /* Harmonogram */
    .schedule-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .schedule-desc {
        text-align: left;
        max-width: 100%;
        flex-basis: 100%;
        padding-left: 64px;
        margin-top: -4px;
    }

    /* Countdown */
    .countdown-item {
        min-width: 80px;
        padding: 16px 20px;
    }

    .countdown-number {
        font-size: 2.2rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }

    /* Galerie */
    .gallery-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .gallery-toolbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .floral-top {
        height: 180px;
        left: -50%;
        right: -50%;
        opacity: 0.4;
    }

    .floral-bottom {
        height: 150px;
        left: -50%;
        right: -50%;
        opacity: 0.35;
    }

    .footer-floral {
        height: 150px;
        left: -50%;
        right: -50%;
        opacity: 0.35;
    }

    .gallery-page-header::before {
        height: 150px;
        left: -50%;
        right: -50%;
    }

    .hero {
        min-height: 70vh;
        padding: 100px 20px 60px;
    }

    .hero-names {
        font-size: 2.8rem;
    }

    .countdown {
        gap: 8px;
    }

    .countdown-item {
        min-width: 68px;
        padding: 12px 14px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-separator {
        display: none;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .timeline-image {
        height: 300px;
    }

    .gallery-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   INTRO OVERLAY – Svatební animace
   ============================================= */
#introOverlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 2s ease;
}

.io-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ede8f5, #f5dde3, #faeede, #e2ede1, #f5dde3, #ede8f5);
    background-size: 500% 500%;
    animation: ioBg 28s ease infinite;
}

@keyframes ioBg {
    0%   { background-position: 0%   50%; }
    25%  { background-position: 100% 50%; }
    50%  { background-position: 100% 0%;  }
    75%  { background-position: 0%   100%; }
    100% { background-position: 0%   50%; }
}

.io-flowers-top {
    position: absolute;
    top: 0; left: -15%; right: -15%;
    height: 320px;
    background: url('flowers.png') no-repeat top center;
    background-size: 100% auto;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    transition: opacity 2.5s ease;
}

.io-flowers-bottom {
    position: absolute;
    bottom: 0; left: -15%; right: -15%;
    height: 280px;
    background: url('flowers.png') no-repeat bottom center;
    background-size: 100% auto;
    transform: rotate(180deg);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    transition: opacity 2.5s ease;
}

.io-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px;
    pointer-events: none;
}

.io-tagline {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(0.7rem, 1.8vw, 0.92rem);
    font-weight: 300;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: #8e8299;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.4s ease, transform 1.4s ease;
    min-height: 1.5em;
}

.io-monogram {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(5rem, 17vw, 11rem);
    font-weight: 400;
    color: #3d3545;
    line-height: 1;
    opacity: 0;
    transform: scale(0.68);
    transition: opacity 1.8s ease, transform 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.io-amp {
    color: #9b8ec4;
    font-style: italic;
    display: inline-block;
}

.io-divider {
    height: 1.5px;
    width: 0;
    background: linear-gradient(90deg, #c8bfe6, #e8b4c0, #f0c9a6);
    border-radius: 2px;
    transition: width 1.2s ease;
}

.io-date {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(0.95rem, 2.5vw, 1.3rem);
    font-weight: 400;
    color: #6b6174;
    letter-spacing: 0.22em;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.io-petal {
    position: absolute;
    border-radius: 50% 0 50% 50%;
    pointer-events: none;
    z-index: 5;
    will-change: transform, opacity;
}

.io-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(155, 142, 196, 0.12);
    z-index: 20;
}

.io-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c8bfe6, #e8b4c0, #f0c9a6, #b5cdb3, #c8bfe6);
    background-size: 300% 100%;
    animation: ioProgressShimmer 7s linear infinite;
    border-radius: 0 2px 2px 0;
}

@keyframes ioProgressShimmer {
    from { background-position: 0% 50%; }
    to   { background-position: 300% 50%; }
}

@media (max-width: 768px) {
    .io-flowers-top    { left: -30%; right: -30%; height: 200px; }
    .io-flowers-bottom { left: -30%; right: -30%; height: 180px; }
    .io-monogram       { font-size: clamp(4rem, 22vw, 8rem); }
}

@media (max-width: 480px) {
    .io-flowers-top    { left: -50%; right: -50%; height: 160px; }
    .io-flowers-bottom { left: -50%; right: -50%; height: 150px; }
}

/* =============================================
   PODĚKOVÁNÍ PO SVATBĚ + HIGHLIGHT SMYČKA
   ============================================= */

/* Sekce na hlavní stránce (varianta A) */
.thankyou-section {
    padding: var(--section-padding) 0;
    background: var(--white);
    text-align: center;
}

.thankyou-section[hidden] {
    display: none;
}

/* Samostatná stránka dekujeme.html (varianta B) */
.thankyou-page {
    position: relative;
    overflow: hidden;
    background: var(--gradient-floral);
    padding: 140px 0 90px;
    min-height: 100vh;
}

.thankyou-page .thankyou-section {
    background: transparent;
    padding: 0;
}

.thankyou-page .container {
    position: relative;
    z-index: 1;
}

.thankyou-floral {
    position: absolute;
    top: 0;
    left: -15%;
    right: -15%;
    height: 300px;
    background: url('flowers.png') no-repeat top center;
    background-size: 100% auto;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
}

.thankyou-eyebrow {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lavender);
    margin-bottom: 10px;
}

.thankyou-title {
    font-family: var(--font-script);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 6px;
}

.thankyou-text {
    max-width: 640px;
    margin: 0 auto 44px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.thankyou-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.thankyou-signature {
    font-family: var(--font-script);
    font-size: 1.9rem;
    color: var(--lavender);
    line-height: 1.4;
}

/* Highlight smyčka – rotující prezentace fotek */
.highlight-loop {
    display: block;
    position: relative;
    max-width: 760px;
    margin: 0 auto 40px;
    aspect-ratio: 16 / 10;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--lavender-pale);
}

.hl-stage {
    position: absolute;
    inset: 0;
}

.hl-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease;
    will-change: opacity, transform;
}

.hl-slide.active {
    opacity: 1;
    animation: hlZoom 6s ease forwards;
}

@keyframes hlZoom {
    from { transform: scale(1.06); }
    to   { transform: scale(1.16); }
}

.hl-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 36px 16px 16px;
    background: linear-gradient(to top, rgba(61, 53, 69, 0.55), transparent);
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    opacity: 0.92;
    transition: opacity 0.3s ease;
}

.highlight-loop:hover .hl-hint {
    opacity: 1;
}

.hl-hint svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .thankyou-signature { font-size: 1.6rem; }
    .thankyou-text { font-size: 1rem; }
    .highlight-loop { aspect-ratio: 4 / 3; }
}
