/*
====================================================
 DJ4X.NET - FRESH MODERN HEADER CSS
 Designed for the new header.php
====================================================
*/

:root {
    --dj-orange: #ff4b1f;
    --dj-orange-dark: #e83d15;
    --dj-navy: #172235;
    --dj-navy-2: #202d43;
    --dj-text: #172235;
    --dj-muted: #8792a3;
    --dj-border: #e9edf2;
    --dj-bg: #f7f8fa;
    --dj-white: #ffffff;
    --dj-shadow: 0 12px 35px rgba(17, 29, 48, .12);
}

/* ==================================================
   HEADER
================================================== */

.dj-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #071019;
    border-bottom: 3px solid #ff4b19;
}

.dj-header-inner {
    width: min(1400px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ==================================================
   LOGO
================================================== */

.dj-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    line-height: 0;
}

.dj-logo img {
    display: block;
}

/* ==================================================
   HEADER SEARCH
================================================== */

.dj-header-search {
    position: relative;
    flex: 1 1 520px;
    max-width: 650px;
    min-width: 250px;
    z-index: 1100;
}

.dj-header-search-form {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dj-header-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.dj-header-search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ba6b6;
    font-size: 14px;
    pointer-events: none;
}

.dj-header-search-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 45px 0 44px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px;
    outline: none !important;
    background: rgba(255,255,255,.09);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none !important;
    transition: .2s ease;
}

.dj-header-search-input::placeholder {
    color: #aeb8c7;
}

.dj-header-search-input:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
}

.dj-header-search-input:focus {
    background: #fff;
    color: var(--dj-text);
    border-color: var(--dj-orange);
    box-shadow: 0 0 0 3px rgba(255,75,31,.14) !important;
}

.dj-header-search-input:focus::placeholder {
    color: #9aa4b2;
}

.dj-header-search-clear {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8b96a7;
    cursor: pointer;
    font-size: 13px;
}

.dj-header-search-clear:hover {
    background: #f0f2f5;
    color: var(--dj-text);
}

.dj-header-search-input:not(:placeholder-shown) + .dj-header-search-clear {
    display: flex;
}

.dj-header-search-button {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 19px;
    border: 0;
    border-radius: 11px;
    background: var(--dj-orange);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    transition: .2s ease;
    box-shadow: 0 5px 15px rgba(255,75,31,.22);
}

.dj-header-search-button:hover {
    background: var(--dj-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255,75,31,.28);
}

.dj-header-search-button:active {
    transform: translateY(0);
}

/* ==================================================
   SEARCH DROPDOWN
================================================== */

.dj-header-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    max-height: 600px;
    overflow-y: auto;
    padding: 17px;
    border: 1px solid var(--dj-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--dj-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.dj-header-search-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dj-header-search-dropdown::-webkit-scrollbar {
    width: 5px;
}

.dj-header-search-dropdown::-webkit-scrollbar-thumb {
    background: #d9dee6;
    border-radius: 10px;
}

.dj-search-dropdown-head,
.dj-popular-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dj-search-dropdown-title {
    margin: 0;
    color: var(--dj-text);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .2px;
}

.dj-search-view-all {
    color: var(--dj-orange);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none !important;
}

.dj-search-view-all:hover {
    color: var(--dj-orange-dark);
}

.dj-search-trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.dj-search-trending-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 11px;
    border: 1px solid #edf0f4;
    border-radius: 7px;
    background: #f7f8fa;
    color: #586477;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none !important;
    transition: .18s ease;
}

.dj-search-trending-tags a:hover {
    border-color: rgba(255,75,31,.2);
    background: #fff1ed;
    color: var(--dj-orange);
    transform: translateY(-1px);
}

.dj-search-dropdown-divider {
    width: 100%;
    height: 1px;
    margin: 16px 0;
    background: #edf0f4;
}

.dj-popular-head {
    margin-bottom: 9px;
}

.dj-header-popular-list {
    display: flex;
    flex-direction: column;
}

.dj-header-popular-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 7px 5px;
    border-radius: 9px;
    color: var(--dj-text);
    text-decoration: none !important;
    transition: .18s ease;
}

.dj-header-popular-item:hover {
    background: #f7f8fa;
}

.dj-header-popular-thumb,
.dj-header-popular-placeholder {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 8px;
}

.dj-header-popular-thumb {
    display: block;
    object-fit: cover;
    background: #edf1f5;
}

.dj-header-popular-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: #9ba5b3;
    font-size: 13px;
}

.dj-header-popular-info {
    min-width: 0;
    flex: 1;
}

.dj-header-popular-title {
    display: block;
    overflow: hidden;
    color: #263247;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dj-header-popular-item:hover .dj-header-popular-title {
    color: var(--dj-orange);
}

.dj-header-popular-artist {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #929cab;
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dj-header-popular-arrow {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff1ed;
    color: var(--dj-orange);
    font-size: 11px;
    transition: transform .18s ease;
}

.dj-header-popular-item:hover .dj-header-popular-arrow {
    transform: translateX(2px);
}

/* ==================================================
   MAIN NAVIGATION
================================================== */

.dj-main-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
}

.dj-main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 8px;
    color: #c5ceda;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: .18s ease;
}

.dj-main-nav a:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}

.dj-main-nav a.active {
    color: #ff4b1f;
}

.dj-main-nav a.active::after {
    position: absolute;
    right: 10px;
    bottom: 2px;
    left: 10px;
    height: 2px;
    border-radius: 10px;
    background: var(--dj-orange);
    content: "";
}

.dj-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 12px;
}

/* ==================================================
   CATEGORY MENU
================================================== */

.dj-category-menu {
    position: relative;
}

.dj-category-menu > a {
    cursor: pointer;
}

.dj-category-menu > a .dj-category-chevron {
    margin-left: 1px;
    font-size: 9px;
    transition: transform .18s ease;
}

.dj-category-menu:hover > a .dj-category-chevron,
.dj-category-dropdown.open + * {
    transform: rotate(180deg);
}

.dj-category-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 245px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--dj-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--dj-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    pointer-events: none;
    transition: .18s ease;
}

.dj-category-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dj-category-dropdown::-webkit-scrollbar {
    width: 5px;
}

.dj-category-dropdown::-webkit-scrollbar-thumb {
    background: #d9dee6;
    border-radius: 10px;
}

.dj-category-dropdown a {
    display: flex;
    align-items: center;
    min-height: 37px;
    padding: 0 10px;
    border-radius: 7px;
    color: #536073;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: .16s ease;
}

.dj-category-dropdown a:hover {
    background: #fff1ed;
    color: var(--dj-orange);
}

/* ==================================================
   ACCOUNT
================================================== */

.dj-account-link {
    margin-left: 3px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
}

.dj-account-link:hover {
    border-color: rgba(255,75,31,.4) !important;
    background: rgba(255,75,31,.1) !important;
}

.dj-account-link .dj-nav-icon {
    color: var(--dj-orange);
}

/* ==================================================
   MOBILE MENU BUTTON
================================================== */

.dj-menu-btn {
    display: none;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: .18s ease;
}

.dj-menu-btn:hover {
    background: rgba(255,255,255,.12);
}

/* ==================================================
   RESPONSIVE - LARGE TABLETS / SMALL DESKTOP
================================================== */

@media (max-width: 1180px) {
    .dj-header-inner {
        gap: 15px;
    }

    .dj-main-nav {
        gap: 1px;
    }

    .dj-main-nav a {
        padding: 0 7px;
        font-size: 10px;
    }

    .dj-nav-icon {
        display: none;
    }

    .dj-header-search {
        max-width: 500px;
    }
}

/* ==================================================
   RESPONSIVE - TABLET
================================================== */

@media (max-width: 980px) {
    .dj-header-inner {
        min-height: 70px;
        width: min(100% - 24px, 900px);
    }

    .dj-header-search {
        max-width: none;
    }

    .dj-header-search-button {
        padding: 0 15px;
    }

    .dj-main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 12px;
        width: 250px;
        padding: 8px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 12px;
        background: #172235;
        box-shadow: 0 18px 40px rgba(0,0,0,.22);
    }

    .dj-main-nav.open {
        display: flex;
    }

    .dj-main-nav a {
        width: 100%;
        min-height: 42px;
        padding: 0 12px;
        justify-content: flex-start;
        color: #cbd3df;
        font-size: 11px;
    }

    .dj-nav-icon {
        display: inline-flex;
        width: 18px;
    }

    .dj-main-nav a.active::after {
        top: 9px;
        right: auto;
        bottom: 9px;
        left: 0;
        width: 3px;
        height: auto;
    }

    .dj-category-menu {
        width: 100%;
    }

    .dj-category-menu > a {
        width: 100%;
    }

    .dj-category-dropdown {
        position: static;
        width: 100%;
        max-height: 250px;
        margin: 2px 0 5px;
        border-color: rgba(255,255,255,.08);
        background: #101a2a;
        box-shadow: none;
    }

    .dj-category-dropdown a {
        color: #b9c3d0;
    }

    .dj-category-dropdown a:hover {
        background: rgba(255,75,31,.1);
    }

    .dj-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==================================================
   RESPONSIVE - MOBILE
================================================== */

@media (max-width: 680px) {
    .dj-header-inner {
        width: calc(100% - 20px);
        min-height: 64px;
        flex-wrap: wrap;
        gap: 10px;
        padding: 9px 0;
    }

    .dj-logo {
        order: 1;
    }

    .dj-menu-btn {
        order: 2;
        margin-left: auto;
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .dj-header-search {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
    }

    .dj-header-search-form {
        gap: 6px;
    }

    .dj-header-search-input {
        height: 43px;
        padding-left: 39px;
        padding-right: 38px;
        border-radius: 9px;
        font-size: 12px;
    }

    .dj-header-search-icon {
        left: 13px;
    }

    .dj-header-search-button {
        height: 43px;
        padding: 0 13px;
        border-radius: 9px;
        font-size: 11px;
    }

    .dj-header-search-dropdown {
        top: calc(100% + 7px);
        max-height: 70vh;
        padding: 13px;
        border-radius: 12px;
    }

    .dj-main-nav {
        top: calc(100% + 4px);
        right: 10px;
        width: min(260px, calc(100vw - 20px));
    }
}

/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 420px) {
    .dj-header-inner {
        width: calc(100% - 16px);
    }

    .dj-header-search-button {
        width: 43px;
        padding: 0;
        font-size: 0;
    }

    .dj-header-search-button i,
    .dj-header-search-button .fa {
        font-size: 13px;
    }

    .dj-header-search-dropdown {
        left: 0;
        width: 100%;
    }

    .dj-search-trending-tags a {
        font-size: 9px;
        padding: 0 9px;
    }

    .dj-header-popular-thumb,
    .dj-header-popular-placeholder {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {
    .dj-header *,
    .dj-header *::before,
    .dj-header *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
