
/* =========================================================
   ESPORTSKHABAR - IGN INSPIRED GAMING THEME
   COMPLETE MAIN STYLESHEET
========================================================= */

/* ---------- GLOBAL ---------- */

:root {
    --ek-bg: #08090d;
    --ek-sidebar: #111318;
    --ek-panel: #171a21;
    --ek-panel-hover: #222630;
    --ek-text: #f5f5f7;
    --ek-muted: #a0a5b2;
    --ek-red: #ff4057;
    --ek-border: rgba(255,255,255,.10);
    --ek-sidebar-width: 260px;
    --ek-sidebar-collapsed: 76px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--ek-bg);
    color: var(--ek-text);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

body,
button,
input {
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--ek-red);
}

button {
    font: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

svg {
    display: block;
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ---------- SKIP LINK ---------- */

.ek-skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 999999;
}

.ek-skip-link:focus {
    position: fixed;
    left: 15px;
    padding: 12px 18px;
    background: white;
    color: black;
}

/* =========================================================
   LEFT SIDEBAR
========================================================= */

.ek-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9990;

    display: flex;
    flex-direction: column;

    width: var(--ek-sidebar-width);
    height: 100vh;

    background: var(--ek-sidebar);
    border-right: 1px solid var(--ek-border);

    transition: width .28s ease, transform .28s ease;
}

/* ---------- SIDEBAR BRAND ---------- */

.ek-sidebar-brand {
    min-height: 82px;
    padding: 0 19px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-bottom: 1px solid var(--ek-border);
}

.ek-brand-logo {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 21px;
    font-weight: 1000;
    letter-spacing: -1.2px;
}

.ek-brand-main {
    color: #ffffff;
}

.ek-brand-accent {
    color: var(--ek-red);
}

.ek-sidebar-collapse {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--ek-border);
    border-radius: 7px;
    background: transparent;
    color: #ffffff;

    font-size: 24px;
    line-height: 1;

    transition: background .2s ease;
}

.ek-sidebar-collapse:hover {
    background: var(--ek-panel-hover);
    color: var(--ek-red);
}

/* ---------- SIDEBAR SEARCH ---------- */

.ek-sidebar-search {
    margin: 18px 14px 20px;
    padding: 0 11px;

    min-height: 43px;

    display: flex;
    align-items: center;
    gap: 9px;

    background: #1c2028;
    border: 1px solid var(--ek-border);
    border-radius: 7px;
}

.ek-sidebar-search svg {
    width: 18px;
    height: 18px;
    color: #a8adba;
}

.ek-sidebar-search input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0;

    border: 0;
    outline: 0;
    background: transparent;
    color: white;

    font-size: 12px;
}

.ek-sidebar-search input::placeholder {
    color: #9298a6;
}

.ek-sidebar-search button {
    width: 26px;
    height: 26px;
    flex-shrink: 0;

    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
}

.ek-sidebar-search button:hover {
    color: var(--ek-red);
}

/* ---------- NAVIGATION ---------- */

.ek-sidebar-navigation {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 12px 20px;

    scrollbar-width: thin;
    scrollbar-color: #343944 transparent;
}

.ek-sidebar-label {
    padding: 10px 11px 9px;

    color: #747c8b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.8px;
    white-space: nowrap;
}

.ek-sidebar-link {
    position: relative;

    width: 100%;
    min-height: 45px;
    margin-bottom: 4px;
    padding: 0 12px;

    display: flex;
    align-items: center;
    gap: 13px;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: #c4c8d2;

    text-align: left;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;

    transition: background .2s ease, color .2s ease;
}

.ek-sidebar-link:hover {
    background: var(--ek-panel-hover);
    color: #ffffff;
}

.ek-sidebar-link.active {
    background: rgba(255,64,87,.13);
    color: #ffffff;
}

.ek-sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;

    width: 3px;
    border-radius: 4px;
    background: var(--ek-red);
}

.ek-nav-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ek-nav-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ek-nav-text {
    flex: 1;
}

.ek-sidebar-divider {
    height: 1px;
    margin: 15px 8px;
    background: var(--ek-border);
}

/* ---------- CATEGORIES SUBMENU ---------- */

.ek-sidebar-category-group {
    width: 100%;
}

.ek-category-toggle {
    appearance: none;
    -webkit-appearance: none;
}

.ek-category-arrow {
    margin-left: auto;
    color: #8e95a3;
    font-size: 18px;
    transition: transform .2s ease;
}

.ek-category-toggle[aria-expanded="true"] .ek-category-arrow {
    transform: rotate(180deg);
}

.ek-category-submenu {
    padding: 4px 0 7px 37px;
}

.ek-category-submenu[hidden] {
    display: none !important;
}

.ek-category-link {
    min-height: 36px;
    padding: 8px 10px;

    display: flex;
    align-items: center;
    gap: 10px;

    border-radius: 5px;

    color: #9da3b0;
    font-size: 12px;
    font-weight: 500;
}

.ek-category-link:hover,
.ek-category-link.active {
    background: rgba(255,255,255,.05);
    color: #ffffff;
}

.ek-category-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #727987;
    flex-shrink: 0;
}

.ek-category-link:hover .ek-category-dot,
.ek-category-link.active .ek-category-dot {
    background: var(--ek-red);
}

/* ---------- SIDEBAR FOOTER ---------- */

.ek-sidebar-footer {
    flex-shrink: 0;
    padding: 17px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ek-sidebar-footer-line {
    height: 1px;
    margin-bottom: 10px;
    background: var(--ek-border);
}

.ek-sidebar-footer-title {
    color: #89909e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.ek-sidebar-footer-copy {
    color: #656d7a;
    font-size: 10px;
}

/* =========================================================
   COLLAPSED SIDEBAR
========================================================= */

body.ek-sidebar-collapsed .ek-sidebar {
    width: var(--ek-sidebar-collapsed);
}

body.ek-sidebar-collapsed .ek-brand-logo,
body.ek-sidebar-collapsed .ek-sidebar-search,
body.ek-sidebar-collapsed .ek-sidebar-label,
body.ek-sidebar-collapsed .ek-nav-text,
body.ek-sidebar-collapsed .ek-category-arrow,
body.ek-sidebar-collapsed .ek-category-submenu,
body.ek-sidebar-collapsed .ek-sidebar-footer {
    display: none !important;
}

body.ek-sidebar-collapsed .ek-sidebar-brand {
    justify-content: center;
    padding: 0 10px;
}

body.ek-sidebar-collapsed .ek-sidebar-collapse {
    transform: rotate(180deg);
}

body.ek-sidebar-collapsed .ek-sidebar-navigation {
    padding-left: 12px;
    padding-right: 12px;
}

body.ek-sidebar-collapsed .ek-sidebar-link {
    justify-content: center;
    padding: 0;
}

body.ek-sidebar-collapsed .ek-sidebar-link.active::before {
    left: -12px;
}

body.ek-sidebar-collapsed .ek-nav-icon {
    width: 24px;
    height: 24px;
}

/* Main content follows sidebar */

.ek-site-content {
    min-height: 100vh;
    margin-left: var(--ek-sidebar-width);
    width: calc(100% - var(--ek-sidebar-width));
    transition: margin-left .28s ease, width .28s ease;
}

body.ek-sidebar-collapsed .ek-site-content {
    margin-left: var(--ek-sidebar-collapsed);
    width: calc(100% - var(--ek-sidebar-collapsed));
}

/* =========================================================
   MOBILE HEADER
========================================================= */

.ek-mobile-topbar {
    display: none;
}

.ek-sidebar-overlay {
    display: none;
}

.ek-mobile-search-panel {
    display: none;
}

/* =========================================================
   ELEMENTOR HOMEPAGE
========================================================= */

.ek-main-content {
    width: 100%;
    min-height: 70vh;
    background: var(--ek-bg);
}

.ek-elementor-content {
    width: 100%;
    min-width: 0;
    color: var(--ek-text);
}

.ek-elementor-content > .elementor {
    width: 100%;
}

.ek-elementor-home .elementor-section,
.ek-elementor-home .e-con {
    max-width: 100%;
}

.ek-elementor-home .elementor-widget-wrap {
    min-width: 0;
}

.ek-elementor-home .elementor img {
    max-width: 100%;
}

.ek-elementor-home .elementor-video {
    overflow: hidden;
    border-radius: 8px;
}

/* Elementor full-width page */

body.elementor-page .site,
body.elementor-page #page,
body.elementor-page .site-content {
    max-width: 100%;
}

/* Elementor editor preview */

body.elementor-editor-active .ek-sidebar {
    z-index: 100;
}

/* Homepage empty state */

.ek-homepage-empty {
    min-height: 75vh;
    padding: 80px 6%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    background:
        radial-gradient(circle at 75% 35%,rgba(255,64,87,.15),transparent 35%),
        #0b0d13;
}

.ek-homepage-kicker {
    color: var(--ek-red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
}

.ek-homepage-empty h1 {
    max-width: 850px;
    margin: 22px 0;

    color: #ffffff;
    font-size: clamp(38px,6vw,76px);
    line-height: 1;
    font-weight: 1000;
    letter-spacing: -2px;
}

.ek-homepage-empty h1 span {
    color: var(--ek-red);
}

.ek-homepage-empty p {
    max-width: 600px;
    color: var(--ek-muted);
    line-height: 1.8;
}

.ek-homepage-button {
    margin-top: 20px;
    padding: 15px 23px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--ek-red);
    border-radius: 5px;
    color: #ffffff;

    font-size: 11px;
    font-weight: 900;
}

.ek-homepage-button:hover {
    background: #e52d47;
    color: white;
}

/* =========================================================
   FOOTER
========================================================= */

.ek-footer {
    width: 100%;
    background: #0b0d12;
    border-top: 1px solid var(--ek-border);
}

.ek-footer-inner {
    padding: 45px 5% 22px;
    max-width: 1500px;
    margin: auto;
}

.ek-footer-brand {
    color: #ffffff;
    font-size: 22px;
    font-weight: 1000;
}

.ek-footer-brand span {
    color: var(--ek-red);
}

.ek-footer-inner p {
    max-width: 600px;
    color: var(--ek-muted);
    font-size: 13px;
    line-height: 1.8;
}

.ek-footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;

    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid var(--ek-border);
    color: #818896;
    font-size: 11px;
}

.ek-back-top {
    color: #ffffff;
    font-weight: 900;
}

/* =========================================================
   SEARCH RESULTS AND INNER PAGES
========================================================= */

body.search .ek-main-content,
body.archive .ek-main-content,
body.category .ek-main-content,
body.single .ek-main-content,
body.page .ek-main-content {
    padding: 35px;
}

.ek-page-wrap,
.ek-article-wrap {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 35px;
}

.ek-page-title {
    color: #ffffff;
    font-size: clamp(32px,5vw,58px);
}

.ek-article {
    max-width: 900px;
    margin: auto;
}

.ek-article-title {
    color: white;
    font-size: clamp(34px,5vw,65px);
    line-height: 1.05;
}

.ek-article-content {
    color: #d1d5df;
    font-size: 17px;
    line-height: 1.9;
}

.ek-article-content h2,
.ek-article-content h3 {
    color: #ffffff;
}

.ek-article-content a {
    color: var(--ek-red);
}

/* Search forms in WordPress content */

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form input[type="search"] {
    min-width: 0;
    padding: 12px;
    background: #171a21;
    color: white;
    border: 1px solid var(--ek-border);
    border-radius: 5px;
}

.search-form input[type="submit"] {
    padding: 12px 18px;
    background: var(--ek-red);
    color: white;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    :root {
        --ek-sidebar-width: 235px;
    }

    .ek-sidebar-collapse {
        display: none;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    body {
        padding-top: 64px;
    }

    .ek-mobile-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10010;

        height: 64px;
        padding: 0 16px;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;

        background: #101217;
        border-bottom: 1px solid var(--ek-border);
    }

    .ek-mobile-brand {
        font-size: 17px;
        font-weight: 1000;
        letter-spacing: -.7px;
        white-space: nowrap;
    }

    .ek-mobile-brand span {
        color: var(--ek-red);
    }

    .ek-sidebar-toggle,
    .ek-mobile-search-toggle {
        width: 39px;
        height: 39px;

        display: flex;
        align-items: center;
        justify-content: center;

        border: 1px solid var(--ek-border);
        border-radius: 6px;
        background: #1c2028;
        color: #ffffff;
    }

    .ek-sidebar-toggle {
        flex-direction: column;
        gap: 5px;
    }

    .ek-sidebar-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: white;
    }

    .ek-sidebar {
        top: 64px;
        bottom: 0;
        left: 0;
        z-index: 10020;

        width: min(290px,85vw);
        height: calc(100vh - 64px);

        transform: translateX(-105%);
        box-shadow: 15px 0 40px rgba(0,0,0,.35);
    }

    body.ek-mobile-sidebar-open .ek-sidebar {
        transform: translateX(0);
    }

    .ek-sidebar-collapse {
        display: none;
    }

    .ek-sidebar-overlay {
        position: fixed;
        inset: 64px 0 0;
        z-index: 10015;

        background: rgba(0,0,0,.65);
        backdrop-filter: blur(3px);
    }

    body.ek-mobile-sidebar-open .ek-sidebar-overlay {
        display: block;
    }

    .ek-site-content,
    body.ek-sidebar-collapsed .ek-site-content {
        width: 100%;
        margin-left: 0;
    }

    body.ek-sidebar-collapsed .ek-sidebar {
        width: min(290px,85vw);
    }

    body.ek-sidebar-collapsed .ek-brand-logo,
    body.ek-sidebar-collapsed .ek-sidebar-search,
    body.ek-sidebar-collapsed .ek-sidebar-label,
    body.ek-sidebar-collapsed .ek-nav-text,
    body.ek-sidebar-collapsed .ek-category-arrow,
    body.ek-sidebar-collapsed .ek-sidebar-footer {
        display: initial !important;
    }

    body.ek-sidebar-collapsed .ek-sidebar-brand {
        justify-content: space-between;
    }

    body.ek-sidebar-collapsed .ek-sidebar-link {
        justify-content: flex-start;
        padding: 0 12px;
    }

    body.ek-sidebar-collapsed .ek-category-submenu {
        display: block;
    }

    .ek-mobile-search-panel {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 10030;

        padding: 12px 15px;
        background: #141720;
        border-bottom: 1px solid var(--ek-border);
    }

    .ek-mobile-search-panel:not([hidden]) {
        display: block;
    }

    .ek-mobile-search-panel form {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .ek-mobile-search-panel input {
        flex: 1;
        min-width: 0;
        height: 42px;
        padding: 0 12px;

        border: 1px solid var(--ek-border);
        border-radius: 5px;

        background: #080a10;
        color: #ffffff;
    }

    .ek-mobile-search-panel button {
        width: 43px;
        height: 42px;

        display: flex;
        align-items: center;
        justify-content: center;

        background: var(--ek-red);
        color: #ffffff;
        border: 0;
        border-radius: 5px;
    }

    .ek-homepage-empty {
        min-height: 65vh;
        padding: 50px 22px;
    }

    .ek-footer-inner {
        padding: 35px 22px 20px;
    }

    .ek-footer-bottom {
        flex-direction: column;
    }

    body.search .ek-main-content,
    body.archive .ek-main-content,
    body.category .ek-main-content,
    body.single .ek-main-content,
    body.page .ek-main-content {
        padding: 20px;
    }

    .ek-page-wrap,
    .ek-article-wrap {
        padding: 20px;
    }

}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .ek-mobile-brand {
        font-size: 14px;
    }

    .ek-mobile-topbar {
        padding: 0 10px;
        gap: 8px;
    }

}

/* =========================================================
   WORDPRESS ADMIN BAR
========================================================= */

body.admin-bar .ek-sidebar {
    top: 32px;
    height: calc(100vh - 32px);
}

@media (max-width: 782px) {

    body.admin-bar .ek-sidebar {
        top: 46px;
        height: calc(100vh - 46px);
    }

    body.admin-bar .ek-mobile-topbar {
        top: 46px;
    }

    body.admin-bar {
        padding-top: 110px;
    }

}

/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
    outline: 2px solid var(--ek-red);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}
