/* ZÁKLADNÍ RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #ffffff; 
}

/* HLAVIČKA */
.main-header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
    padding-top: 25px; 
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 21px 0; 
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px; 
}

.main-nav {
    display: flex;
    order: 1; 
    gap: 35px;
}

.nav-item {
    font-size: 13px; 
    font-weight: 500;
    color: #555555;
    padding: 5px 0;
    transition: color 0.3s, border-bottom 0.3s;
    letter-spacing: 3px; 
    text-decoration: none;
}

.nav-item.active, .nav-item:hover {
    color: #e89547;
}

.nav-item.active {
    border-bottom: 2px solid #e89547;
}

.menu-icons {
    order: 2; 
    display: flex; 
    align-items: center;
}

.burger-menu {
    display: none; 
}

.admin-icon {
    font-size: 20px; 
    color: #000000; 
    cursor: pointer;
}

/* === SLIDER === */
.slider-container {
    width: 100%;
    padding-top: 37.5%; 
    position: relative;
    overflow: hidden;
    background-color: #000; 
}

.slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.desktop-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: bottom; 
}

.mobile-img {
    display: none;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 50; 
    font-size: 20px;
    border-radius: 5px;
    opacity: 0.5; 
    transition: opacity 0.3s, background 0.3s;
}

.slider-nav:hover {
    opacity: 0.8; 
    background: #111;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* PORTFOLIO (NAŠE PRÁCE) */
.portfolio-section {
    background-color: #111111; 
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    
    margin-top: -10px; 
    position: relative;
    z-index: 10; 
}

.portfolio-container {
    max-width: 100%; 
    margin: 0 auto;
}

.section-subtitle {
    color: #e89547; 
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 40px;
    font-style: italic;
    margin-bottom: 50px;
    font-weight: normal;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 0;
}

.portfolio-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    cursor: pointer;
    background-color: #000; 
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    vertical-align: bottom;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;    
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* UPRAVENÁ PLAY IKONA - JEŠTĚ VÍCE PRŮHLEDNÁ */
.play-icon {
    font-size: 60px; 
    color: #fff;
    margin-bottom: 15px;
    
    border: none;
    border-radius: 0;
    padding: 0;
    width: auto;
    height: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);

    /* VÍCE PRŮHLEDNOSTI */
    opacity: 0.4; 
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.play-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.item-title {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.item-category {
    font-size: 10px;
    font-style: italic;
    color: #ccc;
}

/* LIGHTBOX */
.lightbox {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); 
    z-index: 2000; 
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
}

.lightbox iframe {
    width: 100%;
    height: 100%;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #e89547;
}

/* FOOTER */
footer {
    background-color: #333;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.footer-content p {
    font-size: 12px;
    margin: 5px 0;
}

/* --- MEDIA QUERY: MOBILNÍ ZAŘÍZENÍ (MAX-WIDTH 768PX) --- */
@media (max-width: 768px) {
    
    .main-header {
        margin-top: 0; 
        padding-top: 0; 
    }

    .header-content {
        justify-content: center; 
        padding: 10px 10px; 
        gap: 95px; 
    }

    .logo {
        height: 55px; 
    }
    
    .menu-icons {
        order: unset; 
    }

    .burger-menu {
        display: block; 
        font-size: 30px; 
        margin-right: 25px; 
        cursor: pointer;
    }

    .admin-icon {
        font-size: 24px; 
    }

    /* SLIDER MOBIL */
    .slider-container {
        padding-top: 100% !important; 
    }

    .desktop-img {
        display: none !important;
    }

    .mobile-img {
        display: block !important;
        width: 100%;
        height: 100%;
        object-fit: cover;
        vertical-align: bottom;
    }

    .slider-nav {
        padding: 10px;
        font-size: 16px;
        opacity: 0.7; 
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }

    .main-nav {
        order: unset; 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 75px; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 99;
        align-items: center;
    }
    
    .main-nav .nav-item {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
        letter-spacing: normal;
        font-size: 16px; 
    }
    
    .main-nav.active {
        display: flex;
    }

    .portfolio-grid {
        grid-template-columns: 1fr; 
    }
    
    .overlay {
        opacity: 1; 
        background: rgba(0, 0, 0, 0.2);
    }

    .lightbox-content {
        width: 95%;
    }
    .close-btn {
        top: -50px;
        right: 10px;
    }
}