/*
 * PVPFORUMTR — Desktop Header Premium
 * Additive CSS only. Does not alter PHP, menu behavior, or mobile navigation.
 * Applies from 721px upward.
 */

@media (min-width: 721px) {
    .topline {
        background: linear-gradient(90deg, #0b141b 0%, #101c25 55%, #0b141b 100%);
        border-bottom: 1px solid rgba(42, 184, 154, .12);
    }

    .topline .wrap {
        min-height: 32px;
    }

    .topline strong {
        color: #c8d6dc;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .015em;
    }

    .topline .right-links {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .topline a {
        margin-left: 0;
        color: #9fb0bb;
        font-size: 10px;
        transition: color .18s ease;
    }

    .topline a:hover {
        color: #f0cf83;
    }

    .masthead {
        position: relative;
        z-index: 60;
        background:
            radial-gradient(ellipse at 53% 0%, rgba(31, 190, 166, .055), transparent 48%),
            linear-gradient(180deg, #17232c 0%, #131e27 100%);
        border-bottom: 1px solid #2b3c46;
    }

    .masthead-inner {
        display: grid;
        grid-template-columns: minmax(215px, 245px) minmax(260px, 1fr) auto;
        align-items: center;
        gap: clamp(14px, 2vw, 26px);
        min-height: 88px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand {
        min-width: 0;
        gap: 12px;
    }

    .brand-icon {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        border: 1px solid rgba(111, 231, 207, .28);
        border-radius: 13px;
        background: linear-gradient(145deg, #35c9aa 0%, #168b75 100%);
        color: #08251f;
        font-size: 24px;
        box-shadow: 0 7px 18px rgba(17, 177, 150, .17), inset 0 1px 0 rgba(255,255,255,.2);
    }

    .brand-name {
        color: #f3f6f7;
        font-size: 24px;
        font-weight: 900;
        letter-spacing: -.85px;
    }

    .brand-name span {
        color: #efbd55;
    }

    .tagline {
        margin-top: 4px;
        color: #91a5b0;
        font-size: 10px;
        letter-spacing: .005em;
        white-space: nowrap;
    }

    .head-promo {
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 62px;
        padding: 10px 15px;
        border: 1px solid rgba(61, 133, 119, .45);
        border-radius: 12px;
        background:
            radial-gradient(ellipse at 0% 50%, rgba(35, 185, 157, .13), transparent 58%),
            linear-gradient(105deg, #1a3535 0%, #1a2b34 72%, #172832 100%);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 7px 20px rgba(0,0,0,.12);
    }

    .head-promo strong {
        color: #79e0c8;
        font-size: 14px;
        font-weight: 850;
        letter-spacing: -.15px;
    }

    .head-promo small {
        margin-top: 2px;
        color: #a8c3c0;
        font-size: 10px;
    }

    .promo-link,
    .account-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 37px;
        padding: 8px 14px;
        border: 1px solid rgba(240, 190, 82, .5);
        border-radius: 8px;
        background: linear-gradient(180deg, #ffc34f 0%, #e99c12 100%);
        color: #1d1b14 !important;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .01em;
        white-space: nowrap;
        box-shadow: 0 5px 13px rgba(224, 151, 20, .14), inset 0 1px 0 rgba(255,255,255,.25);
        transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    }

    .promo-link:hover,
    .account-button:hover {
        transform: translateY(-1px);
        filter: brightness(1.06);
        color: #17150f !important;
        box-shadow: 0 7px 17px rgba(224, 151, 20, .2);
    }

    .header-account {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        min-width: max-content;
    }

    .header-account .pvp-header-login,
    .header-account .account-button:not(.account-button-primary) {
        border: 1px solid #354b57;
        background: linear-gradient(180deg, #263b47, #1b2d37);
        color: #dce8ed !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
    }

    .header-account .pvp-header-login:hover {
        border-color: #4d7780;
        background: #2b4650;
        color: #fff !important;
    }

    .header-account .account-button-primary,
    .header-account .pvp-header-register {
        border-color: rgba(240, 190, 82, .5);
        background: linear-gradient(180deg, #ffc34f 0%, #e99c12 100%);
        color: #1d1b14 !important;
    }

    .pvp-header-user-profile {
        min-height: 42px;
        border-color: #344b56;
        border-radius: 11px;
        background: linear-gradient(145deg, #20343e, #172730);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
        transition: border-color .18s ease, background .18s ease;
    }

    .pvp-header-user-profile:hover {
        border-color: rgba(49, 201, 170, .65);
        background: linear-gradient(145deg, #25423f, #1a3038);
        color: #f2f8f7;
    }

    .pvp-header-avatar {
        border: 2px solid rgba(89, 220, 191, .45);
    }

    .pvp-header-user-name {
        color: #eaf2f4;
        font-size: 12px;
        font-weight: 800;
    }

    .pvp-header-user-menu {
        top: calc(100% + 9px);
        border-color: #354d57;
        background: linear-gradient(155deg, #1c3039, #101b22);
        box-shadow: 0 18px 38px rgba(0,0,0,.38);
    }

    .pvp-header-user-menu a:hover {
        background: rgba(36, 185, 155, .12);
        color: #75e1c8;
    }

    .main-nav {
        background: linear-gradient(180deg, #192832 0%, #15232c 100%);
        border-bottom: 1px solid #30424c;
        box-shadow: 0 5px 15px rgba(0,0,0,.14);
    }

    .main-nav .nav-inner {
        min-height: 47px;
        gap: 5px;
    }

    .main-nav .nav-inner > a {
        position: relative;
        padding: 14px 13px 13px;
        color: #c4d1d8;
        font-size: 12px;
        font-weight: 800;
        transition: color .18s ease, background .18s ease;
    }

    .main-nav .nav-inner > a:hover,
    .main-nav .nav-inner > a.current {
        background: rgba(39, 188, 157, .055);
        color: #72dfc5;
        box-shadow: inset 0 -2px #2ac5a4;
    }

    .nav-search {
        width: 220px;
        min-width: 190px;
        max-width: 260px;
    }

    .nav-search input,
    .nav-search input[type="search"] {
        min-height: 34px;
        padding: 7px 11px;
        border: 1px solid #344954;
        border-radius: 8px;
        background: #101b23;
        color: #e7edf2;
        font-size: 11px;
        transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .nav-search input:focus,
    .nav-search input[type="search"]:focus {
        border-color: #2bbd9f;
        background: #12212a;
        box-shadow: 0 0 0 3px rgba(43, 189, 159, .1);
        outline: none;
    }

    .nav-search input::placeholder,
    .nav-search input[type="search"]::placeholder {
        color: #8195a0;
    }
}

@media (min-width: 721px) and (max-width: 900px) {
    .masthead-inner {
        grid-template-columns: minmax(190px, 215px) minmax(210px, 1fr) auto;
        gap: 12px;
    }

    .brand-name {
        font-size: 21px;
    }

    .tagline {
        font-size: 9px;
    }

    .head-promo {
        padding: 9px 11px;
    }

    .head-promo strong {
        font-size: 12px;
    }

    .head-promo small {
        font-size: 9px;
    }

    .account-button,
    .promo-link {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-link,
    .account-button,
    .pvp-header-user-profile,
    .main-nav .nav-inner > a,
    .nav-search input {
        transition: none !important;
    }
}
