/* === GLOBÁLNÍ STYLY === */

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Všechny přímé děti body kromě footeru */
body > *:not(footer) {
    flex-shrink: 0;
}

/* Wrapper pro stránky */
body > .wp-block-group {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > .wp-block-group > header.wp-block-template-part {
    flex-shrink: 0;
}

body > .wp-block-group > main.wp-block-group,
body > .wp-block-group > .wp-block-group:not(header):not(footer) {
    flex: 1 0 auto;
}

body > .wp-block-group > footer.wp-block-group,
body > .wp-block-group > footer.wp-block-template-part {
    margin-top: auto;
    flex-shrink: 0;
}

body > header.wp-block-template-part ~ footer.wp-block-template-part {
    margin-top: auto;
}

footer.wp-block-group,
footer.wp-block-template-part {
    width: 100%;
}

/* === GLOBÁLNÍ STYLY TLAČÍTEK - ZAOBLENÉ & MENŠÍ === */

.wp-block-button__link {
    border-radius: 25px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === OSOBNÍ REŽIM (ČERNOBÍLÝ) === */

body.is-osobni {
    background: #000000 !important;
    color: #ffffff !important;
}

body.is-osobni * {
    filter: grayscale(100%);
}

body.is-osobni header.wp-block-template-part,
body.is-osobni footer.wp-block-template-part,
body.is-osobni footer.wp-block-group {
    background: #000000 !important;
    color: #ffffff !important;
}

body.is-osobni footer {
    border-top: 1px solid #333333;
}

/* Tlačítko AUTORSKÁ TVORBA - aktivní */
body.is-osobni .mode-autorska .wp-block-button__link {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
}

/* Tlačítko KOMERČNÍ - neaktivní */
body.is-osobni .mode-komercni .wp-block-button__link {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    opacity: 0.7;
}

body.is-osobni .mode-komercni .wp-block-button__link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* === KOMERČNÍ REŽIM (BAREVNÝ) === */

body.is-komercni {
    background: #000000 !important;
    color: #0a1a2a !important;
}

body.is-komercni header.wp-block-template-part {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
}

body.is-komercni footer.wp-block-template-part {
    background: #ffffff !important;
    color: #0a1a2a !important;
    border-top: 1px solid rgba(10, 26, 42, 0.1);
    padding: 30px 20px;
    text-align: center;
}

footer.wp-block-group {
    width: 100%;
    margin-top: auto;
}

footer.wp-block-group p {
    margin: 0;
}

/* Tlačítko KOMERČNÍ - aktivní */
body.is-komercni .mode-komercni .wp-block-button__link {
    background: #0a1a2a !important;
    color: #ffffff !important;
    border: 2px solid #0a1a2a !important;
    font-weight: 700 !important;
}

/* Tlačítko AUTORSKÁ - neaktivní (BÍLÉ) */
body.is-komercni .mode-autorska .wp-block-button__link {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    opacity: 1;
}

body.is-komercni .mode-autorska .wp-block-button__link:hover {
    opacity: 0.9;
    background: #f0f0f0 !important;
    color: #000000 !important;
}

/* === PŘEPÍNAČ REŽIMŮ === */

.mode-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap !important;  /* DŮLEŽITÉ: !important zajistí, že se nezalomí */
    justify-content: center;
}

.mode-switch .wp-block-button {
    margin: 0 !important;
    flex: 1 1 0% !important;  /* ZMĚNA: force rovnoměrné rozdělení */
    min-width: 0 !important;  /* DŮLEŽITÉ: umožní flexboxu zmenšit */
    max-width: none !important;
}

.mode-switch .wp-block-button__link {
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap !important;  /* Text se nezalomí */
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
    text-align: center;
    box-sizing: border-box;
}

/* === HEADER LAYOUT === */

header.wp-block-template-part {
    width: 100%;
    position: relative;
}

header.wp-block-template-part .wp-block-group {
    padding: 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: center;
    gap: 40px;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

header.wp-block-template-part .wp-block-group > .mode-switch {
    grid-column: 1;
    justify-self: start;
}

header.wp-block-template-part .wp-block-group > .wp-block-navigation {
    grid-column: 2;
    justify-self: end;
    justify-content: flex-end !important;
}

/* === NAVIGACE === */

.wp-block-navigation {
    flex-wrap: wrap;
}

.wp-block-navigation-item {
    margin: 0 8px;
}

.wp-block-navigation-item a {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

body.is-osobni .wp-block-navigation-item a:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.is-komercni .wp-block-navigation-item a:hover {
    background: rgba(10, 26, 42, 0.1);
}

/* === KOMERČNÍ KOMPONENTY === */

.komercni-intro {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card,
.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover,
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon,
.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1;
}

.feature-card h4,
.service-card h3 {
    margin-bottom: 12px;
    font-size: 22px;
    color: #0a1a2a;
}

.service-btn .wp-block-button__link {
    margin-top: 20px;
    padding: 12px 28px !important;
    border-radius: 25px !important;
    font-weight: 600;
    background: #0a1a2a !important;
    color: #ffffff !important;
    border: 2px solid #0a1a2a;
}

.service-btn .wp-block-button__link:hover {
    background: transparent !important;
    color: #0a1a2a !important;
}

/* === RESPONZIVITA === */

@media (max-width: 1024px) {
    header.wp-block-template-part .wp-block-group {
        padding: 15px;
    }

    .komercni-intro {
        padding: 40px 15px;
    }

    .feature-card,
    .service-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    /* Skrýt desktop navigaci */
    header.wp-block-template-part .wp-block-navigation {
        display: none !important;
    }

    /* Zobrazit hamburger */
    .hamburger {
        display: flex;
    }

    /* Zobrazit mobilní menu strukturu */
    .mobile-menu {
        display: block;
    }

    /* Header layout - KRITICKÁ ZMĚNA */
    header.wp-block-template-part .wp-block-group {
        display: flex !important;  /* ZMĚNA z grid na flex */
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 15px;
        position: relative;
        padding: 12px 15px;
    }

    /* Mode switch - kompaktní na mobilu */
    .mode-switch {
        flex: 1 !important;  /* Zabere dostupné místo */
        min-width: 0 !important;  /* Umožní zmenšení */
        max-width: calc(100% - 60px) !important;  /* Nechá místo pro hamburger */
        gap: 6px !important;
    }

    .mode-switch .wp-block-button {
        flex: 1 1 0% !important;
        min-width: 0 !important;
    }

    .mode-switch .wp-block-button__link {
        font-size: 12px !important;
        padding: 10px 8px !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
    }

    /* Hamburger - pevná šířka */
    .hamburger {
        flex-shrink: 0 !important;
        width: 48px;
        height: 48px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Barvy pro mobilní menu podle režimu */
    body.is-osobni .hamburger span {
        background: #ffffff;
    }

    body.is-komercni .hamburger span {
        background: #0a1a2a;
    }

    body.is-komercni .mobile-menu {
        background: #ffffff;
    }

    body.is-komercni .mobile-menu-nav a {
        color: #0a1a2a;
    }

    body.is-komercni .mobile-menu-nav a:hover {
        color: var(--accent, #3a86ff);
    }

    body.is-komercni .mobile-menu .mode-switch-mobile a {
        border-color: #0a1a2a;
        color: #0a1a2a;
    }

    body.is-komercni .mobile-menu .mode-switch-mobile a.active {
        background: #0a1a2a;
        color: #ffffff;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        max-width: 100%;
        padding: 80px 20px 20px;
    }

    header.wp-block-template-part .wp-block-group {
        padding: 10px 12px;
    }

    .mode-switch {
        gap: 5px !important;
    }

    .mode-switch .wp-block-button__link {
        font-size: 11px !important;
        padding: 8px 6px !important;
    }
}

@media (max-width: 360px) {
    .mode-switch .wp-block-button__link {
        font-size: 10px !important;
        padding: 8px 4px !important;
    }
    
    header.wp-block-template-part .wp-block-group {
        padding: 8px 10px;
    }
}

/* Zajištění, že layout nezobrazuje horizontální scrollbar */
body,
html {
    overflow-x: hidden;
    max-width: 100vw;
}



/* ================================================
   RESPONZIVNÍ HAMBURGER MENU PRO WORDPRESS THEME
   Přidejte tento kód na konec global.css
   ================================================ */

/* === HAMBURGER IKONA === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: transparent;
    border: none;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;  /* PŘIDAT: zabráníme zmenšení hamburgeru */
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #ffffff;  /* Výchozí bílá */
    transition: all 0.3s ease;
    display: block;
}

/* Barvy pro specifické režimy */
body.is-komercni .hamburger span {
    background: #0a1a2a;
}

body.is-osobni .hamburger span {
    background: #ffffff;
}

/* Animace hamburgeru na křížek */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* === MOBILNÍ MENU === */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--charcoal, #1a1a1a);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    padding: 100px 30px 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

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

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

/* Položky v mobilním menu */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-nav a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-nav a:hover {
    padding-left: 10px;
    color: var(--accent, #3a86ff);
}

.mobile-menu-nav a:last-child {
    border-bottom: none;
}

/* Tlačítka režimů v mobilním menu */
.mobile-menu .mode-switch-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu .mode-switch-mobile a {
    display: block;
    padding: 14px 20px;
    border-radius: 25px;
    border: 2px solid #ffffff;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu .mode-switch-mobile a.active {
    background: #ffffff;
    color: #000000;
}

.mobile-menu .mode-switch-mobile a:not(.active) {
    background: transparent;
    color: #ffffff;
}

/* === RESPONZIVITA === */

/* Tablet a menší */
@media (max-width: 1024px) {
    header.wp-block-template-part .wp-block-group {
        grid-template-columns: 280px 1fr auto;
        gap: 20px;
    }

    .wp-block-navigation {
        font-size: 14px;
    }

    .wp-block-navigation-item {
        margin: 0 6px;
    }
}

/* Tablet portrait a mobil */
@media (max-width: 768px) {
    /* Skrýt desktop navigaci */
    header.wp-block-template-part .wp-block-navigation {
        display: none !important;
    }

    /* Zobrazit hamburger */
    .hamburger {
        display: flex;
    }

    /* Zobrazit mobilní menu strukturu */
    .mobile-menu {
        display: block;
    }

    /* Header layout */
    header.wp-block-template-part .wp-block-group {
        grid-template-columns: 1fr auto;
        gap: 15px;
        position: relative;
    }

    .mode-switch {
        max-width: 100%;
        min-width: auto;
    }

    /* Barvy hamburgeru podle režimu */
    body.is-osobni .hamburger span {
        background: #ffffff;
    }

    body.is-komercni .hamburger span {
        background: #0a1a2a;
    }

    body.is-komercni .mobile-menu {
        background: #ffffff;
    }

    body.is-komercni .mobile-menu-nav a {
        color: #0a1a2a;
    }

    body.is-komercni .mobile-menu-nav a:hover {
        color: var(--accent, #3a86ff);
    }

    body.is-komercni .mobile-menu .mode-switch-mobile a {
        border-color: #0a1a2a;
        color: #0a1a2a;
    }

    body.is-komercni .mobile-menu .mode-switch-mobile a.active {
        background: #0a1a2a;
        color: #ffffff;
    }
}

/* Malé mobily */
@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        max-width: 100%;
        padding: 80px 20px 20px;
    }

    header.wp-block-template-part .wp-block-group {
        padding: 12px 15px;
    }

    .mode-switch {
        gap: 6px;
    }

    .mode-switch .wp-block-button__link {
        font-size: 11px !important;
        padding: 8px 14px !important;
    }
}

/* Prevence scrollování při otevřeném menu */
body.menu-open {
    overflow: hidden;
}

/* Animace pro smooth appear */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.mobile-menu.active {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}



/* ================================================
   BRUTÁLNÍ FIX - TLAČÍTKA VEDLE SEBE
   ================================================ */

/* GLOBÁLNÍ FIX - přepíše všechny WordPress výchozí styly */
.mode-switch,
.wp-block-buttons.mode-switch {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
}

.mode-switch .wp-block-button,
.wp-block-buttons.mode-switch .wp-block-button {
    flex: 1 1 0% !important;
    margin: 0 !important;
    min-width: 0 !important;
    max-width: 500px !important;
}

.mode-switch .wp-block-button__link,
.wp-block-buttons.mode-switch .wp-block-button__link {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* WordPress někdy přidává is-content-justification-* třídy, vymazat je */
.mode-switch.is-content-justification-left,
.mode-switch.is-content-justification-center,
.mode-switch.is-content-justification-right,
.mode-switch.is-content-justification-space-between {
    flex-direction: row !important;
}

/* Pro jistotu - vypnout vertical orientation */
.mode-switch.is-vertical,
.mode-switch[class*="is-vertical"] {
    flex-direction: row !important;
}

/* ================================================
   MOBILNÍ resp
   ================================================ */

@media (max-width: 768px) {
    .mode-switch,
    .wp-block-buttons.mode-switch {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: calc(100% - 60px) !important;
        gap: 6px !important;
    }

    .mode-switch .wp-block-button,
    .wp-block-buttons.mode-switch .wp-block-button {
        flex: 1 1 50% !important;
        margin: 0 !important;
    }

    .mode-switch .wp-block-button__link,
    .wp-block-buttons.mode-switch .wp-block-button__link {
        font-size: 12px !important;
        padding: 10px 8px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    .mode-switch .wp-block-button__link,
    .wp-block-buttons.mode-switch .wp-block-button__link {
        font-size: 11px !important;
        padding: 8px 6px !important;
    }
}

@media (max-width: 360px) {
    .mode-switch .wp-block-button__link,
    .wp-block-buttons.mode-switch .wp-block-button__link {
        font-size: 10px !important;
        padding: 8px 4px !important;
    }
}



/* ================================================
   KONEČNÝ FIX - VYVÁŽENÉ TLAČÍTKA PŘEPÍNAČE
   Přidat na KONEC global.css
   ================================================ */

/* Hlavní container - centrování */
.wp-block-buttons.mode-switch {
    display: flex !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    gap: 10px !important;
    justify-content: center !important;
}

/* Každé tlačítko - rozdílné šířky */
.mode-switch .wp-block-button.mode-autorska {
    flex: 0 0 45% !important;  /* Autorská tvorba - 45% */
    max-width: 45% !important;
    min-width: 0 !important;
}

.mode-switch .wp-block-button.mode-komercni {
    flex: 0 0 55% !important;  /* Fotografické služby - 55% (širší) */
    max-width: 55% !important;
    min-width: 0 !important;
}

/* Samotné odkazy v tlačítkách */
.mode-switch .wp-block-button__link {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    min-height: 48px !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
}

/* Desktop - AUTO ŠÍŘKA podle textu */
@media (min-width: 1024px) {
    .wp-block-buttons.mode-switch {
        max-width: none !important; /* Žádné omezení */
        width: auto !important;
        min-width: 480px !important; /* Minimální šířka */
        gap: 15px !important;
    }
    
    .mode-switch .wp-block-button {
        flex: 0 0 auto !important; /* Auto podle obsahu */
        min-width: 220px !important; /* Minimální šířka */
    }
    
    .mode-switch .wp-block-button__link {
        padding: 14px 30px !important;
        font-size: 15px !important;
        min-height: 52px !important;
        white-space: nowrap !important; /* Text na jeden řádek */
    }
    
    /* Speciálně pro delší text */
    .mode-switch .wp-block-button.mode-komercni {
        min-width: 240px !important;
    }
}

/* Tablet */
@media (max-width: 1023px) and (min-width: 769px) {
    .wp-block-buttons.mode-switch {
        max-width: 360px !important;
        gap: 8px !important;
    }
    
    .mode-switch .wp-block-button__link {
        padding: 11px 18px !important;
        font-size: 14px !important;
        min-height: 46px !important;
    }
    
    .mode-switch .wp-block-button.mode-autorska {
        flex: 0 0 44% !important;
        max-width: 44% !important;
    }
    
    .mode-switch .wp-block-button.mode-komercni {
        flex: 0 0 56% !important;
        max-width: 56% !important;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .wp-block-buttons.mode-switch {
        max-width: 100% !important;
        gap: 6px !important;
        justify-content: space-between !important;
    }
    
    .mode-switch .wp-block-button__link {
        padding: 10px 12px !important;
        font-size: 13px !important;
        min-height: 42px !important;
        border-radius: 22px !important;
    }
    
    /* Na mobilu přizpůsobíme šířky */
    .mode-switch .wp-block-button.mode-autorska {
        flex: 0 0 48% !important;
        max-width: 48% !important;
    }
    
    .mode-switch .wp-block-button.mode-komercni {
        flex: 0 0 52% !important;
        max-width: 52% !important;
    }
}

/* Velmi malý mobil */
@media (max-width: 480px) {
    .mode-switch .wp-block-button__link {
        padding: 8px 10px !important;
        font-size: 12px !important;
        min-height: 38px !important;
        border-radius: 20px !important;
    }
    
    .mode-switch .wp-block-button.mode-autorska {
        flex: 0 0 47% !important;
        max-width: 47% !important;
    }
    
    .mode-switch .wp-block-button.mode-komercni {
        flex: 0 0 53% !important;
        max-width: 53% !important;
    }
}

/* Super malý mobil */
@media (max-width: 360px) {
    .mode-switch .wp-block-button__link {
        padding: 7px 8px !important;
        font-size: 11px !important;
        min-height: 36px !important;
    }
    
    .mode-switch .wp-block-button.mode-autorska {
        flex: 0 0 46% !important;
        max-width: 46% !important;
    }
    
    .mode-switch .wp-block-button.mode-komercni {
        flex: 0 0 54% !important;
        max-width: 54% !important;
    }
}

/* Zajistíme, aby text vždy zůstal na jednom řádku */
.mode-switch .wp-block-button__link span,
.mode-switch .wp-block-button__link {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Fix pro WordPress bloky */
.wp-block-buttons.mode-switch.is-layout-flex {
    display: flex !important;
    flex-wrap: nowrap !important;
}

/* Zajistíme správné zobrazení v header layoutu */
header.wp-block-template-part .wp-block-group > .mode-switch {
    width: 100% !important;
    justify-self: center !important;
}

/* Responzivní fix pro header */
@media (max-width: 768px) {
    header.wp-block-template-part .wp-block-group {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .wp-block-buttons.mode-switch {
        flex: 1 !important;
        margin-right: 15px !important;
    }
}


/* ================================================
   HEADER FIX – LADÍ S ČERNOU STRÁNKOU
   ================================================ */

.header-komercni,
.header-osobni {
    background: #000000 !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Nav odkazy – bílé na černém (opraveno) */
.header-komercni .wp-block-navigation-item a,
.header-komercni .wp-block-navigation-item a:visited {
    color: #ffffff !important;  /* bylo #000000 – opraveno na bílou */
    text-decoration: none !important;
}

.header-osobni .wp-block-navigation-item a,
.header-osobni .wp-block-navigation-item a:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

.header-komercni .wp-block-navigation-item a:hover,
.header-osobni .wp-block-navigation-item a:hover {
    color: #cccccc !important;  /* světlejší pro hover */
}

/* Aktivní tlačítko – bílé */
.header-komercni .mode-komercni .wp-block-button__link,
.header-osobni .mode-autorska .wp-block-button__link {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
}

/* Neaktivní tlačítko – průhledné, bílý rámeček */
.header-komercni .mode-autorska .wp-block-button__link,
.header-osobni .mode-komercni .wp-block-button__link {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    font-weight: 500 !important;
}

/* ================================================
   OPRAVA SUBMENU (DROPDOWN) – VIDITELNOST TEXTU
   ================================================ */

/* Submenu pozadí a text – výchozí (osobní režim) */
.wp-block-navigation__submenu-container {
    background: #000000 !important;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item a {
    color: #ffffff !important;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item a:hover {
    color: #ffffff !important;
}

/* Komerční režim – submenu */
body.is-komercni .wp-block-navigation__submenu-container {
    background: #ffffff !important;
}

body.is-komercni .wp-block-navigation__submenu-container .wp-block-navigation-item a {
    color: #0a1a2a !important;
}

body.is-komercni .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover {
    background: #f0f0f0 !important;
    color: #0a1a2a !important;
}

/* ================================================
   OPRAVA HEADER – CELÁ ŠÍŘKA ČERNÁ
   ================================================ */

/* Header pozadí vždy černé přes celou obrazovku */
header.wp-block-template-part,
body.is-osobni header.wp-block-template-part,
body.is-komercni header.wp-block-template-part {
    background: #000000 !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: none !important;
}

/* Vnitřní kontejner headeru */
header.wp-block-template-part .wp-block-group {
    max-width: 1500px !important;  /* zachovává max šířku obsahu */
    margin: 0 auto !important;
    padding: 20px !important;
    width: 100% !important;
    position: relative !important;
    background: transparent !important;
}

/* Odstranění bílého pozadí v komerčním režimu */
body.is-komercni header.wp-block-template-part {
    border: none !important;
}

/* Navigace bílá */
header.wp-block-template-part .wp-block-navigation-item a {
    color: #ffffff !important;
}
/* ================================================
   ACCORDION SUBMENU V MOBILNÍM MENU
   ================================================ */

/* Wrapper pro položku s podmenu */
.mobile-menu-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tlačítko toggle – vypadá jako normální odkaz */
.mobile-menu-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 0;
    font-size: 18px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.mobile-menu-accordion-toggle:hover {
    color: var(--wp--preset--color--accent, #3a86ff);
}

/* Šipka */
.accordion-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 1;
    margin-left: 8px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    opacity: 0.5;
}

/* Šipka otočená při otevření */
.mobile-menu-accordion.open .accordion-arrow {
    transform: rotate(180deg);
}

/* Submenu – skryté */
.mobile-menu-submenu {
    display: none;
    flex-direction: column;
    padding: 0 0 10px 16px;
}

/* Submenu – zobrazené */
.mobile-menu-accordion.open .mobile-menu-submenu {
    display: flex;
}

/* Odkaz v submenu */
.mobile-menu-submenu a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.mobile-menu-submenu a:last-child {
    border-bottom: none;
}

.mobile-menu-submenu a:hover {
    padding-left: 8px;
    color: var(--wp--preset--color--accent, #3a86ff);
}

/* Komerční režim – barvy submenu */
body.is-komercni .mobile-menu-accordion-toggle {
    color: #ffffff;
}

body.is-komercni .mobile-menu-submenu a {
    color: rgba(255, 255, 255, 0.7);
}

body.is-komercni .mobile-menu-submenu a:hover {
    color: var(--wp--preset--color--accent, #3a86ff);
}

/* ================================================
   OPRAVA ŠIPEK U SUBMENU V DESKTOP NAVIGACI
   ================================================ */

/* Šipka (toggle button) vedle položky s podmenu */
.wp-block-navigation-submenu__toggle {
    color: #ffffff !important;
    background: none !important;
    border: none !important;
    padding: 0 2px !important;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.wp-block-navigation-submenu__toggle:hover {
    opacity: 1;
}

/* Komerční režim – šipka */
body.is-komercni .wp-block-navigation-submenu__toggle {
    color: #ffffff !important;
}

/* SVG šipka uvnitř toggle */
.wp-block-navigation-submenu__toggle svg {
    fill: currentColor;
    width: 12px;
    height: 12px;
}