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

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background: #000;
}

/* Video pozadí - celá stránka */
.video-background {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -100;
    object-fit: cover;
}

/* Navigace */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 35px;
    flex-wrap: wrap;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    display: inline-block;
}

.nav-link:hover {
    background: rgba(0, 255, 0, 0.35);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.6);
}

.nav-link.active {
    background: rgba(0, 150, 0, 0.4);
    border-bottom: 3px solid #00ff00;
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.4);
}

/* Social ikona */
.social-icon {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.social-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
}

.social-icon a:hover {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5), inset 0 0 15px rgba(0, 255, 0, 0.2);
    transform: scale(1.1);
}

.social-icon img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.social-icon a:hover img {
    transform: scale(1.05);
}

/* Hlavní kontejner - ZÚŽENÝ PRO VĚTŠÍ OBJEKTY */
.gallery-container {
    max-width: 1400px;
    margin: 100px auto 40px; /* MENŠÍ MARGIN NAHORU */
    padding: 0 20px; /* MENŠÍ PADDING PO STRANÁCH */
    width: 100%;
}

.text-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px; /* MENŠÍ PADDING */
    margin-bottom: 40px; /* MENŠÍ MARGIN */
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    width: 100%;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.text-container h1 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 10px; /* MENŠÍ MARGIN */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    letter-spacing: 1px;
}

.text-container p {
    color: #e0ffe0;
    font-size: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Grid pro galerii obrázků - 3 NA ŘÁDEK S VĚTŠÍMI OBRAZKY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 obrázky na řádek */
    gap: 25px; /* MENŠÍ MEZERA MEZI OBRAZKY */
    width: 100%;
    margin: 0 auto;
}

.gallery-item {
    width: 100%;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1.0s; }

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.image-frame {
    background: rgba(0, 0, 0, 0.75);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.image-frame:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.3);
    transform: translateY(-5px);
}

/* ZVĚTŠENÍ OBRAZKŮ - DVOJNÁSOBNÁ VÝŠKA */
.gallery-image {
    width: 100%;
    height: 400px; /* ZVĚTŠENO Z 200px NA 400px - DVOJNÁSOBNÁ VÝŠKA */
    border-radius: 8px;
    object-fit: contain; /* contain - obrázek se vejde celý */
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    background-color: rgba(0, 30, 0, 0.3); /* Zelené pozadí pro prázdné místo */
}

.image-frame:hover .gallery-image {
    border-color: rgba(0, 255, 0, 0.3);
    transform: scale(1.03);
    background-color: rgba(0, 40, 0, 0.5);
}

.image-caption {
    color: #fff;
    font-size: 16px;
    text-align: center;
    margin-top: 15px; /* VĚTŠÍ MEZERA NAD POPISKEM */
    padding: 12px;
    background: rgba(0, 30, 0, 0.4);
    border-radius: 6px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
    border: 1px solid rgba(0, 255, 0, 0.1);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-height: 60px;
}

.image-frame:hover .image-caption {
    background: rgba(0, 40, 0, 0.5);
    border-color: rgba(0, 255, 0, 0.2);
}

/* Visit counter - srdíčko - OPRAVENÉ UMÍSTĚNÍ ČÍSLA */
/* =========================
   VISIT COUNTER
   ========================= */
/* =========================
   VISIT COUNTER – FINAL FIX
   ========================= */
/* Visit counter – jemné průhledné zelené srdce */




/* Visit counter – jemné průhledné zelené srdce (stejná zelená jako navigace) */
.visit-counter {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.heart-container {
    position: relative;
    width: 90px;
    height: 90px;
    cursor: pointer;
    animation: heartbeat 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes heartbeat {
    0%   { transform: scale(1); }
    5%   { transform: scale(1.05); }
    10%  { transform: scale(1); }
    15%  { transform: scale(1.08); }
    20%  { transform: scale(1); }
    100% { transform: scale(1); }
}

.heart-shape {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(0, 255, 0, 0.25); /* STEJNÁ ZELENÁ JAKO NAV HOVER */
    transform: rotate(45deg);
    top: 10px;
    left: 10px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.25);
    transition: all 0.4s ease;
}

.heart-shape:before,
.heart-shape:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(0, 255, 0, 0.25);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.heart-shape:before {
    top: -35px;
    left: 0;
}

.heart-shape:after {
    top: 0;
    left: -35px;
}

/* jemný profesionální hover */
.heart-container:hover .heart-shape,
.heart-container:hover .heart-shape:before,
.heart-container:hover .heart-shape:after {
    background: rgba(0, 255, 0, 0.4);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
}

/* číslo vždy přesně uprostřed */
.counter-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
    pointer-events: none;
}





/* Responsive design */
@media (max-width: 1400px) {
    .gallery-container {
        max-width: 95%;
        padding: 0 20px;
    }
    
    .gallery-grid {
        gap: 20px;
    }
    
    .gallery-image {
        height: 350px; /* MÍRNĚ MENŠÍ NA MENŠÍCH OBRAZOVKÁCH */
    }
    
    .text-container h1 {
        font-size: 36px;
    }
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* STÁLE 3 OBRAZKY */
        gap: 20px;
    }
    
    .gallery-image {
        height: 300px;
    }
    
    .text-container h1 {
        font-size: 34px;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 obrázky na řádek na tabletu */
        gap: 25px;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .gallery-image {
        height: 350px; /* VĚTŠÍ, PROTOŽE JSOU POUZE 2 NA ŘÁDKU */
    }
    
    .text-container h1 {
        font-size: 32px;
    }
    
    .text-container p {
        font-size: 18px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        margin: 90px auto 30px; /* MENŠÍ MARGINY NA MOBILU */
        padding: 0 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 obrázek na řádek na mobilu */
        gap: 25px;
        max-width: 600px;
    }
    
    .gallery-image {
        height: 400px; /* NA MOBILU MŮŽE BÝT VĚTŠÍ */
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 15px;
        padding: 8px 16px;
    }
    
    .text-container {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .text-container h1 {
        font-size: 28px;
    }
    
    .text-container p {
        font-size: 17px;
    }
    
    .image-frame {
        padding: 15px;
    }
    
    .image-caption {
        font-size: 15px;
        padding: 10px;
    }
    
    .visit-counter {
        bottom: 20px;
        right: 20px;
    }
    
    .heart-container {
        width: 70px;
        height: 70px;
    }
    
    .heart-shape {
        width: 55px;
        height: 55px;
    }
    
    .heart-shape:before,
    .heart-shape:after {
        width: 55px;
        height: 55px;
    }
    
    .heart-shape:before {
        top: -27.5px;
    }
    
    .heart-shape:after {
        left: -27.5px;
    }
    
    .counter-number {
        font-size: 14px;
        width: 55px;
    }
}

@media (max-width: 576px) {
    .gallery-image {
        height: 350px;
    }
    
    .nav-menu {
        gap: 10px;
        justify-content: space-around;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .text-container h1 {
        font-size: 24px;
    }
    
    .text-container p {
        font-size: 16px;
    }
    
    .image-caption {
        font-size: 14px;
        padding: 8px;
        min-height: 50px;
    }
    
    .heart-container {
        width: 60px;
        height: 60px;
    }
    
    .heart-shape {
        width: 45px;
        height: 45px;
    }
    
    .heart-shape:before,
    .heart-shape:after {
        width: 45px;
        height: 45px;
    }
    
    .heart-shape:before {
        top: -22.5px;
    }
    
    .heart-shape:after {
        left: -22.5px;
    }
    
    .counter-number {
        font-size: 12px;
        width: 45px;
    }
}

@media (max-width: 480px) {
    .gallery-image {
        height: 300px;
    }
}

/* Scrollbar styling - ZELENÉ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 150, 0, 0.6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 200, 0, 0.8);
}