/* =============================================================================
   LibParl v3 — header-style.css
   ============================================================================= */

.lp-hdr {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    background: rgba(10,10,10,0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.lp-hdr--scrolled {
    background: rgba(50,50,50,.9) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 24px rgba(0,0,0,.18);
}
.lp-hdr__inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center;
    padding: 0 24px; height: 58px; gap: 24px;
}

.lp-hdr__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.lp-hdr__logo { height: 28px; width: auto; }
.lp-hdr__name { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.2; white-space: nowrap; }
.lp-hdr__riding { font-size: 11px; color: rgba(255,255,255,.65); display: block; }

.lp-hdr__nav {
    display: flex; align-items: center; gap: 2px;
    margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0;
}
.lp-hdr__link {
    padding: 8px 11px; color: rgba(255,255,255,.88);
    font-size: 14px; font-weight: 500; text-decoration: none;
    border-radius: 6px; white-space: nowrap;
    transition: background 0.15s; border: none; background: none;
    cursor: pointer; font-family: inherit;
    display: flex; align-items: center; gap: 4px;
}
.lp-hdr__link:hover,
.lp-hdr__link:focus-visible {
    background: rgba(255,255,255,.15); color: #fff;
    outline: 2px solid rgba(255,255,255,.4); outline-offset: 2px;
}

.lp-drop { position: relative; }
.lp-drop__arrow { font-size: 9px; opacity: .7; transition: transform 0.2s; display: inline-block; }
.lp-drop--open .lp-drop__arrow { transform: rotate(180deg); }
.lp-drop__menu {
    position: absolute; top: calc(100% + 8px); left: 0;
    background: #fff; border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.06);
    min-width: 200px; padding: 6px; list-style: none;
    opacity: 0; transform: translateY(-6px) scale(.98);
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    margin: 0;
}
.lp-drop--open .lp-drop__menu { opacity: 1; transform: none; pointer-events: auto; }
.lp-drop__item {
    display: block; padding: 8px 12px;
    color: #1d2327; font-size: 13px; font-weight: 500;
    text-decoration: none; border-radius: 6px; transition: background 0.1s;
}
.lp-drop__item:hover { background: #f0f0f1; }
.lp-drop__item--all {
    color: var(--lp-accent);
    border-bottom: 1px solid #f0f0f1; margin-bottom: 4px; padding-bottom: 10px;
}

.lp-hdr__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lp-hdr__lang {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px; color: rgba(255,255,255,.88);
    font-size: 13px; font-weight: 500; text-decoration: none;
    border-radius: 6px; border: 1px solid rgba(255,255,255,.3);
    transition: background 0.15s;
}
.lp-hdr__lang:hover { background: rgba(255,255,255,.15); color: #fff; }
.lp-hdr__lang img { height: 16px; width: auto; border-radius: 2px; }

.lp-hdr__burger {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; width: 38px; height: 38px;
    background: rgba(255,255,255,.12); border: none;
    border-radius: 8px; cursor: pointer; padding: 0 10px;
}
.lp-hdr__burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.lp-hdr--open .lp-hdr__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-hdr--open .lp-hdr__burger span:nth-child(2) { opacity: 0; }
.lp-hdr--open .lp-hdr__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lp-drawer {
    display: none; position: fixed; top: 58px; left: 0; right: 0; bottom: 0;
    background: #fff; z-index: 899; overflow-y: auto;
    padding: 0 20px 40px;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}
.lp-hdr--open .lp-drawer { transform: none; }

.lp-drawer__id { padding: 20px 0 16px; border-bottom: 1px solid #f0f0f1; margin-bottom: 4px; }
.lp-drawer__name { font-size: 17px; font-weight: 600; color: #1d2327; margin-bottom: 2px; }
.lp-drawer__riding { font-size: 13px; color: #787c82; }
.lp-drawer__riding a { color: #787c82; }

.lp-drawer__link {
    display: block; padding: 13px 0;
    font-size: 16px; font-weight: 500; color: #1d2327;
    text-decoration: none; border-bottom: 1px solid #f0f0f1;
}
.lp-drawer__link:hover { color: var(--lp-accent); }

.lp-drawer__group { border-bottom: 1px solid #f0f0f1; }
.lp-drawer__group summary {
    padding: 13px 0; font-size: 16px; font-weight: 500;
    color: #1d2327; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.lp-drawer__group summary::-webkit-details-marker { display: none; }
.lp-drawer__group summary::after { content: '›'; font-size: 20px; color: #bbb; }
.lp-drawer__sub { padding: 4px 0 10px; }
.lp-drawer__sublink { display: block; padding: 9px 16px; font-size: 14px; color: #555; text-decoration: none; }
.lp-drawer__sublink:hover { color: var(--lp-accent); }

.lp-drawer__social { display: flex; gap: 12px; padding: 20px 0 0; }
.lp-drawer__social a img { height: 22px; width: auto; opacity: .6; }
.lp-drawer__social a:hover img { opacity: 1; }

.lp-hdr-spacer { height: 58px; }

@media (max-width: 820px) {
    .lp-hdr__nav { display: none; }
    .lp-hdr__lang { display: none; }
    .lp-hdr__burger { display: flex; }
    .lp-drawer { display: block; }
}