/* ================================================
   MATEŘSKÁ ŠKOLKA SLEPOTICE - CSS Styles
   Veselé, barevné téma pro děti
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Baloo+2:wght@400;500;600;700;800&display=swap');

:root {
    /* Základní barvy - veselá duhová paleta */
    --color-primary: #FF6B6B;       /* Korálová červená */
    --color-secondary: #4ECDC4;     /* Tyrkysová */
    --color-accent: #E6B800;        /* Zlatavá žlutá */
    --color-purple: #A06CD5;        /* Fialová */
    --color-green: #7BC74D;         /* Svěží zelená */
    --color-orange: #FF9F43;        /* Pomerančová */
    --color-blue: #54A0FF;          /* Nebesky modrá */
    --color-pink: #FF9FF3;          /* Růžová */
    
    /* Neutrální barvy */
    --color-white: #FFFFFF;
    --color-cream: #FFF9E6;
    --color-light: #F8F9FA;
    --color-text: #2D3436;
    --color-text-light: #636E72;
    
    /* Fonty */
    --font-primary: 'Nunito', sans-serif;
    --font-display: 'Baloo 2', cursive;
    
    /* Stíny */
    --shadow-soft: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.15);
    --shadow-colored: 0 10px 40px rgba(255,107,107,0.3);
    
    /* Zaoblení */
    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 30px;
    --radius-round: 50px;
}

/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-cream);
    overflow-x: hidden;
}

/* Pozadí s barevnými kruhy */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255,107,107,0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(78,205,196,0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255,230,109,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(160,108,213,0.1) 0%, transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(123,199,77,0.1) 0%, transparent 30%);
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typografie */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* ================================================
   HEADER & NAVIGACE
   ================================================ */
.header {
    background: #fff5e6;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 80px;
    width: auto;
    border-radius: var(--radius-small);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 500;
}

.logo-text span {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu a {
    display: block;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-white);
    border-radius: var(--radius-small);
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Barevné pozadí pro každou položku menu */
.nav-menu li:nth-child(1) a { background: var(--color-primary); }      /* O nás - korálová */
.nav-menu li:nth-child(2) a { background: var(--color-orange); }       /* Aktuality - oranžová */
.nav-menu li:nth-child(3) a { background: var(--color-green); }        /* Kalendář - zelená */
.nav-menu li:nth-child(4) a { background: var(--color-blue); }         /* Dokumenty - modrá */
.nav-menu li:nth-child(5) a { background: var(--color-purple); }       /* Jídelníček - fialová */
.nav-menu li:nth-child(6) a { background: var(--color-secondary); }    /* Galerie - tyrkysová */
.nav-menu li:nth-child(7) a { background: var(--color-accent); }       /* Projekty - žlutá/accent */
.nav-menu li:nth-child(8) a { background: var(--color-pink); }         /* Kontakt - růžová */

.nav-menu a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    filter: brightness(1.1);
}

.nav-cta-item {
    margin-left: 6px;
}

.nav-cta {
    padding: 10px 18px;
    font-size: 0.95rem;
    box-shadow: 0 6px 16px rgba(255,159,243,0.35);
}

@media (max-width: 768px) {
    .container {
    padding: 0 10px;
}

    .nav-cta-item {
        margin: 10px 0 0 0;
        width: 100%;
    }
    .nav-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Dropdown arrow */
.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border-radius: var(--radius-small);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    list-style: none;
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text) !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--color-light) !important;
    color: var(--color-primary) !important;
    transform: none;
    padding-left: 25px;
}

/* Barevný proužek na levé straně dropdown položek */
.nav-menu li:nth-child(1) .dropdown-menu a:hover { border-left: 3px solid var(--color-primary); }
.nav-menu li:nth-child(4) .dropdown-menu a:hover { border-left: 3px solid var(--color-blue); }

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ================================================
   HERO SEKCE
   ================================================ */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    gap: 0;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 6rem);
    color: white;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content h1 span {
    display: block;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 40px;
    line-height: 1.7;
    text-shadow: 0 1px 5px rgba(0,0,0,0.15);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Vlnka dole */
.hero-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

.hero-wave-bottom svg {
    width: 100%;
    height: 80px;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 80px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ================================================
   TLAČÍTKA
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-small);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-orange) 100%);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(255,107,107,0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255,107,107,0.5);
    color: var(--color-white);
}

.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);
    transform: translateY(-3px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-green) 100%);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(78,205,196,0.4);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(78,205,196,0.5);
    color: var(--color-white);
}

/* Barevná tlačítka podle sekcí */
.btn-green {
    background: linear-gradient(135deg, var(--color-green) 0%, #5aa83a 100%);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(123,199,77,0.4);
}

.btn-green:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(123,199,77,0.5);
    color: var(--color-white);
}

.btn-orange {
    background: linear-gradient(135deg, var(--color-orange) 0%, #e8862e 100%);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(255,159,67,0.4);
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255,159,67,0.5);
    color: var(--color-white);
}

.btn-teal {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #3ba89e 100%);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(78,205,196,0.4);
}

.btn-teal:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(78,205,196,0.5);
    color: var(--color-white);
}

.btn-blue {
    background: linear-gradient(135deg, var(--color-blue) 0%, #3b82f6 100%);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(84,160,255,0.4);
}

.btn-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(84,160,255,0.5);
    color: var(--color-white);
}

.btn-pink {
    background: linear-gradient(135deg, var(--color-pink) 0%, #e87de0 100%);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(255,159,243,0.4);
}

.btn-pink:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255,159,243,0.5);
    color: var(--color-white);
}

.btn-red {
    background: linear-gradient(135deg, var(--color-primary) 0%, #e85555 100%);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(255,107,107,0.4);
}

.btn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255,107,107,0.5);
    color: var(--color-white);
}

.btn-blue {
    background: linear-gradient(135deg, var(--color-blue) 0%, #3d8ae8 100%);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(84,160,255,0.4);
}

.btn-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(84,160,255,0.5);
    color: var(--color-white);
}

.btn-purple {
    background: linear-gradient(135deg, var(--color-purple) 0%, #8a5cc0 100%);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(160,108,213,0.4);
}

.btn-purple:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(160,108,213,0.5);
    color: var(--color-white);
}

.btn-lg {
    padding: 18px 35px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.9rem;
}

.btn-white {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-white:hover {
    background: #f8f8f8;
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    .btn-lg {
        padding: 15px 28px;
        font-size: 1rem;
    }
}

/* ================================================
   SEKCE - OBECNÉ
   ================================================ */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--color-text);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    border-radius: 5px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 20px auto 0;
}

/* Sekce s bílým pozadím */
.section-white {
    background: var(--color-white);
}

/* Barevné sekce podle menu - s vlnkou dole */
.section-onas,
.section-aktuality,
.section-kalendar,
.section-galerie,
.section-kontakt,
.section-about-home,
.section-color-blue,
.section-color-purple,
.section-color-accent {
    position: relative;
    padding-bottom: 80px;
}

.section-onas::after,
.section-aktuality::after,
.section-kalendar::after,
.section-galerie::after,
.section-kontakt::after,
.section-about-home::after,
.section-color-blue::after,
.section-color-purple::after,
.section-color-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 1;
}

.section-onas {
    background: linear-gradient(135deg, rgba(255,107,107,0.15) 0%, rgba(255,107,107,0.05) 100%);
}
.section-onas::after {
    /* Vlnka zleva doprava nahoru */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C320,100 720,0 1440,40 L1440,100 L0,100 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

.section-aktuality {
    background: linear-gradient(135deg, rgba(255,159,67,0.15) 0%, rgba(255,159,67,0.05) 100%);
}
.section-aktuality::after {
    /* Vlnka zprava doleva */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C720,100 1120,0 1440,60 L1440,100 L0,100 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

.section-kalendar {
    background: linear-gradient(135deg, rgba(123,199,77,0.15) 0%, rgba(123,199,77,0.05) 100%);
}
.section-kalendar::after {
    /* Dvojitá vlnka */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C240,80 480,20 720,50 C960,80 1200,20 1440,50 L1440,100 L0,100 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

.section-galerie {
    background: linear-gradient(135deg, rgba(78,205,196,0.15) 0%, rgba(78,205,196,0.05) 100%);
}
.section-galerie::after {
    /* Mírná vlnka */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C360,80 1080,80 1440,30 L1440,100 L0,100 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

.section-kontakt {
    background: linear-gradient(135deg, rgba(255,159,243,0.15) 0%, rgba(255,159,243,0.05) 100%);
}
.section-kontakt::after {
    /* Ostrá vlnka do footeru */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,70 C480,0 960,100 1440,30 L1440,100 L0,100 Z' fill='%232D3436'/%3E%3C/svg%3E");
}

.section-about-home::after {
    /* Vlnka pro O nás */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C320,100 720,0 1440,40 L1440,100 L0,100 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

.section-color-blue::after {
    /* Vlnka pro Dokumenty */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C360,90 1080,10 1440,50 L1440,100 L0,100 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

.section-color-purple::after {
    /* Vlnka pro Jídelníček */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C480,100 960,0 1440,60 L1440,100 L0,100 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

.section-color-accent::after {
    /* Vlnka pro Projekty */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C240,70 480,30 720,50 C960,70 1200,30 1440,50 L1440,100 L0,100 Z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

/* Banner projektu */
.projekt-banner {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-purple) 100%);
    padding: 15px 0;
}

.projekt-banner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.projekt-banner-link:hover {
    transform: scale(1.02);
}

.projekt-banner-link img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

@media (max-width: 600px) {
    .projekt-banner-link {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        font-size: 0.95rem;
    }
    
    .projekt-banner-link img {
        height: 40px;
    }
}

.projects-highlight {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Grid projektů na homepage */
.home-projekty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.home-projekt-item {
    display: inline-block;
}

.home-projekt-item img {
    max-width: 100%;
    max-height: 620px;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-medium);
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.home-projekt-item img:hover {
    transform: scale(1.03);
}

.project-card {
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    max-width: 520px;
    width: 100%;
    text-align: center;
}

.project-card img {
    max-width: 100%;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-medium);
}

.project-note {
    margin-top: 12px;
    font-weight: 700;
    color: var(--color-text);
}

@media (max-width: 600px) {
    .projects-highlight {
        flex-direction: column;
    }
}

.section-about-home {
    background: linear-gradient(135deg, rgba(255,107,107,0.16) 0%, rgba(255,107,107,0.05) 100%);
    color: var(--color-text);
}

.section-about-home .section-title h2,
.section-about-home .section-title p {
    color: var(--color-text);
}

.about-highlight {
    max-width: 960px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    padding: 25px 30px;
    color: var(--color-text);
    line-height: 1.7;
}

.about-highlight p {
    margin-bottom: 14px;
    color: var(--color-text-light);
}

.about-highlight strong {
    color: var(--color-text);
}

.about-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.home-documents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.home-documents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .home-documents-grid {
        grid-template-columns: 1fr;
    }
}

.home-documents-grid .document-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--color-white);
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.home-documents-grid .document-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
    border-color: var(--color-blue);
}

.home-documents-grid .document-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.home-documents-grid .document-info h3 {
    font-size: 0.95rem;
    color: var(--color-text);
    margin: 0;
    font-weight: 500;
}

.home-documents-grid .document-type {
    font-size: 0.8rem;
    color: var(--color-blue);
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: 15px;
}

.home-jidelnicek-items {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.home-jidelnicek-items.single {
    justify-content: center;
}

.home-jidelnicek-items.double .home-jidelnicek-item {
    flex: 1 1 400px;
    max-width: 480px;
}

.home-jidelnicek-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.home-jidelnicek-img-wrapper {
    display: inline-block;
}

.home-jidelnicek-img-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 620px;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-medium);
    cursor: zoom-in;
}

.home-jidelnicek-pdf {
    text-align: center;
}

.home-jidelnicek-placeholder {
    text-align: center;
    color: var(--color-text-light);
    padding: 30px 10px;
}

/* Barevné gradienty podle hlavního tlačítka/sekce */
.section-color-primary {
    background: linear-gradient(135deg, rgba(255,107,107,0.18) 0%, rgba(255,107,107,0.06) 100%);
}
.section-color-orange {
    background: linear-gradient(135deg, rgba(255,159,67,0.18) 0%, rgba(255,159,67,0.06) 100%);
}
.section-color-green {
    background: linear-gradient(135deg, rgba(123,199,77,0.18) 0%, rgba(123,199,77,0.06) 100%);
}
.section-color-accent {
    background: linear-gradient(135deg, rgba(230,184,0,0.25) 0%, rgba(230,184,0,0.08) 100%);
}
.section-color-purple {
    background: linear-gradient(135deg, rgba(160,108,213,0.4) 0%, rgba(160,108,213,0.06) 100%);
}
.section-color-teal {
    background: linear-gradient(135deg, rgba(78,205,196,0.6) 0%, rgba(78,205,196,0.06) 100%);
}
.section-color-blue {
    background: linear-gradient(135deg, rgba(84,160,255,0.3) 0%, rgba(84,160,255,0.1) 100%);
}
.section-color-pink {
    background: linear-gradient(135deg, rgba(255,159,243,0.3) 0%, rgba(255,159,243,0.06) 100%);
}

.section-color-primary .section-title h2,
.section-color-primary .section-title p,
.section-color-orange .section-title h2,
.section-color-orange .section-title p,
.section-color-green .section-title h2,
.section-color-green .section-title p,
.section-color-purple .section-title h2,
.section-color-purple .section-title p,
.section-color-teal .section-title h2,
.section-color-teal .section-title p,
.section-color-blue .section-title h2,
.section-color-blue .section-title p,
.section-color-pink .section-title h2,
.section-color-pink .section-title p {
    color: var(--color-text);
}

/* Sekce s barevným pozadím */
.section-colored {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-orange) 100%);
    color: var(--color-white);
}

.section-colored .section-title h2,
.section-colored .section-title p {
    color: var(--color-white);
}

.section-colored .section-title h2::after {
    background: var(--color-white);
}

/* ================================================
   RYCHLÉ ODKAZY - QUICK LINKS
   ================================================ */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.quick-link-card {
    display: block;
    background: var(--color-white);
    padding: 30px 25px;
    border-radius: var(--radius-medium);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid transparent;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}

.quick-link-card:hover::before {
    transform: scaleX(1);
}

.quick-link-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-link-icon.red { background: rgba(255,107,107,0.15); }
.quick-link-icon.teal { background: rgba(78,205,196,0.15); }
.quick-link-icon.yellow { background: rgba(255,230,109,0.2); }
.quick-link-icon.purple { background: rgba(160,108,213,0.15); }
.quick-link-icon.green { background: rgba(123,199,77,0.15); }
.quick-link-icon.blue { background: rgba(84,160,255,0.15); }

.quick-link-card h3 {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.quick-link-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.quick-link-card:hover h3 {
    color: var(--color-primary);
}

/* Responsivita pro quick links */
@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .quick-link-card {
        padding: 20px 15px;
    }
    
    .quick-link-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .quick-link-card h3 {
        font-size: 1rem;
    }
    
    .quick-link-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   O NÁS - FEATURES
   ================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--radius-medium);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.feature-icon.red { background: rgba(255,107,107,0.15); }
.feature-icon.teal { background: rgba(78,205,196,0.15); }
.feature-icon.yellow { background: rgba(255,230,109,0.15); }
.feature-icon.purple { background: rgba(160,108,213,0.15); }
.feature-icon.green { background: rgba(123,199,77,0.15); }
.feature-icon.blue { background: rgba(84,160,255,0.15); }

.feature-card h3 {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-light);
}

/* ================================================
   GALERIE
   ================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-medium);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--color-white);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

/* ================================================
   KONTAKT
   ================================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-primary);
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--color-text);
}

.contact-item p {
    color: var(--color-text-light);
}

.contact-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid #E8E8E8;
    border-radius: var(--radius-small);
    transition: all 0.3s ease;
    background: var(--color-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(255,107,107,0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    color: var(--color-white);
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.footer-contact-info {
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-contact-info p {
    margin: 8px 0;
    color: rgba(255,255,255,0.8);
}

.footer-contact-info a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.footer-contact-info a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer h4 {
    font-family: var(--font-primary);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* ================================================
   PROVOZNÍ DOBA - TABULKA
   ================================================ */
.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hours-table td {
    padding: 10px 0;
    color: rgba(255,255,255,0.7);
}

.hours-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--color-accent);
}

/* ================================================
   STRÁNKY - PAGE CONTENT
   ================================================ */
.page-content {
    padding: 140px 0 60px;
    min-height: calc(100vh - 200px);
}

/* Barevná pozadí pro podstránky */
.page-orange {
    background: linear-gradient(135deg, rgba(255,159,67,0.15) 0%, rgba(255,159,67,0.05) 100%);
}

.page-green {
    background: linear-gradient(135deg, rgba(123,199,77,0.15) 0%, rgba(123,199,77,0.05) 100%);
}

.page-blue {
    background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(59,130,246,0.05) 100%);
}

.page-purple {
    background: linear-gradient(135deg, rgba(155,89,182,0.15) 0%, rgba(155,89,182,0.05) 100%);
}

.page-teal {
    background: linear-gradient(135deg, rgba(78,205,196,0.15) 0%, rgba(78,205,196,0.05) 100%);
}

.page-pink {
    background: linear-gradient(135deg, rgba(255,159,243,0.15) 0%, rgba(255,159,243,0.05) 100%);
}

.page-primary {
    background: linear-gradient(135deg, rgba(255,107,107,0.15) 0%, rgba(255,107,107,0.05) 100%);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    color: var(--color-text);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--color-text-light);
}

.back-link {
    text-align: center;
    margin-top: 50px;
}

/* Seznam dokumentů na podstránce */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.document-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--color-white);
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: all 0.2s ease;
}

.document-list-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(5px);
}

.document-list-item .document-title {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 500;
}

.document-list-item .document-badge {
    font-size: 0.75rem;
    color: var(--color-blue);
    font-weight: 700;
    background: rgba(59, 130, 246, 0.1);
    padding: 5px 12px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: 15px;
}

/* ================================================
   DOKUMENTY - DOCUMENT CARDS
   ================================================ */
.documents-section-title {
    margin: 35px auto 15px;
    max-width: 800px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
}

.documents-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.document-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--color-white);
    padding: 25px 30px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.document-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}

.document-card-info {
    cursor: default;
}

.document-card-info:hover {
    transform: none;
    border-color: var(--color-secondary);
}

.document-info {
    flex: 1;
}

.document-info h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 5px;
}

.document-type {
    font-size: 0.9rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.document-type::before {
    content: "\1F4E5";
    font-size: 0.8rem;
}

.document-action {
    font-size: 1.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.document-card:hover .document-action {
    opacity: 1;
    transform: scale(1.2);
}

.gdpr-contact {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-top: 5px;
}

.gdpr-contact a {
    color: var(--color-primary);
    font-weight: 600;
}

.gdpr-contact a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .document-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .document-card:hover {
        transform: translateY(-5px);
    }
    
    .document-action {
        display: none;
    }
}

/* ================================================
   AKTUALITY / NOVINKY
   ================================================ */
.news-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.news-card {
    flex: 0 1 350px;
    max-width: 400px;
    background: var(--color-white);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--color-accent);
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-small);
    margin-bottom: 15px;
}

.news-content h3 {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.news-content p {
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.news-link {
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-link:hover {
    gap: 10px;
}

/* Grid aktualit - hlavní stránka */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.news-card-date {
    background: linear-gradient(135deg, var(--color-orange) 0%, #e8862e 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.news-card-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.news-card-date .month {
    font-size: 0.85rem;
    opacity: 0.9;
}

.news-card-content {
    padding: 20px;
}

.news-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--color-text);
    font-family: var(--font-display);
}

.news-card-content p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Aktuality - homepage layout */
/* Datum nahoře, pod ním název, obrázek, text */
.news-card {
    display: flex;
    flex-direction: column;
}

.news-card .news-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.news-card .news-card-content h3 {
    margin: 0 0 15px 0;
}

.news-card-image {
    overflow: hidden;
    margin-bottom: 15px;
}

.news-card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 180px;
    object-fit: cover;
}

/* Landscape obrázky na homepage - větší */
.news-card.landscape .news-card-image img {
    max-height: none;
    object-fit: contain;
}

/* Portrait obrázky na homepage */
.news-card.portrait .news-card-image {
    text-align: center;
}

.news-card.portrait .news-card-image img {
    width: auto;
    height: auto;
    border-radius: 8px;
    max-height: 250px;
    object-fit: contain;
}

.news-card .news-card-content p {
    flex: 1;
    margin: 0;
}

/* Tlačítko Číst více */
.news-read-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-orange);
    text-decoration: none;
    transition: color 0.2s;
}

.news-read-more:hover {
    color: #e8862e;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Seznam aktualit - stránka všech aktualit */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-list-item {
    display: flex;
    gap: 25px;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    scroll-margin-top: 100px;
}

.news-list-item:first-child {
    padding-top: 0;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-date {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, var(--color-orange) 0%, #e8862e 100%);
    border-radius: var(--radius-small);
    color: var(--color-white);
}

.news-list-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.news-list-date .month {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 5px;
}

.news-list-content h3 {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

.news-list-content p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* Seznam aktualit s obrázky */
/* Pořadí: datum | obrázek | text */
.news-list-image {
    flex-shrink: 0;
    width: 150px;
    height: auto;
}

.news-list-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-small);
    object-fit: contain;
}

/* Portrait obrázky v aktualitách - širší prostor */
.news-list-item.portrait .news-list-image {
    width: 200px;
}

.news-list-item.portrait .news-list-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

/* Klikatelné obrázky v aktualitách */
.news-list-image.clickable {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.news-list-image.clickable:hover {
    transform: scale(1.02);
}

.news-list-image.clickable:hover img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}


/* Landscape obrázky - datum vlevo, vpravo: název, obrázek, text */
.news-list-item.landscape {
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px 20px;
    align-items: start;
}

.news-list-item.landscape .news-list-date {
    grid-column: 1;
    grid-row: 1 / -1; /* přes celou výšku */
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-item.landscape .news-list-content {
    display: contents;
}

.news-list-item.landscape .news-list-content h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

.news-list-item.landscape .news-list-content p {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
}

.news-list-item.landscape .news-list-image {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    max-width: 350px;
    height: auto;
}

.news-list-item.landscape .news-list-image img {
    width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .news-list-item {
        flex-direction: column;
        gap: 15px;
    }

    .news-list-image {
        width: 100%;
        height: auto;
    }

    .news-list-image img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: contain;
    }

    /* Portrait na mobilu */
    .news-list-item.portrait .news-list-image {
        width: 100%;
    }

    .news-list-item.portrait .news-list-image img {
        max-height: 400px;
    }

    /* Landscape na mobilu - jednoduchý sloupcový layout */
    .news-list-item.landscape {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .news-list-item.landscape .news-list-date {
        align-self: flex-start;
        flex-direction: row;
    }

    .news-list-item.landscape .news-list-image {
        width: 100%;
        max-width: 100%;
    }

    .news-list-item.landscape .news-list-image img {
        max-height: 250px;
    }

    .news-list-date {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 10px 15px;
    }

    .news-list-date .day {
        display: inline;
        font-size: 1.2rem;
        font-weight: 800;
        margin-top: 0;
    }

    .news-list-date .day::after {
        content: '.';
    }

    .news-list-date .month {
        display: inline;
        font-size: 1.2rem;
        font-weight: 800;
        margin-top: 0;
    }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-medium);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .section {
        padding: 60px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        flex: 1 1 100%;
        max-width: none;
    }
}

/* ================================================
   ADMIN DASHBOARD STYLES - Jednoduchý profesionální vzhled
   ================================================ */

/* Admin pouze - reset barevného pozadí */
body.admin-body::before {
    display: none;
}

body.admin-body {
    background: #f5f5f5;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: #1e293b;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

.admin-logo h2 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.admin-logo span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.admin-nav {
    list-style: none;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.admin-nav a.active {
    border-left: 3px solid #3b82f6;
}

.admin-nav a span {
    font-size: 1.1rem;
}

.admin-content {
    flex: 1;
    margin-left: 240px;
    padding: 25px;
    background: #f5f5f5;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.admin-header h1 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.4rem;
    color: #1e293b;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #64748b;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Admin Cards */
.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.admin-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.admin-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #f1f5f9;
}

.admin-card-icon.red,
.admin-card-icon.teal,
.admin-card-icon.yellow,
.admin-card-icon.purple { 
    background: #f1f5f9; 
}

.admin-card h3 {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
}

.admin-card p {
    color: #64748b;
    font-size: 0.85rem;
}

/* Admin Panel/Box */
.admin-panel {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 25px;
}

.admin-panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-panel-header h2 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
}

.admin-panel-body {
    padding: 20px;
}

/* Admin Buttons */
.admin-content .btn,
.admin-modal .btn {
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.admin-content .btn-primary,
.admin-modal .btn-primary {
    background: #3b82f6;
    box-shadow: none;
}

.admin-content .btn-primary:hover,
.admin-modal .btn-primary:hover {
    background: #2563eb;
    transform: none;
    box-shadow: none;
}

.admin-content .btn-accent,
.admin-modal .btn-accent {
    background: #10b981;
    box-shadow: none;
}

.admin-content .btn-accent:hover,
.admin-modal .btn-accent:hover {
    background: #059669;
    transform: none;
    box-shadow: none;
}

.admin-content .btn-secondary,
.admin-modal .btn-secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.admin-content .btn-secondary:hover,
.admin-modal .btn-secondary:hover {
    background: #f9fafb;
    color: #374151;
    transform: none;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.upload-area span {
    font-size: 2.5rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 10px;
}

.upload-area p {
    color: #64748b;
    margin-bottom: 8px;
}

.upload-area small {
    color: #94a3b8;
}

/* Gallery Admin Grid */
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.gallery-admin-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.gallery-admin-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-admin-item .actions {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-admin-item:hover .actions {
    opacity: 1;
}

.gallery-admin-item .actions button {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.gallery-admin-item .actions button:hover {
    transform: none;
}

.gallery-admin-item .actions .btn-delete {
    background: #ef4444;
    color: #fff;
}

.gallery-admin-item .actions .btn-delete:hover {
    background: #dc2626;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f5f5f5;
}

.login-page::before {
    display: none;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.login-box > p {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.login-box .form-group {
    text-align: left;
}

.login-box .form-group input {
    border-radius: 6px;
    padding: 12px 16px;
}

.login-box .btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    background: #3b82f6;
    border-radius: 6px;
    box-shadow: none;
}

.login-box .btn:hover {
    background: #2563eb;
    transform: none;
    box-shadow: none;
}

/* Admin Form Inputs */
.admin-content .form-group input,
.admin-content .form-group textarea,
.admin-content .form-group select {
    border-radius: 6px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 0.9rem;
}

.admin-content .form-group input:focus,
.admin-content .form-group textarea:focus,
.admin-content .form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.admin-content .form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
}

.admin-table td {
    font-size: 0.9rem;
    color: #374151;
}

.admin-table tr:hover {
    background: #f8fafc;
}

/* Admin Modal */
.admin-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.admin-modal.active {
    display: flex;
}

.admin-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    border: 1px solid #e5e7eb;
}

.admin-modal-content h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.admin-modal-content .form-group {
    margin-bottom: 15px;
}

.admin-modal-content .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.admin-modal-content .form-group input,
.admin-modal-content .form-group textarea,
.admin-modal-content .form-group select {
    width: 100%;
    border-radius: 6px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-modal-content .form-group input:focus,
.admin-modal-content .form-group textarea:focus,
.admin-modal-content .form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.admin-modal-content .form-group input::placeholder,
.admin-modal-content .form-group textarea::placeholder {
    color: #9ca3af;
}

.admin-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Responsive Admin */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
}

/* Grid nadcházejících akcí */
.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.event-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 120px;
}

.event-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-box-date {
    background: linear-gradient(135deg, var(--color-green) 0%, #5aa83a 100%);
    color: white;
    border-radius: 10px;
    padding: 10px 16px;
    text-align: center;
    margin-bottom: 12px;
}

.event-box-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-box-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 2px;
}

.event-box-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-box {
        padding: 15px 10px;
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .event-box {
        padding: 12px 8px;
    }
    
    .event-box-title {
        font-size: 0.8rem;
    }
}

/* Mobilní zobrazení nadcházejících akcí */
@media (max-width: 768px) {
    .upcoming-events {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    
    .upcoming-events .event-item {
        padding: 10px 12px !important;
    }
    
    .upcoming-events .event-date {
        padding: 6px 10px !important;
        min-width: 45px !important;
    }
    
    .upcoming-events .event-date span:first-child {
        font-size: 1.1rem !important;
    }
    
    .upcoming-events .event-date span:last-child {
        font-size: 0.6rem !important;
    }
    
    .upcoming-events .event-item strong {
        font-size: 0.85rem !important;
    }
    
    .upcoming-events .event-item small {
        font-size: 0.75rem !important;
    }
}

/* Extra malé mobily - dvě akce vedle sebe, velmi kompaktní */
@media (max-width: 480px) {
    .upcoming-events .event-item {
        padding: 8px 10px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 6px !important;
    }
    
    .upcoming-events .event-date {
        padding: 5px 8px !important;
        min-width: auto !important;
        width: 100% !important;
    }
    
    .upcoming-events .event-item > div:last-child {
        min-width: 0 !important;
    }
}

/* Mobilní menu - vyjíždí zprava */
@media (max-width: 768px) {
    .header-inner {
        position: relative;
    }
    
    .menu-toggle {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1001 !important;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 280px !important;
        height: 100vh !important;
        background: var(--color-white) !important;
        flex-direction: column !important;
        padding: 100px 30px 30px !important;
        gap: 10px !important;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15) !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 1000 !important;
    }
    
    .nav-menu.active {
        transform: translateX(0) !important;
    }
    
    .nav-menu a {
        padding: 15px 20px !important;
        font-size: 1.1rem !important;
        border-radius: 12px !important;
    }
    
    /* Overlay za menu */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    
    .nav-menu.active::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Sekundární menu položky - skryté na desktopu */
.nav-divider,
.nav-secondary {
    display: none !important;
}

@media (max-width: 768px) {
    .nav-divider {
        display: block !important;
        height: 1px;
        background: #e5e7eb;
        margin: 15px 0 !important;
        padding: 0 !important;
    }
    
    .nav-secondary {
        display: block !important;
    }
    
    .nav-secondary a {
        color: var(--color-text) !important;
        font-size: 0.95rem !important;
        padding: 12px 15px !important;
    }
    
    .nav-secondary a:hover {
        background: var(--color-primary-light) !important;
    }
}

/* Opravy mobilního menu */
@media (max-width: 768px) {
    .nav-menu {
        padding-bottom: 100px !important;
    }
    
    .nav-secondary + .nav-secondary {
        margin-top: -5px !important;
    }
    
    .nav-secondary a {
        padding: 10px 15px !important;
    }
}

/* Další opravy mobilního menu */
@media (max-width: 768px) {
    .nav-menu {
        padding-bottom: 120px !important;
        overflow-y: auto !important;
    }
    
    .nav-secondary a {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }
    
    .nav-secondary + .nav-secondary {
        margin-top: -8px !important;
    }
    
    .nav-divider {
        margin: 10px 0 !important;
    }
}

/* Zakázat scroll když je menu otevřené */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Oprava - zachovat scroll pozici při otevření menu */
body.menu-open {
    overflow: hidden !important;
    position: relative !important;
    height: 100% !important;
}

html.menu-open {
    overflow: hidden !important;
}

/* Finální oprava scrollování */
html.menu-open,
html.menu-open body {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
}


/* Menu overlay element */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Oprava menu - bílé pozadí */
@media (max-width: 768px) {
    .nav-menu {
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
}

.quick-link-icon.orange { background: rgba(255,159,67,0.15); }

/* ================================================
   DROPDOWN MENU - MOBILNÍ VERZE
   ================================================ */
@media (max-width: 768px) {
    .has-dropdown {
        position: relative;
    }

    .has-dropdown > a {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.05);
        border-radius: var(--radius-small);
        margin: 8px 0 0 0;
        padding: 5px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 300px;
        padding: 8px;
    }

    .dropdown-menu a {
        padding: 10px 15px !important;
        border-radius: var(--radius-small) !important;
        font-size: 0.85rem !important;
    }

    .dropdown-menu a:hover {
        padding-left: 15px !important;
    }

    .dropdown-arrow {
        transition: transform 0.3s ease;
    }

    .has-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }
}
