/* site-nav — fixed top bar, left-aligned */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(169, 202, 228, 0.08);
}

.site-nav-inner {
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0;
}

.site-nav-brand {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--wolv-light-blue);
    text-decoration: none;
    flex-shrink: 0;
    padding-right: 1.25rem;
    margin-right: 0.75rem;
    border-right: 1px solid rgba(169, 202, 228, 0.18);
    transition: color 0.2s;
    line-height: 52px;
}

.site-nav-brand:hover {
    color: #fff;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.site-nav-link {
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 0.35rem 0.7rem;
    border-radius: 5px;
    transition: color 0.2s, background 0.2s;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    position: relative;
}

.site-nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(169, 202, 228, 0.07);
}

.site-nav-link.active {
    color: var(--wolv-light-blue);
}

.site-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0.5rem;
    right: 0.5rem;
    height: 1px;
    background: var(--wolv-light-blue);
    border-radius: 1px;
    opacity: 0.7;
}

/* Tools dropdown */
.site-nav-dropdown {
    position: relative;
}

.site-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 14, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(169, 202, 228, 0.1);
    border-radius: 0 0 7px 7px;
    padding: 0.5rem 0.3rem 0.3rem;
    min-width: 160px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 100;
}

.site-nav-dropdown:hover .site-nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-nav-dropdown-item {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.76rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 0.45rem 0.7rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.site-nav-dropdown-item:hover {
    color: #fff;
    background: rgba(169, 202, 228, 0.08);
}

/* Hamburger */
.site-nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.site-nav-hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-nav-hamburger.open span:nth-child(2) { opacity: 0; }
.site-nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu panel */
.site-nav-mobile {
    display: none;
    flex-direction: column;
    background: rgba(5, 8, 14, 0.99);
    border-top: 1px solid rgba(169, 202, 228, 0.07);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
}

.site-nav-mobile.open {
    max-height: 400px;
}

.site-nav-mobile-link {
    font-family: var(--font-primary);
    font-size: 0.83rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 0.7rem 1.25rem;
    transition: color 0.15s, background 0.15s;
}

.site-nav-mobile-link:hover {
    color: #fff;
    background: rgba(169, 202, 228, 0.06);
}

/* Offset page content below fixed nav */
body {
    padding-top: 52px;
}

/* Mobile breakpoint */
@media (max-width: 600px) {
    .site-nav { height: 46px; }
    .site-nav-brand { line-height: 46px; }
    .site-nav-links { display: none; }
    .site-nav-hamburger { display: flex; }
    .site-nav-mobile { display: flex; }
    body { padding-top: 46px; }
}


/* ── What's New widget ── */
.whats-new {
    position: fixed;
    top: 62px;
    right: 20px;
    z-index: 10;
    color: white;
    font-family: var(--font-primary);
    max-width: 320px;
    border-radius: 24px;
    padding: 4px;
}

.whats-new h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--wolv-light-blue);
    text-align: right;
    padding-bottom: 5px;
}

.whats-new ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.whats-new ul li {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    text-align: right;
    margin-bottom: 8px;
    color: var(--wolv-light-grey);
    font-size: 0.9rem;
    padding: 5px;
    transition: opacity 0.4s ease 0.5s, max-height 0.4s ease 0.5s;
}

.whats-new ul li:first-child {
    opacity: 1;
    max-height: 100px;
}

.whats-new ul li:nth-child(2) {
    opacity: 0.25;
    max-height: 100px;
}

.whats-new:hover ul li {
    opacity: 1;
    max-height: 100px;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.all-updates-link {
    text-align: right;
    margin-top: 10px;
    padding-right: 5px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.2s ease, margin-top 0.2s ease;
}

.whats-new:hover .all-updates-link {
    opacity: 1;
    max-height: 50px;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: opacity 0.2s ease 0.2s, max-height 0.2s ease 0.2s, margin-top 0.2s ease 0.2s;
}

.all-updates-link a {
    font-family: var(--font-primary);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid rgba(169, 202, 228, 0.2);
}

.all-updates-link a:hover {
    background-color: var(--color-white);
    color: var(--wolv-darker-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.whats-new li .update-info {
    display: block;
    margin-bottom: 3px;
    text-align: right;
}

.whats-new li .update-date {
    display: block;
    color: var(--wolv-dark-blue);
    font-size: 0.8rem;
    white-space: nowrap;
    text-align: right;
}

.loading-update {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1 !important;
    max-height: 50px !important;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(169, 202, 228, 0.3);
    border-top-color: var(--wolv-light-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .whats-new {
        position: static;
        margin: 20px auto;
        text-align: center;
        max-width: 100%;
        padding: 0 20px;
    }

    .whats-new ul {
        text-align: left;
        display: inline-block;
        max-height: none;
        overflow: visible;
        transition: none;
    }

    .whats-new ul li {
        opacity: 1;
        max-height: none;
        overflow: visible;
        transition: none;
    }

    .all-updates-link {
        position: static;
        text-align: center;
        margin: 10px auto 20px;
        opacity: 1;
        max-height: 50px;
        overflow: visible;
        transition: none;
    }
}
