/* Základní reset a styl stránky */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: #f5f2e9 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23d4c9a6" opacity="0.4"/></svg>');
    color: #3a2618;
    line-height: 1.6;
    background-size: 300px 300px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Záhlaví a navigace */
header {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 8px solid #8b4513;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

nav {
    background: linear-gradient(to bottom, #5d2906, #3a1800);
    padding: 1rem 0;
    border-bottom: 3px solid #d4a017;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #f5d7a1;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0 1rem;
}

nav li {
    margin: 0 0.5rem;
}

nav a {
    color: #f5d7a1;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

nav a.active {
    background: rgba(210, 180, 140, 0.3);
    color: #ffd700;
}

nav a:hover {
    background: rgba(210, 180, 140, 0.3);
    color: #ffd700;
    transform: translateY(-2px);
}

nav a::after {
    content: "•";
    position: absolute;
    right: -10px;
    color: #d4a017;
    font-size: 1.2rem;
}

nav li:last-child a::after {
    content: none;
}

/* Hlavní úvodní sekce */
.hero {
    padding: 4rem 1rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../img/gallery.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: repeating-linear-gradient(
        45deg,
        #8b4513,
        #8b4513 10px,
        #d4a017 10px,
        #d4a017 20px
    );
}

.hero h2 {
    font-family: 'Brush Script MT', cursive;
    font-size: 3rem;
    color: #f5d7a1;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-family: 'Rye', cursive;
    font-size: 4.5rem;
    color: #ffd700;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.hero h1::before,
.hero h1::after {
    content: "★";
    color: #d4a017;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.hero h1::before {
    left: -40px;
}

.hero h1::after {
    right: -40px;
}

/* Společné styly pro sekce */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Rye', cursive;
    color: #5d2906;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.divider {
    height: 3px;
    width: 150px;
    background: linear-gradient(to right, transparent, #8b4513, transparent);
    margin: 1rem auto;
}

.section-header p {
    color: #8b4513;
    font-size: 1.1rem;
    font-style: italic;
}

/* Filtry galerie */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid #8b4513;
    color: #8b4513;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Arial Rounded MT Bold', sans-serif;
    font-size: 1rem;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(to bottom, #8b4513, #5d2906);
    color: #ffd700;
    border-color: #5d2906;
}

/* Galerie fotek */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    aspect-ratio: 4/3;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(93, 41, 6, 0.9), transparent);
    color: #fff;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-family: 'Arial Rounded MT Bold', sans-serif;
}

.photo-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Videogalerie */
.video-section {
    background: rgba(255, 248, 220, 0.3);
    padding: 4rem 0;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.video-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #d4c9a6;
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-item h3 {
    padding: 1rem 1rem 0.5rem;
    color: #5d2906;
    font-size: 1.3rem;
    text-align: center;
    font-family: 'Arial Rounded MT Bold', sans-serif;
}

.video-item p {
    padding: 0 1rem 1.5rem;
    color: #8b4513;
    text-align: center;
    font-style: italic;
}

/* Patička */
footer {
    margin-top: auto;
    background: linear-gradient(to top, #5d2906, #3a1800);
    color: #f5d7a1;
    padding: 2rem 0 0;
    text-align: center;
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
    border-top: 3px solid #d4a017;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 15px;
    background: repeating-linear-gradient(
        -45deg,
        #8b4513,
        #8b4513 10px,
        #d4a017 10px,
        #d4a017 20px
    );
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.2rem;
    border-top: 1px solid #d4a017;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom i {
    color: #d4a017;
}

.footer-divider {
    margin: 0 0.5rem;
}

/* ==================== */
/* RESPONZIVNÍ ÚPRAVY */
/* ==================== */
@media (max-width: 1024px) {
    .video-gallery {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(to bottom, #5d2906, #3a1800);
        z-index: 99;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav ul.active {
        max-height: 500px;
        padding: 1rem 0;
    }
    
    nav li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    nav a::after {
        display: none;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h1::before,
    .hero h1::after {
        font-size: 1.5rem;
    }
    
    .hero h1::before {
        left: -30px;
    }
    
    .hero h1::after {
        right: -30px;
    }
    
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h1::before,
    .hero h1::after {
        font-size: 1.2rem;
        top: -10px;
    }
    
    .hero h1::before {
        left: -20px;
    }
    
    .hero h1::after {
        right: -20px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .video-gallery {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .footer-divider {
        display: none;
    }
}