/* Emergency header fix - overrides all other styles */
body > header,
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #1a1a1a !important; /* Very dark grey background */
    border-bottom: none !important;
}

.main-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 60px !important;
    background: #1a1a1a !important; /* Match header background */
}

/* Force desktop navigation to show correctly */
@media screen and (min-width: 769px) {
    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        right: auto !important;
        top: auto !important;
    }

    .nav-links li {
        margin: 0 8px !important; /* Zmenšeno z 15px */
        display: block !important;
        visibility: visible !important;
        position: relative !important;
    }

    .nav-links a {
        color: white !important;
        display: flex !important; /* Změna na flex */
        align-items: center !important; /* Centrování vertikálně */
        padding: 8px 10px !important; /* Zmenšené padding */
        visibility: visible !important;
        transition: all 0.3s ease !important;
        background: transparent !important; /* Ensure no background */
        white-space: nowrap !important; /* Zabrání zalomení textu */
        font-size: 14px !important; /* Menší písmo */
    }
    
    .nav-links a i {
        margin-right: 5px !important; /* Mezera mezi ikonou a textem */
    }
    
    /* Glowing orange text for active page */
    .nav-links a.active {
        color: #ff7700 !important; /* Vibrant orange */
        position: relative !important;
        text-shadow: 0 0 8px rgba(255, 119, 0, 0.6) !important; /* Orange glow */
    }
    
    /* Bottom line indicator for active page with glow */
    .nav-links a.active::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #ff7700 !important; /* Vibrant orange */
        box-shadow: 0 0 8px 1px #ff7700 !important; /* Glowing effect */
        transform: scaleX(1) !important;
        transition: all 0.3s ease !important;
    }
    
    /* Hover animation with glowing text */
    .nav-links a:not(.active):hover {
        color: #ff7700 !important; /* Match active color */
        text-shadow: 0 0 8px rgba(255, 119, 0, 0.6) !important; /* Orange glow */
        transform: translateY(-2px) !important;
        background: transparent !important; /* Ensure no background */
    }
    
    /* Hover underline animation with glow */
    .nav-links a:not(.active)::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #ff7700 !important; /* Vibrant orange */
        transform: scaleX(0) !important;
        transition: transform 0.3s ease !important;
        box-shadow: 0 0 8px 1px rgba(255, 119, 0, 0) !important; /* Start with no glow */
    }
    
    .nav-links a:not(.active):hover::after {
        transform: scaleX(1) !important;
        box-shadow: 0 0 8px 1px #ff7700 !important; /* Add glow on hover */
    }

    .burger-menu {
        display: none !important;
    }
}

/* Úprava pro menší obrazovky */
@media screen and (max-width: 992px) and (min-width: 769px) {
    .nav-links a {
        padding: 8px 6px !important;
        font-size: 13px !important;
    }
    
    .nav-links li {
        margin: 0 4px !important;
    }
}