/* ===== LePet.sk Universal Header ===== */
:root {
    --green-dark: #0f1f15;
    --green-mid: #1a332a;
    --green-accent: #2E7D32;
    --green-light: #66BB6A;
    --yellow-warm: #FFD54F;
}

.lp-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--green-dark);
    border-bottom: 3px solid var(--green-accent);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.lp-nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.lp-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    flex-shrink: 0;
}

.lp-nav-brand img { width: 45px; height: 45px; }

.lp-nav-brand-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.lp-nav-brand-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
}

.lp-nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--green-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Nav links */
.lp-nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.lp-nav-links > li { position: relative; }

.lp-nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 14px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transition: all 0.25s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    white-space: nowrap;
}

.lp-nav-links > li > a:hover,
.lp-nav-links > li:hover > a {
    color: var(--green-light);
    border-bottom-color: var(--green-light);
    background: rgba(255,255,255,0.05);
}

.lp-nav-links > li > a i {
    color: var(--green-light);
    font-size: 0.85rem;
}

/* ===== MEGA MENU ===== */
.lp-mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 100vw;
    max-width: 1200px;
    background: var(--green-dark);
    border-top: 2px solid var(--green-accent);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
    padding: 24px 28px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 100;
}

.lp-nav-links > li:hover .lp-mega,
.lp-nav-links > li:focus-within .lp-mega {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.lp-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.lp-mega-col h4 {
    color: var(--green-light);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-mega-col h4 i { font-size: 0.8rem; }
.lp-mega-col ul { list-style: none; margin: 0; padding: 0; }
.lp-mega-col li { margin: 4px 0; }

.lp-mega-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding: 6px 10px;
    display: block;
    border-radius: 6px;
    transition: all 0.2s;
}

.lp-mega-col a:hover {
    color: #fff;
    background: rgba(102, 187, 106, 0.12);
    transform: translateX(4px);
}

/* ===== SEARCH ===== */
.lp-nav-search { padding: 0 8px; }

.lp-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(102,187,106,0.25);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.lp-search-form:focus-within {
    border-color: var(--green-light);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 2px rgba(102,187,106,0.15);
}

.lp-search-form input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 12px;
    width: 150px;
    outline: none;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.lp-search-form input::placeholder { color: rgba(255,255,255,0.4); }

.lp-search-form button {
    background: transparent;
    border: none;
    color: var(--green-light);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.25s;
}

.lp-search-form button:hover { color: var(--yellow-warm); }

/* Search dropdown */
.lp-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    z-index: 9999;
    margin-top: 6px;
    border: 1px solid #e0e8e0;
}

.lp-sr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f2f0;
}

.lp-sr-item:last-child { border-bottom: none; }
.lp-sr-item:hover, .lp-sr-item.lp-sr-active { background: #f0f7f0; }

.lp-sr-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8ede8;
}

.lp-sr-nophoto {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-light);
    font-size: 1.1rem;
}

.lp-sr-text { flex: 1; min-width: 0; }

.lp-sr-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e2c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-sr-latin {
    display: block;
    font-size: 0.78rem;
    font-style: italic;
    color: #5a6b5a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-sr-cont {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--green-accent);
    flex-shrink: 0;
}

.lp-sr-empty {
    padding: 20px;
    text-align: center;
    color: #5a6b5a;
    font-size: 0.9rem;
}

.lp-sr-more {
    padding: 10px 14px;
    text-align: center;
    font-size: 0.8rem;
    color: #5a6b5a;
    border-top: 1px solid #e0e8e0;
    background: #f8faf8;
    border-radius: 0 0 10px 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .lp-nav-links > li > a { padding: 16px 10px; font-size: 0.82rem; }
    .lp-search-form input { width: 120px; }
}

@media (max-width: 768px) {
    .lp-nav-hamburger { display: block; }
    .lp-nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--green-dark);
        border-top: 1px solid rgba(255,255,255,0.1);
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }
    .lp-nav-links.active { display: flex; }
    .lp-nav-links > li > a {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        margin-bottom: 0;
        font-size: 0.95rem;
        min-height: 48px;
    }
    /* Arrow indicator for items with mega menu */
    .lp-nav-links > li > a[href*="Amerika"]::after,
    .lp-nav-links > li > a[href*="Afrika"]::after,
    .lp-nav-links > li > a[href*="Azia"]::after,
    .lp-nav-links > li > a[href*="Australia"]::after,
    .lp-nav-links > li > a[href*="clanky"]::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.65rem;
        margin-left: auto;
        color: rgba(255,255,255,0.4);
        transition: transform 0.25s;
    }
    .lp-nav-links > li > a[href*="Amerika"].lp-mega-open::after,
    .lp-nav-links > li > a[href*="Afrika"].lp-mega-open::after,
    .lp-nav-links > li > a[href*="Azia"].lp-mega-open::after,
    .lp-nav-links > li > a[href*="Australia"].lp-mega-open::after,
    .lp-nav-links > li > a[href*="clanky"].lp-mega-open::after {
        transform: rotate(180deg);
    }
    .lp-mega {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        visibility: visible;
        opacity: 1;
        display: none;
        padding: 12px 16px 16px;
        border-top: none;
        box-shadow: none;
        background: rgba(0,0,0,0.25);
    }
    .lp-mega.active { display: block; }
    .lp-mega-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .lp-mega-col a {
        padding: 10px 10px;
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 0.88rem;
    }
    .lp-mega-col a:hover { transform: none; }
    .lp-nav-search {
        padding: 12px 20px 16px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .lp-search-form { width: 100%; }
    .lp-search-form input { width: 100%; font-size: 1rem; padding: 12px 14px; }
    .lp-search-form button { padding: 12px 14px; }
    .lp-search-dropdown {
        position: fixed;
        top: auto;
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-height: 60vh;
        border-radius: 12px;
        margin-top: 0;
    }
    .lp-sr-item { padding: 12px 14px; min-height: 48px; }
    .lp-sr-thumb { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
    .lp-mega-grid { grid-template-columns: 1fr; }
    .lp-nav-brand-text span { display: none; }
    .lp-nav-links > li > a { padding: 14px 16px; }
    .lp-mega { padding: 8px 12px 12px; }
    .lp-mega-col h4 { font-size: 0.85rem; margin-bottom: 6px; padding-bottom: 6px; }
    .lp-mega-col a { font-size: 0.85rem; padding: 8px 8px; }
}
