/* === Dobromilovo království - Veselý dětský design === */

/* === VLASTNÍ FONTY === */
@font-face {
    font-family: 'Xenippa';
    src: url('/font/xenippa1.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Segoe Print';
    src: url('/font/segoeprint.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Pastelové barvy pro dětský web - Sny a slunečný den */
    --color-primary: #D8B5FF;      /* Světlá fialová - sny a představy */
    --color-secondary: #FF9500;    /* Oranžová - slunečný den */
    --color-accent: #FF8C00;       /* Tmavší oranžová - světlo */
    --color-success: #B5EAD7;      /* Mintová zelená */
    --color-purple: #E6D5FF;       /* Velmi světlá fialová */
    --color-lavender: #F0E6FF;     /* Levandulová - sen */
    --color-sun: #FFF4CC;          /* Sluneční */
    --color-dream: #C8A2F0;        /* Tmavší fialová pro akcenty */

    /* Základní barvy */
    --color-bg: #FFFEF5;           /* Krémově žlutkavé pozadí - teplý den */
    --color-text: #2C3E50;         /* Tmavý text */
    --color-text-muted: #7F8C8D;   /* Ztlumený text */
    --color-white: #FFFFFF;        /* Čistá bílá */

    /* Stíny - jemnější pro dětský design */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-magical: 0 10px 30px rgba(216, 181, 255, 0.4);
    --shadow-sunny: 0 10px 30px rgba(255, 224, 102, 0.3);

    /* Přechody - sny a slunečný den */
    --gradient-rainbow: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-dream: linear-gradient(135deg, #D8B5FF 0%, #E6D5FF 100%);
    --gradient-sunny: linear-gradient(135deg, #FFE066 0%, #FFF4CC 100%);
    --gradient-magic: linear-gradient(135deg, #D8B5FF 0%, #FFE066 50%, #FFD700 100%);
}

/* === DARK MODE - Pohádková noc === */
html[data-theme="dark"] {
    /* Noční barvy - tmavě modrá obloha */
    --color-primary: #9D7FFF;      /* Fialová - jasná na tmavém pozadí */
    --color-secondary: #FFB366;    /* Světlá oranžová - hvězdy a měsíc */
    --color-accent: #FFA64D;       /* Oranžová */
    --color-success: #7DD3C0;      /* Světle tyrkysová */
    --color-purple: #B8A4FF;       /* Světle fialová */
    --color-lavender: #C8B8FF;     /* Levandulová */
    --color-sun: #FFF8DD;          /* Měsíční světlo */
    --color-dream: #B399FF;        /* Snová fialová */

    /* Základní barvy - noční obloha */
    --color-bg: #0F1729;           /* Tmavě modrá - noční obloha */
    --color-text: #E8E8F5;         /* Světlý text */
    --color-text-muted: #A8B2D1;   /* Ztlumený světlý text */
    --color-white: #1A2332;        /* Tmavší plochy */

    /* Stíny - noční záře */
    --shadow-soft: 0 4px 12px rgba(157, 127, 255, 0.2);
    --shadow-medium: 0 6px 20px rgba(157, 127, 255, 0.3);
    --shadow-hover: 0 8px 25px rgba(157, 127, 255, 0.4);
    --shadow-magical: 0 10px 30px rgba(157, 127, 255, 0.5);
    --shadow-sunny: 0 10px 30px rgba(255, 217, 102, 0.4);

    /* Přechody - noční nebe - tmavší konec pro čitelnost */
    --gradient-rainbow: linear-gradient(135deg, #9D7FFF 0%, #6B5B95 100%);
    --gradient-dream: linear-gradient(135deg, #9D7FFF 0%, #6B5B95 100%);
    --gradient-sunny: linear-gradient(135deg, #8B7355 0%, #5D4E37 100%);
    --gradient-magic: linear-gradient(135deg, #9D7FFF 0%, #7B6B9F 50%, #6B5B95 100%);
}

/* Hvězdičky na pozadí v dark mode */
html[data-theme="dark"] body::before {
    background-image:
        radial-gradient(circle, #9D7FFF 2px, transparent 2px),
        radial-gradient(circle, #FFD966 2px, transparent 2px),
        radial-gradient(circle, #FFFFFF 1px, transparent 1px),
        radial-gradient(circle, #B8A4FF 2px, transparent 2px),
        radial-gradient(circle, #FFEB99 1px, transparent 1px);
    opacity: 0.3;
    animation: twinkleStars 4s ease-in-out infinite;
}

@keyframes twinkleStars {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* Vypnutí animace na mobilech */
@media (max-width: 992px) {
    html[data-theme="dark"] body::before {
        animation: none;
        opacity: 0.2;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe Print', 'Comic Sans MS', cursive, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Plynulé přepínání všech barev při změně tématu */
*, *::before, *::after {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Veselé pastelové hvězdičky a sny na pozadí */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, var(--color-primary) 2px, transparent 2px),
        radial-gradient(circle, var(--color-secondary) 2px, transparent 2px),
        radial-gradient(circle, var(--color-accent) 1px, transparent 1px),
        radial-gradient(circle, var(--color-lavender) 2px, transparent 2px),
        radial-gradient(circle, var(--color-sun) 1px, transparent 1px);
    background-size: 300px 300px, 400px 400px, 250px 250px, 350px 350px, 450px 450px;
    background-position: 0 0, 100px 100px, 200px 50px, 50px 200px, 150px 150px;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

/* Vypnutí dekorace na mobilech pro lepší výkon */
@media (max-width: 992px) {
    body::before {
        opacity: 0.08;
    }
}

/* === PLOVOUCÍ DEKORACE === */
.floating-decoration {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    font-size: 2rem;
    opacity: 0.3;
    will-change: transform;
}

/* Vypnutí plovoucích dekorací na mobilech */
@media (max-width: 992px) {
    .floating-decoration {
        display: none;
    }
}

.float-1 {
    top: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.float-2 {
    top: 30%;
    right: 10%;
    animation: float 8s ease-in-out infinite 1s;
}

.float-3 {
    top: 60%;
    left: 8%;
    animation: float 7s ease-in-out infinite 2s;
}

.float-4 {
    bottom: 15%;
    right: 5%;
    animation: float 9s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* === TYPOGRAFIE === */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-family: 'Xenippa', cursive, sans-serif;
    font-size: 3.5rem;
    color: #2c2c2c;
    letter-spacing: 2px;
    font-weight: normal;
}

/* Gradient pro dark mode */
html[data-theme="dark"] h1 {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

h2 {
    font-family: 'Xenippa', cursive, sans-serif;
    font-size: 2.5rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    font-weight: normal;
}

h2::after {
    content: '✨';
    position: absolute;
    right: -35px;
    top: -5px;
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Vypnutí sparkle animace na mobilech */
@media (max-width: 992px) {
    h2::after {
        animation: none;
        will-change: auto;
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

h3 {
    font-size: 1.6rem;
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--color-secondary);
}

/* === NAVIGACE === */
.navbar {
    background: var(--color-white) !important;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--color-primary);
    box-shadow: var(--shadow-soft);
    padding: 1rem 0;
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 12" preserveAspectRatio="none"><path d="M0,6 Q300,0 600,6 T1200,6 L1200,12 L0,12 Z" fill="%23FFFFFF" opacity="0.8"/></svg>');
    background-size: 100% 100%;
}

/* Dark mode - navbar::after */
html[data-theme="dark"] .navbar::after {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 12" preserveAspectRatio="none"><path d="M0,6 Q300,0 600,6 T1200,6 L1200,12 L0,12 Z" fill="%231A2332" opacity="0.8"/></svg>');
}

.navbar-brand {
    font-family: 'Xenippa', cursive, sans-serif;
    color: #2c2c2c !important;
    font-size: 1.8rem;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

/* Dark mode - barevný text */
html[data-theme="dark"] .navbar-brand {
    color: var(--color-primary) !important;
}

.navbar-brand:hover {
    color: var(--color-secondary) !important;
    transform: scale(1.02);
}

.navbar-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
    transition: all 0.3s ease;
}

/* Dark mode - jemnější fialový stín */
html[data-theme="dark"] .navbar-logo {
    filter: drop-shadow(0 2px 8px rgba(216, 181, 255, 0.4));
}

.navbar-brand:hover .navbar-logo {
    filter: drop-shadow(0 4px 12px rgba(255, 224, 102, 0.6));
    transform: scale(1.08) rotate(2deg);
}

.nav-link {
    color: var(--color-text) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover {
    background: rgba(216, 181, 255, 0.2);
    color: var(--color-primary) !important;
    transform: translateY(-2px);
}

/* Navbar toggler (hamburger menu) - dark mode */
html[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28232, 232, 245, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

html[data-theme="dark"] .navbar-toggler {
    border-color: rgba(232, 232, 245, 0.3);
}

/* === KONTEJNERY === */
.container {
    max-width: 1200px;
    padding: 0 1rem;
}

main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* === SVG ODDĚLOVAČE === */
.section-divider {
    width: 100%;
    height: 40px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.wave-top {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,60 Q300,0 600,60 T1200,60 L1200,120 L0,120 Z" fill="%23D8B5FF" opacity="0.15"/></svg>');
    background-size: 100% 100%;
}

.wave-bottom {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 L0,60 Q300,120 600,60 T1200,60 L1200,0 Z" fill="%23FFE066" opacity="0.15"/></svg>');
    background-size: 100% 100%;
}

/* Vypnutí/zmenšení wave dekorací na mobilech */
@media (max-width: 768px) {
    .section-divider {
        height: 20px;
        margin: 0.5rem 0;
    }
}

/* Úplně skrýt na velmi malých mobilech */
@media (max-width: 576px) {
    .section-divider {
        display: none;
    }
}

/* === KARTY S HRAVÝM DESIGNEM === */
.card {
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    border-radius: 25px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(216, 181, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

/* Vypnutí hover efektů na mobilech */
@media (max-width: 992px) {
    .card:hover::before {
        opacity: 0;
    }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-secondary);
}

/* Upload form bez zoom efektu */
.card.upload-form:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
    border-color: var(--color-red);
}

.card.upload-form:hover::before {
    opacity: 0;
}

.card.upload-form:hover::after {
    opacity: 0;
}

.card::after {
    content: '✨';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.card:hover::after {
    opacity: 0.4;
    animation: float 3s ease-in-out infinite;
}

.card-header {
    background: var(--gradient-dream);
    color: var(--color-white);
    padding: 1.2rem 1.8rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 22px 22px 0 0;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 12" preserveAspectRatio="none"><path d="M0,0 Q150,8 300,0 T600,0 T900,0 T1200,0 L1200,12 L0,12 Z" fill="%23FFFFFF" opacity="0.95"/></svg>');
    background-size: 100% 100%;
}

/* Dark mode - card-header::before */
html[data-theme="dark"] .card-header::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 12" preserveAspectRatio="none"><path d="M0,0 Q150,8 300,0 T600,0 T900,0 T1200,0 L1200,12 L0,12 Z" fill="%231A2332" opacity="0.95"/></svg>');
}

/* === KARTY S OBRÁZKY HRADŮ - nyní bez obrázků, jen pastelové === */
.card-with-castle {
    background: linear-gradient(135deg, rgba(216, 181, 255, 0.15) 0%, var(--color-white) 100%);
}

.card-castle-2 {
    background: linear-gradient(135deg, rgba(255, 224, 102, 0.15) 0%, var(--color-white) 100%);
}

.card-castle-3 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, var(--color-white) 100%);
}

/* === GRADIENTY PRO KARTY - S PODPOROU DARK MODE === */
.card-gradient-primary {
    background: linear-gradient(135deg, rgba(216, 181, 255, 0.1) 0%, var(--color-white) 100%);
}

.card-gradient-primary-light {
    background: linear-gradient(135deg, rgba(216, 181, 255, 0.05) 0%, var(--color-white) 100%);
}

.card-gradient-secondary {
    background: linear-gradient(135deg, rgba(255, 224, 102, 0.1) 0%, var(--color-white) 100%);
}

.card-gradient-accent {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, var(--color-white) 100%);
}

/* Dark mode - gradienty z tmavé na skoro stejně tmavou */
html[data-theme="dark"] .card-gradient-primary {
    background: linear-gradient(135deg, rgba(157, 127, 255, 0.15) 0%, var(--color-white) 100%);
}

html[data-theme="dark"] .card-gradient-primary-light {
    background: linear-gradient(135deg, rgba(157, 127, 255, 0.1) 0%, var(--color-white) 100%);
}

html[data-theme="dark"] .card-gradient-secondary {
    background: linear-gradient(135deg, rgba(255, 179, 102, 0.15) 0%, var(--color-white) 100%);
}

html[data-theme="dark"] .card-gradient-accent {
    background: linear-gradient(135deg, rgba(255, 166, 77, 0.15) 0%, var(--color-white) 100%);
}

/* Vícebarevný gradient (duhový) */
.card-gradient-rainbow {
    background: linear-gradient(135deg, rgba(216, 181, 255, 0.1) 0%, rgba(255, 224, 102, 0.1) 50%, rgba(255, 215, 0, 0.1) 100%);
}

.box-gradient-rainbow {
    background: linear-gradient(135deg, rgba(216, 181, 255, 0.15) 0%, rgba(255, 224, 102, 0.15) 100%);
}

html[data-theme="dark"] .card-gradient-rainbow {
    background: linear-gradient(135deg, rgba(157, 127, 255, 0.12) 0%, rgba(255, 179, 102, 0.12) 50%, rgba(255, 166, 77, 0.12) 100%);
}

html[data-theme="dark"] .box-gradient-rainbow {
    background: linear-gradient(135deg, rgba(157, 127, 255, 0.18) 0%, rgba(255, 179, 102, 0.18) 100%);
}

/* === TLAČÍTKA S HRAVÝM DESIGNEM === */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-dream);
    color: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-medium);
}

.btn-primary::after {
    content: '✨';
    position: absolute;
    right: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-primary:hover::after {
    right: 15px;
    opacity: 1;
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 3px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-3px) scale(1.03);
}

/* === FORMULÁŘE === */
.form-row-compact {
    gap: 1rem;
}

/* Zajistit, že sloupce zůstanou vedle sebe i na mobilech */
.form-row-compact .col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.form-row-compact .col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

@media (max-width: 576px) {
    .form-row-compact .col-8,
    .form-row-compact .col-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Pole Výprava a Heslo vedle sebe pomocí CSS Grid */
.expedition-password-fields {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.expedition-field,
.password-field {
    display: flex;
    flex-direction: column;
}

/* Na úzkých displejích zmenšit mezeru */
@media (max-width: 576px) {
    .expedition-password-fields {
        gap: 0.75rem;
    }
}

.form-control, .form-select {
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    color: var(--color-text);
    padding: 0.8rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: var(--color-white);
    border-color: var(--color-secondary);
    color: var(--color-text);
    box-shadow: 0 0 0 0.2rem rgba(255, 224, 102, 0.3);
    outline: none;
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

.form-label {
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

/* Kompaktnější formuláře pro mobily */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 1rem;
    }

    .form-control, .form-select {
        padding: 0.7rem 0.9rem;
    }
}

/* === GALERIE === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid var(--color-red);
    will-change: transform;
    cursor: pointer;
}

.gallery-item::before {
    content: '⭐';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
    animation: float 2s ease-in-out infinite;
}

.gallery-item:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: var(--shadow-magical);
    border-color: var(--color-red-light);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 248, 243, 0.98);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

/* Dark mode - lightbox background */
html[data-theme="dark"] .lightbox {
    background: rgba(15, 23, 41, 0.98);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--color-text);
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg) scale(1.2);
}

.lightbox-content {
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    gap: 2rem;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow-magical);
    animation: scaleIn 0.3s ease;
    overflow: hidden;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 60%;
    max-height: calc(90vh - 4rem);
    object-fit: contain;
    border-radius: 20px;
    border: 3px solid var(--color-primary);
}

.lightbox-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.lightbox-info h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.lightbox-info p {
    color: var(--color-text);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.lightbox-info p:last-child {
    font-style: italic;
    color: var(--color-text);
    margin-top: 1rem;
}

/* Jednodušší lightbox pro kroniku */
.lightbox-content-simple {
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow-magical);
    animation: scaleIn 0.3s ease;
    overflow: hidden;
}

.lightbox-content-simple img {
    max-width: 100%;
    max-height: calc(90vh - 150px);
    object-fit: contain;
    border-radius: 20px;
    border: 3px solid var(--color-primary);
}

.lightbox-info-simple {
    text-align: center;
    padding: 1.5rem 0 0;
}

.lightbox-info-simple h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.lightbox-info-simple p {
    color: var(--color-text);
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .lightbox {
        padding: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-content {
        flex-direction: column;
        max-height: 85vh;
        padding: 1.5rem;
        gap: 1rem;
        overflow-y: auto;
    }

    .lightbox-content img {
        max-width: 100%;
        max-height: 50vh;
    }

    .lightbox-info {
        padding: 0;
    }

    .lightbox-info h2 {
        font-size: 1.5rem;
    }

    .lightbox-info p {
        font-size: 1rem;
    }

    .lightbox-content-simple {
        padding: 1.5rem;
    }

    .lightbox-content-simple img {
        max-height: calc(90vh - 200px);
    }

    .lightbox-info-simple h2 {
        font-size: 1.5rem;
    }

    .lightbox-info-simple p {
        font-size: 1rem;
    }
}

/* === HERO SEKCE === */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, rgba(216, 181, 255, 0.2) 0%, rgba(255, 224, 102, 0.2) 100%);
    border-radius: 30px;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '✨';
    position: absolute;
    top: 30px;
    left: 10%;
    font-size: 2.5rem;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '❤️';
    position: absolute;
    top: 50px;
    right: 10%;
    font-size: 2.5rem;
    opacity: 0.4;
    animation: float 7s ease-in-out infinite 1s;
}

/* Vypnutí hero dekorací na mobilech */
@media (max-width: 992px) {
    .hero::before,
    .hero::after {
        display: none;
    }
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

/* Dark mode - jemnější fialový stín */
html[data-theme="dark"] .hero-logo img {
    filter: drop-shadow(0 4px 12px rgba(216, 181, 255, 0.4));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    color: #2c2c2c;
}

/* Gradient jen pro dark mode */
html[data-theme="dark"] .hero h1 {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-logo img {
        height: 90px;
    }
}

/* === FOOTER === */
footer {
    background: var(--color-white);
    border-top: 3px solid var(--color-primary);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    position: relative;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

footer::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 12" preserveAspectRatio="none"><path d="M0,12 Q150,4 300,12 T600,12 T900,12 T1200,12 L1200,0 L0,0 Z" fill="%23FFFFFF" opacity="0.95"/></svg>');
    background-size: 100% 100%;
}

/* Dark mode - footer::before */
html[data-theme="dark"] footer::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 12" preserveAspectRatio="none"><path d="M0,12 Q150,4 300,12 T600,12 T900,12 T1200,12 L1200,0 L0,0 Z" fill="%231A2332" opacity="0.95"/></svg>');
}

footer a {
    color: var(--color-primary);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--color-secondary);
}

.footer-logo {
    margin-top: 1.5rem;
}

.footer-logo img {
    height: 92px;
    width: auto;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
    opacity: 0.95;
    transition: all 0.3s ease;
}

/* Dark mode - jemnější fialový stín */
html[data-theme="dark"] .footer-logo img {
    filter: drop-shadow(0 2px 8px rgba(216, 181, 255, 0.3));
}

.footer-logo img:hover {
    filter: drop-shadow(0 4px 12px rgba(255, 224, 102, 0.5));
    transform: scale(1.1);
}

/* === IKONY A DEKORACE === */
.icon-heart::before {
    content: '❤️';
    margin-right: 0.6rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

/* Vypnutí ikon animací na mobilech */
@media (max-width: 992px) {
    .icon-heart::before {
        animation: none;
    }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

.icon-gift::before {
    content: '🎁';
    margin-right: 0.6rem;
}

.icon-star::before {
    content: '⭐';
    margin-right: 0.6rem;
    animation: starRotate 3s linear infinite;
}

/* Vypnutí star rotate animace na mobilech */
@media (max-width: 992px) {
    .icon-star::before {
        animation: none;
    }
}

@keyframes starRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.icon-camera::before {
    content: '📷';
    margin-right: 0.6rem;
}

.icon-mail::before {
    content: '📧';
    margin-right: 0.6rem;
}

.icon-mail-inline {
    margin-right: 0.3rem;
}

/* === UPLOAD PREVIEW === */
.upload-preview {
    margin-top: 1.5rem;
    text-align: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 25px;
    border: 3px solid var(--color-primary);
    box-shadow: var(--shadow-soft);
}

/* === UPLOAD SUCCESS MESSAGE === */
.upload-success-message {
    background: var(--gradient-rainbow);
    border: 4px solid var(--color-success);
    border-radius: 30px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--shadow-magical);
}

@keyframes successPop {
    0% {
        transform: scale(0.3) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.upload-success-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: successGlow 3s ease-in-out infinite;
}

@keyframes successGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(10%, 10%) scale(1.2);
        opacity: 0.8;
    }
}

.success-icon {
    font-size: 5rem;
    animation: successBounce 1s ease-in-out infinite;
    display: inline-block;
    margin-bottom: 1rem;
}

@keyframes successBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

.success-title {
    color: white;
    font-size: 2.5rem;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: successSlideIn 0.6s ease-out 0.2s both;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-text {
    color: white;
    font-size: 1.4rem;
    line-height: 1.8;
    margin: 1.5rem 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    animation: successSlideIn 0.6s ease-out 0.4s both;
    font-weight: 500;
}

.success-decoration {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 2.5rem;
}

.success-heart {
    display: inline-block;
    animation: successHeartBeat 1.5s ease-in-out infinite;
}

@keyframes successHeartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.2);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.success-star {
    display: inline-block;
    animation: successRotate 3s linear infinite;
}

@keyframes successRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.success-gift {
    display: inline-block;
    animation: successShake 2s ease-in-out infinite;
}

@keyframes successShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-10deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(10deg);
    }
}

@media (max-width: 768px) {
    .upload-success-message {
        padding: 2rem 1.5rem;
    }

    .success-icon {
        font-size: 4rem;
    }

    .success-title {
        font-size: 2rem;
    }

    .success-text {
        font-size: 1.2rem;
    }

    .success-decoration {
        gap: 1.5rem;
        font-size: 2rem;
    }
}

/* === ALERT / ZPRÁVY === */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-info {
    background: rgba(255, 224, 102, 0.3);
    border-color: var(--color-secondary);
    color: var(--color-text);
}

.alert-success {
    background: rgba(181, 234, 215, 0.3);
    border-color: var(--color-success);
    color: var(--color-text);
}

.alert-danger {
    background: rgba(216, 181, 255, 0.3);
    border-color: var(--color-primary);
    color: var(--color-text);
}

/* === ANIMACE === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* === RESPONZIVITA === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-logo img {
        height: 90px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.8rem;
        border-radius: 25px;
    }

    .floating-decoration {
        font-size: 1.5rem;
    }

    /* Vypnutí hover efektů v galerii na mobilech */
    .gallery-item {
        will-change: auto;
    }

    .gallery-item:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
        border-color: var(--color-red);
    }

    .gallery-item:hover::before {
        opacity: 0;
        animation: none;
    }

    .gallery-item:hover img {
        transform: none;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.75rem 1.8rem;
        font-size: 0.85rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-logo {
        height: 36px;
    }

    .footer-logo img {
        height: 55px;
    }

    .hero {
        padding: 2.5rem 1rem;
    }
}

/* === UTILITY TŘÍDY === */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pb-3 { padding-bottom: 1.5rem; }

/* === HEART GAME (CAPTCHA MINIHRA) === */
.heart-game-container {
    background: rgba(216, 181, 255, 0.15);
    border: 3px dashed var(--color-primary);
    border-radius: 25px;
    padding: 2rem;
    margin-top: 0.8rem;
}

.heart-game-instructions {
    text-align: center;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
}

.heart-game {
    position: relative;
    width: 100%;
    height: 320px;
    background: rgba(255, 244, 163, 0.2);
    border-radius: 20px;
    border: 3px solid var(--color-secondary);
    overflow: hidden;
}

.heart-item {
    position: absolute;
    font-size: 3.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.heart-item:hover {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
}

.heart-item.heart-completed {
    animation: heartPulse 0.6s ease;
    filter: drop-shadow(0 0 20px rgba(220, 20, 60, 1));
}

.heart-celebrate {
    animation: heartCelebrate 0.7s ease;
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

@keyframes heartCelebrate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-20deg) scale(1.3);
    }
    75% {
        transform: rotate(20deg) scale(1.3);
    }
}

.sparkle {
    position: absolute;
    font-size: 1.8rem;
    pointer-events: none;
    animation: sparkleFloat 1s ease-out forwards;
}

@keyframes sparkleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.3);
    }
}

.confetti {
    position: absolute;
    top: 0;
    font-size: 2.2rem;
    pointer-events: none;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(320px) rotate(360deg);
    }
}

.game-completed {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15) 0%, rgba(255, 77, 109, 0.15) 100%);
    border-color: var(--color-red-light);
    animation: gameCompletedPulse 2s ease infinite;
}

@keyframes gameCompletedPulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(220, 20, 60, 0.4);
    }
    50% {
        box-shadow: 0 0 50px rgba(220, 20, 60, 0.8);
    }
}

.btn-pulse {
    animation: btnPulse 1.5s ease infinite;
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(220, 20, 60, 0.9);
    }
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.3) !important;
    box-shadow: none !important;
}

button:disabled:hover {
    transform: none !important;
}

/* === CONTACT PAGE === */
.card-contact {
    border-color: var(--color-secondary);
}

.card-contact:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.card-contact:hover::before {
    opacity: 1;
}

.card-header-contact {
    background: var(--gradient-sunny);
}

.card-contact-info {
    background: linear-gradient(135deg, rgba(255, 224, 102, 0.15) 0%, rgba(255, 255, 255, 1) 100%);
}

.btn-contact {
    background: var(--gradient-sunny);
    color: var(--color-white);
    box-shadow: var(--shadow-soft);
    padding: 0.9rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-contact:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-medium);
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-contact:hover::before {
    width: 300px;
    height: 300px;
}

.heart-game-container-contact {
    border-color: var(--color-secondary);
    background: rgba(255, 224, 102, 0.15);
}

.heart-game-contact {
    border-color: var(--color-secondary);
}

.heart-game-contact.game-completed {
    background: linear-gradient(135deg, rgba(255, 224, 102, 0.2) 0%, rgba(181, 234, 215, 0.2) 100%);
    border-color: var(--color-success);
    animation: gameCompletedPulseBlue 2s ease infinite;
}

@keyframes gameCompletedPulseBlue {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 224, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 224, 102, 0.8);
    }
}

/* Contact Success Message */
.contact-success-message {
    background: var(--gradient-rainbow);
    border: 4px solid var(--color-success);
    border-radius: 30px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--shadow-magical);
}

.contact-success-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: successGlow 3s ease-in-out infinite;
}

.contact-success-message .success-checkmark {
    display: inline-block;
    font-size: 2.5rem;
    animation: successPulseCheck 2s ease-in-out infinite;
}

@keyframes successPulseCheck {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.contact-success-message .success-mail {
    display: inline-block;
    animation: successMailBounce 1.5s ease-in-out infinite;
}

@keyframes successMailBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .contact-success-message {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .heart-game {
        height: 260px;
    }

    .heart-item {
        font-size: 2.6rem;
    }
}

@media (max-width: 576px) {
    .heart-game {
        height: 220px;
    }

    .heart-item {
        font-size: 2.2rem;
    }

    .heart-game-instructions {
        font-size: 1rem;
    }
}

/* === TIMELINE / KRONIKA === */
.expedition-header {
    max-width: 900px;
    margin: 2rem auto 1.5rem;
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(216, 181, 255, 0.2) 0%, rgba(255, 224, 102, 0.2) 100%);
    border-left: 5px solid var(--color-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.expedition-title {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.expedition-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

@media (max-width: 768px) {
    .expedition-header {
        padding: 1.5rem 1rem;
    }

    .expedition-title {
        font-size: 1.6rem;
    }

    .expedition-subtitle {
        font-size: 1rem;
    }
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-item {
    background: var(--color-white);
    border: 3px solid var(--color-success);
    border-radius: 25px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(181, 234, 215, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
}

.timeline-item:hover::before {
    opacity: 1;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-secondary);
}

.timeline-photo {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--color-primary);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.timeline-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.timeline-photo:hover img {
    transform: scale(1.1);
}

.timeline-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.timeline-photo:hover .timeline-photo-overlay {
    opacity: 1;
}

.timeline-photo-overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.timeline-date,
.timeline-person {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.timeline-content h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.timeline-location {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.timeline-story {
    background: rgba(216, 181, 255, 0.15);
    border-left: 4px solid var(--color-primary);
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
}

.timeline-story p {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .timeline-container {
        padding: 1rem 0;
    }

    .timeline-item {
        flex-direction: column;
        padding: 1.5rem;
    }

    .timeline-photo {
        width: 100%;
        height: 280px;
    }

    .timeline-content h3 {
        font-size: 1.5rem;
    }

    .timeline-story p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .timeline-photo {
        height: 220px;
    }
}

/* === FOOTER MAGIC HEARTS === */
.footer-logo {
    position: relative;
    z-index: 1;
}

.magic-heart {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

/* Na mobilech menší srdíčka */
@media (max-width: 992px) {
    .magic-heart {
        font-size: 1.2rem;
    }
}

/* === PULSE GLOW ANIMACE === */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(46, 204, 113, 0.3),
                    0 0 20px rgba(46, 204, 113, 0.2),
                    0 0 30px rgba(46, 204, 113, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(46, 204, 113, 0.6),
                    0 0 40px rgba(46, 204, 113, 0.4),
                    0 0 60px rgba(46, 204, 113, 0.2);
    }
}

/* === PLOVOUCÍ TLAČÍTKO PRO PŘEPÍNÁNÍ TÉMATU === */
.floating-theme-toggle {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.floating-theme-toggle span {
    line-height: 1;
}

@media (max-width: 992px) {
    .floating-theme-toggle:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .floating-theme-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        bottom: 8px;
        right: 8px;
    }
}

/* === MENU STRÁNKA === */
.menu-page {
    padding: 0;
    margin: 0;
}

.menu-page main {
    padding: 0 !important;
}

.menu-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
    padding: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    border-radius: 20px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-secondary);
    background: var(--color-white);
    color: var(--color-text);
}

/* Ztlumení menu položek když jsou aktivní parametry */
.menu-item-dimmed {
    filter: grayscale(80%);
    opacity: 0.5;
}

.menu-item-dimmed:hover {
    filter: grayscale(60%);
    opacity: 0.7;
    transform: none;
}

.menu-icon {
    font-size: 3rem;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.menu-content {
    flex: 1;
}

.menu-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.menu-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.menu-params {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.menu-param {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--color-primary);
    background: rgba(216, 181, 255, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 10px;
    border: 1px solid var(--color-primary);
}

/* Barevné varianty pro různé položky */
.menu-item-home {
    border-color: #9b59b6;
}

.menu-item-home:hover {
    border-color: #c39bd3;
}

.menu-item-home .menu-title {
    color: #c39bd3;
}

.menu-item-kronika {
    border-color: #f39c12;
}

.menu-item-kronika:hover {
    border-color: #f5b041;
}

.menu-item-kronika .menu-title {
    color: #f5b041;
}

.menu-item-napis {
    border-color: var(--color-red);
}

.menu-item-napis:hover {
    border-color: var(--color-red-light);
}

.menu-item-napis .menu-title {
    color: var(--color-red-light);
}

.menu-item-soutez {
    border-color: #ff6b9d;
}

.menu-item-soutez:hover {
    border-color: #ff85ad;
}

.menu-item-soutez .menu-title {
    color: #ff85ad;
}

.menu-item-about {
    border-color: #e74c3c;
}

.menu-item-about:hover {
    border-color: #ec7063;
}

.menu-item-about .menu-title {
    color: #ec7063;
}

.menu-item-contact {
    border-color: #3498db;
}

.menu-item-contact:hover {
    border-color: var(--color-secondary);
}

.menu-item-contact .menu-title {
    color: var(--color-success);
}

.menu-item-facebook {
    border-color: #1877F2;
}

.menu-item-facebook:hover {
    border-color: #0D65D9;
}

.menu-item-facebook .menu-title {
    color: #1877F2;
}

.menu-item-menu {
    border-color: #9b59b6;
}

.menu-item-menu:hover {
    border-color: #c39bd3;
}

.menu-item-menu .menu-title {
    color: #c39bd3;
}

.menu-item-pribehy {
    border-color: #8e44ad;
}

.menu-item-pribehy:hover {
    border-color: #9b59b6;
}

.menu-item-pribehy .menu-title {
    color: #8e44ad;
}

@media (max-width: 992px) {
    .menu-item:hover {
        transform: none;
    }

    .menu-item-dimmed:hover {
        filter: grayscale(80%);
        opacity: 0.5;
    }
}

@media (max-width: 576px) {
    .menu-container {
        padding: 0.25rem;
    }

    .menu-item {
        padding: 1.2rem;
        gap: 1rem;
        margin-bottom: 0.5rem;
    }

    .menu-icon {
        font-size: 2.5rem;
        width: 50px;
    }

    .menu-title {
        font-size: 1.2rem;
    }

    .menu-desc {
        font-size: 0.85rem;
    }

    .menu-param {
        font-size: 0.7rem;
    }

    /* Mezera mezi tlačítky na mobilech - když se zalamují */
    .btn + .btn {
        margin-top: 0.75rem;
    }
}

/* Upload Progress Bar */
.upload-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-dream);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(216, 181, 255, 0.5);
    z-index: 9999;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.upload-progress-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.upload-progress h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.upload-progress .progress {
    height: 30px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
}

.upload-progress .progress-bar {
    background: linear-gradient(90deg, #fff 0%, #f0f0f0 100%);
    font-weight: bold;
    color: var(--color-primary);
}

/* Photo Upload Buttons */
.photo-upload-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

@media (max-width: 576px) {
    .photo-upload-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.photo-upload-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid var(--color-red-light);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(192, 57, 43, 0.05) 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.photo-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
    border-color: var(--color-red);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
}

.photo-upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
}

.photo-upload-btn-camera {
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(41, 128, 185, 0.05) 100%);
}

.photo-upload-btn-camera:hover {
    border-color: #2980b9;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.photo-upload-btn-file {
    border-color: #2ecc71;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(39, 174, 96, 0.05) 100%);
}

.photo-upload-btn-file:hover {
    border-color: #27ae60;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(39, 174, 96, 0.1) 100%);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
}

.photo-upload-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--color-red-light);
}

.photo-upload-btn-camera .photo-upload-icon {
    color: #3498db;
}

.photo-upload-btn-file .photo-upload-icon {
    color: #2ecc71;
}

.photo-upload-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.photo-upload-text strong {
    font-size: 1.1rem;
    color: var(--color-dark);
    font-weight: 600;
}

.photo-upload-btn-camera .photo-upload-text strong {
    color: #3498db;
}

.photo-upload-btn-file .photo-upload-text strong {
    color: #2ecc71;
}

.photo-upload-text small {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.photo-upload-btn-camera .photo-upload-text small {
    color: #5dade2;
}

.photo-upload-btn-file .photo-upload-text small {
    color: #58d68d;
}

.photo-file-name {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(39, 174, 96, 0.1) 100%);
    border: 1px solid #2ecc71;
    border-radius: 8px;
    color: var(--color-dark);
    font-size: 0.95rem;
}

.photo-file-name svg {
    flex-shrink: 0;
    color: #2ecc71;
}

.photo-file-name span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-file-remove {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    margin-left: 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.photo-file-remove:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* === Admin Items === */
.admin-items-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.admin-item {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 15px;
    border: 2px solid;
    background: var(--color-white);
}

.admin-item-public {
    border-color: var(--color-success);
}

.admin-item-private {
    border-color: var(--color-primary);
}

.admin-item-photo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--color-gray-dark);
}

.admin-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.admin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.admin-item-header h3 {
    margin: 0;
    color: var(--color-red-light);
    font-size: 1.1rem;
}

.admin-item-badges {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.badge-synced {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    background: #27ae60;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid #2ecc71;
    display: flex;
    align-items: center;
}

.badge-not-synced {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    background: #f39c12;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid #f1c40f;
    display: flex;
    align-items: center;
}

.badge-public {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    background: var(--color-green, #2ecc71);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.badge-private {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    background: var(--color-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.admin-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    color: var(--color-gray);
}

.admin-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.admin-item-content p {
    margin: 0.2rem 0;
    font-size: 0.8rem;
}

.admin-item-message {
    margin-top: 0.3rem;
    padding: 0.6rem;
    background: rgba(216, 181, 255, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--color-primary);
}

.admin-item-message p {
    margin-top: 0.3rem;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.admin-item-folder {
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(216, 181, 255, 0.3);
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

/* Vypnutí animací a transitionů v Admin stránce */
.admin-page .card {
    transition: none !important;
    animation: none !important;
}

.admin-page .card::before {
    transition: none !important;
}

.admin-page .hero {
    animation: none !important;
}

/* Vypnutí všech hover efektů v Admin stránce */
.admin-page .card:hover:not(.card-gallery) {
    transform: none !important;
    box-shadow: var(--shadow-soft) !important;
    border-color: var(--color-primary) !important;
}

.admin-page .card:hover::before {
    opacity: 0 !important;
    animation: none !important;
}

.admin-page .card:hover::after {
    opacity: 0 !important;
    animation: none !important;
}

/* Zelený panel pro veřejnou galerii */
.card-gallery {
    border-color: var(--color-success) !important;
}

.card-gallery:hover {
    transform: none !important;
    box-shadow: var(--shadow-soft) !important;
    border-color: var(--color-success) !important;
}

.card-header-gallery {
    background: linear-gradient(135deg, var(--color-success) 0%, #6EE7B7 100%) !important;
}

.card-gallery .timeline-item {
    border-color: var(--color-success);
}

.card-gallery .timeline-item:hover {
    border-color: var(--color-secondary);
}

@media (max-width: 768px) {
    .admin-item {
        flex-direction: column;
    }

    .admin-item-photo {
        width: 100%;
        height: 150px;
    }

    .admin-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}
