
/* =========================================================
   SKGAMERS GAMING HOMEPAGE
   ========================================================= */

:root {
    --game-dark: #090b12;
    --game-dark-2: #111522;
    --game-card: #151a29;
    --game-border: rgba(255,255,255,.08);
    --game-text: #ffffff;
    --game-muted: #a7afc3;
    --game-accent: #6c5ce7;
    --game-accent-2: #8f7cff;
    --game-radius: 16px;
}

/* Global */

.skg-page {
    background: #090b12;
    color: var(--game-text);
    min-height: 100vh;
}

.skg-page * {
    box-sizing: border-box;
}

.skg-container {
    width: min(1280px, calc(100% - 30px));
    margin: 0 auto;
}

/* =========================================================
   HERO
   ========================================================= */

.skg-hero {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 75% 30%, rgba(108,92,231,.35), transparent 35%),
        radial-gradient(circle at 20% 70%, rgba(0,200,255,.12), transparent 30%),
        linear-gradient(135deg, #080a11 0%, #111526 55%, #0b0d16 100%);
}

.skg-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.skg-hero-content {
    position: relative;
    z-index: 2;
    padding: 75px 0;
    max-width: 760px;
}

.skg-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(143,124,255,.35);
    background: rgba(108,92,231,.12);
    border-radius: 50px;
    color: #bdb4ff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 20px;
}

.skg-hero h1 {
    color: #fff;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -2px;
}

.skg-hero h1 span {
    color: #9a89ff;
}

.skg-hero p {
    color: #b6bed0;
    font-size: 18px;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 0 30px;
}

.skg-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 700;
    transition: .2s ease;
}

.skg-btn-primary {
    background: var(--game-accent);
    color: #fff !important;
}

.skg-btn-primary:hover {
    background: var(--game-accent-2);
    color: #fff !important;
    transform: translateY(-2px);
}

.skg-btn-dark {
    background: rgba(255,255,255,.07);
    border: 1px solid var(--game-border);
    color: #fff !important;
}

.skg-btn-dark:hover {
    background: rgba(255,255,255,.12);
}

/* =========================================================
   SEARCH
   ========================================================= */

.skg-search-area {
    position: relative;
    margin-top: -28px;
    z-index: 5;
}

.skg-search-box {
    background: #131827;
    border: 1px solid var(--game-border);
    border-radius: 15px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    display: flex;
    gap: 10px;
}

.skg-search-box input {
    flex: 1;
    min-width: 0;
    height: 52px;
    background: #0b0f1b !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 0 18px;
    font-size: 15px;
    outline: none;
}

.skg-search-box input::placeholder {
    color: #778096;
}

.skg-search-btn {
    width: 120px;
    border: 0;
    border-radius: 10px;
    background: var(--game-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.skg-section {
    padding: 70px 0 20px;
}

.skg-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.skg-section-header h2 {
    color: #fff;
    margin: 0;
    font-size: 30px;
    font-weight: 800;
}

.skg-section-header p {
    color: var(--game-muted);
    margin: 7px 0 0;
}

.skg-view-all {
    color: #a99cff !important;
    font-weight: 700;
    text-decoration: none !important;
}

/* =========================================================
   CATEGORIES
   ========================================================= */

.skg-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.skg-category {
    flex: 0 0 auto;
    padding: 11px 18px;
    background: #131827;
    border: 1px solid var(--game-border);
    border-radius: 50px;
    color: #cbd1df !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.skg-category:hover,
.skg-category.active {
    background: var(--game-accent);
    border-color: var(--game-accent);
    color: #fff !important;
}

/* =========================================================
   GAME GRID
   ========================================================= */

.skg-game-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.skg-game-card {
    background: var(--game-card);
    border: 1px solid var(--game-border);
    border-radius: var(--game-radius);
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.skg-game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(143,124,255,.45);
    box-shadow: 0 15px 40px rgba(0,0,0,.3);
}

.skg-game-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0d1019;
}

.skg-game-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.skg-game-card:hover .skg-game-thumb img {
    transform: scale(1.06);
}

.skg-game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5,7,12,.55);
    opacity: 0;
    transition: .2s ease;
}

.skg-game-card:hover .skg-game-overlay {
    opacity: 1;
}

.skg-play-small {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--game-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.skg-game-info {
    padding: 15px;
}

.skg-game-category {
    display: inline-block;
    color: #9e91ff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 7px;
}

.skg-game-title {
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none !important;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skg-play-btn {
    width: 100%;
    border: 0;
    height: 40px;
    margin-top: 12px;
    border-radius: 8px;
    background: rgba(108,92,231,.14);
    border: 1px solid rgba(108,92,231,.25);
    color: #c5bdff;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.skg-play-btn:hover {
    background: var(--game-accent);
    color: #fff;
}

/* =========================================================
   FEATURED
   ========================================================= */

.skg-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.skg-featured-main {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border-radius: 18px;
    background: #121624;
    border: 1px solid var(--game-border);
}

.skg-featured-main img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.skg-featured-main:after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(4,5,10,.95));
}

.skg-featured-content {
    position: absolute;
    z-index: 2;
    left: 30px;
    right: 30px;
    bottom: 28px;
}

.skg-featured-content span {
    color: #b8aeff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.skg-featured-content h3 {
    color: #fff;
    font-size: 30px;
    margin: 7px 0 15px;
}

.skg-featured-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.skg-featured-side .skg-game-card {
    min-width: 0;
}

/* =========================================================
   ADS
   ========================================================= */

.skg-ad {
    padding: 45px 0 10px;
}

.skg-ad-box {
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #0f1320;
    border: 1px solid var(--game-border);
    border-radius: 12px;
}

.skg-ad-box img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   GAME MODAL
   ========================================================= */

.skg-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    background: rgba(0,0,0,.92);
    padding: 20px;
}

.skg-modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.skg-modal-inner {
    width: min(1200px, 100%);
    height: min(850px, 94vh);
    background: #090b12;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 100px rgba(0,0,0,.7);
}

.skg-modal-header {
    height: 58px;
    flex: 0 0 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #121624;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.skg-modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.skg-modal-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.skg-game-frame {
    flex: 1;
    min-height: 0;
    background: #000;
}

.skg-game-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* =========================================================
   EMPTY
   ========================================================= */

.skg-empty {
    padding: 50px 20px;
    text-align: center;
    background: #111522;
    border: 1px solid var(--game-border);
    border-radius: 15px;
    color: #8992a8;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199px) {
    .skg-game-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {

    .skg-game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .skg-featured {
        grid-template-columns: 1fr;
    }

    .skg-featured-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skg-hero {
        min-height: 370px;
    }
}

@media (max-width: 767px) {

    .skg-container {
        width: min(100% - 20px, 1280px);
    }

    .skg-hero-content {
        padding: 60px 0;
    }

    .skg-hero h1 {
        letter-spacing: -1px;
    }

    .skg-hero p {
        font-size: 16px;
    }

    .skg-search-box {
        padding: 8px;
    }

    .skg-search-btn {
        width: 54px;
        font-size: 0;
    }

    .skg-search-btn:after {
        content: "⌕";
        font-size: 20px;
    }

    .skg-game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .skg-game-info {
        padding: 12px;
    }

    .skg-game-title {
        font-size: 14px;
    }

    .skg-featured-main {
        min-height: 300px;
    }

    .skg-featured-main img {
        min-height: 300px;
    }

    .skg-featured-side {
        gap: 12px;
    }

    .skg-section {
        padding-top: 50px;
    }

    .skg-section-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 420px) {

    .skg-game-grid {
        grid-template-columns: 1fr 1fr;
    }

    .skg-featured-side {
        grid-template-columns: 1fr 1fr;
    }

    .skg-featured-content {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .skg-featured-content h3 {
        font-size: 22px;
    }
}
