/*
Theme Name: Indotex Theme Game HTML
Author: Akub Saputra
Version: 2.0
*/

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FIX LINK ERROR GLOBAL */
a {
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
    position: relative;
    z-index: 5;
}

/* BODY */
body {
    font-family: Arial, sans-serif;
    background: #0b1c2c;
    color: #fff;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
}

/* ================= HEADER ================= */
.site-header {
    background: linear-gradient(90deg,#1dd1a1,#5f27cd);
    padding: 15px 20px;
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.search-box input {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
}

.header-menu a {
    margin-left: 15px;
    color: #fff;
}

/* ================= HERO ================= */
.hero {
    padding: 25px;
    background: linear-gradient(90deg,#1dd1a1,#5f27cd);
    border-radius: 12px;
    margin: 20px;
}

/* ================= SECTION ================= */
.game-section {
    margin: 25px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    align-items: center;
}

.section-header h2 {
    font-size: 20px;
}

.section-header a {
    color: #1dd1a1;
}

/* ================= ROW (SLIDER) ================= */
.game-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px 20px;
}

.game-row::-webkit-scrollbar {
    height: 6px;
}

.game-row::-webkit-scrollbar-thumb {
    background: #1dd1a1;
    border-radius: 10px;
}

/* ITEM */
.game-item {
    min-width: 180px;
    background: #11263c;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

.game-item:hover {
    transform: scale(1.05);
}

.game-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.game-item p {
    padding: 10px;
    font-size: 14px;
}

/* ================= GRID ================= */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px;
}

.game-card {
    background: #11263c;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.game-card h3 {
    font-size: 14px;
    padding: 10px;
}

/* ================= SINGLE ================= */
.game-single {
    padding: 20px;
}

.game-title {
    margin-bottom: 15px;
}

/* PLAYER */
.game-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.game-frame iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
}

/* BUTTON */
.btn-fullscreen {
    margin-top: 10px;
    padding: 10px 15px;
    background: #1dd1a1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* INFO */
.game-info {
    margin-top: 30px;
    background: #11263c;
    padding: 20px;
    border-radius: 12px;
}

/* ================= FOOTER ================= */
.site-footer {
    background: #081522;
    margin-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 20px;
}

.footer-menu ul {
    list-style: none;
}

.footer-menu a {
    color: #aaa;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #12263a;
    font-size: 14px;
    color: #aaa;
}

/* ================= FIX OVERLAY BUG ================= */
body * {
    pointer-events: auto !important;
}

/* HAPUS INTERFERENSI */
div, section {
    pointer-events: auto;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 20px;
}

.game-card {
    background: #11263c;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.game-card h3 {
    font-size: 13px;
    padding: 8px;
}

.section {
    margin: 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 20px;
}

.section-header a {
    color: #00d4ff;
    text-decoration: none;
    font-size: 14px;
}

/* SLIDER */
.slider-wrapper {
    position: relative;
}

.game-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.game-slider::-webkit-scrollbar {
    display: none;
}

/* CARD */
.card {
    min-width: 180px;
    background: #0f1c2e;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: 0.2s;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.card span {
    display: block;
    padding: 8px;
    font-size: 14px;
}

/* BUTTON */
.slide-btn {
    position: absolute;
    top: 35%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 25px;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 2;
}

.slide-btn.left {
    left: 0;
}

.slide-btn.right {
    right: 0;
}