/* 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: linear-gradient(135deg, #f0f0f0, #dcdcdc); /* Jemný gradient pro pozadí */
    color: #333; /* Tmavě šedý text pro lepší čitelnost */
}

/* Video pozadí */
.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 - OPRAVENO: odstraněno transform z hoveru */
.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);
    position: relative;
    display: inline-block;
}

/* DŮLEŽITÉ: Odstraněn transform z hoveru! */
.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 - také opraveno */
.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 */
.gallery-container {
    max-width: 1400px;
    margin: 120px auto 60px;
    padding: 0 30px;
    width: 100%;
}

/* Textový box - zlepšení kontrastu */
.text-container {
    background: rgba(255, 255, 255, 0.9); /* Světlé pozadí */
    backdrop-filter: blur(10px); /* Efekt rozostření pozadí */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Světlý rámeček */
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.text-container h1 {
    color: #222; /* Tmavší barva pro lepší kontrast */
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Jemný stín pro lepší kontrast */
    letter-spacing: 1px;
    line-height: 1.4; /* Větší mezery pro lepší čitelnost */
}

.text-container p {
    color: #333; /* Tmavě šedý text pro lepší čitelnost */
    font-size: 20px;
    text-shadow: none; /* Odstraněn stín pro lepší čitelnost */
    line-height: 1.8; /* Větší mezery mezi řádky pro lepší čitelnost */
}

/* Grid pro videa */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    width: 100%;
}

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

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

/* Základní styl pro jednotlivé položky galerie */
.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; }

/* Opraveno: odstraněn transform z hoveru pro image-frame */
.image-frame {
    background: rgba(0, 0, 0, 0.75);
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Opraveno: odstraněn translateY z hoveru */
.image-frame:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 255, 0, 0.3);
    border-color: rgba(0, 255, 0, 0.4);
    transform: scale(1.02);
}

.gallery-video {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.image-frame:hover .gallery-video {
    border-color: rgba(0, 255, 0, 0.3);
}

.image-caption {
    color: #fff;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 30, 0, 0.6); /* Zesílení kontrastu pozadí */
    border-radius: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 0, 0.2);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-frame:hover .image-caption {
    background: rgba(0, 40, 0, 0.7); /* Zesílení kontrastu při hoveru */
    border-color: rgba(0, 255, 0, 0.4);
}

/* Visit counter – jemné průhledné zelené srdce */
.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);
    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;
}

.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);
}

.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: 1200px) {
    .gallery-container {
        max-width: 95%;
        padding: 0 20px;
    }
    
    .gallery-grid {
        gap: 40px;
    }
    
    .gallery-video {
        height: 320px;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .gallery-video {
        height: 400px;
    }
    
    .text-container h1 {
        font-size: 36px;
    }
    
    .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: 100px auto 40px;
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 15px;
        padding: 8px 16px;
    }
    
    .gallery-video {
        height: 300px;
    }
    
    .text-container {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .text-container h1 {
        font-size: 32px;
    }
    
    .text-container p {
        font-size: 17px;
    }
    
    .image-frame {
        padding: 20px;
    }
    
    .image-caption {
        font-size: 16px;
        padding: 12px;
    }
    
    .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: 480px) {
    .gallery-video {
        height: 250px;
    }
    
    .nav-menu {
        gap: 10px;
        justify-content: space-around;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .text-container h1 {
        font-size: 28px;
    }
    
    .text-container p {
        font-size: 16px;
    }
    
    .image-caption {
        font-size: 15px;
        padding: 10px;
    }
    
    .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;
    }
}

/* Scrollbar styling */
::-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);
}

/* Dropdown styly */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    min-width: 200px;
    z-index: 1000;
    border-radius: 4px;
    padding: 10px 0;
    margin-top: 5px;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu.show {
    display: block;
}

/* Aktivní stav pro dropdown */
.dropdown-toggle.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Překryv, který zablokuje interakci, dokud se stránka nenačte */
#pageBlocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
    color: #fff;
}
