/*
=============================================
New Layout CSS - basketballgame.io Style
=============================================
*/

/* ============ CSS Variables ============ */
:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1f2937;
    --bg-sidebar: #0f0f23;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-color: #ff6b35;
    --accent-hover: #ff8c5a;
    --purple: #6366f1;
    --purple-light: #818cf8;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
    --box-shadow-hover: 0 8px 30px rgba(99, 102, 241, 0.25);
    --sidebar-width: 70px;
    --sidebar-expanded: 240px;
    --right-sidebar-width: 280px;
    --header-height: 60px;
    --game-frame-height: 480px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-sidebar: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

/* ============ Base Reset ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.new-layout {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============ Main Layout Container ============ */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============ Left Sidebar ============ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    transition: var(--transition);
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar:hover {
    width: var(--sidebar-expanded);
    box-shadow: var(--box-shadow);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.sidebar-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar-logo img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
}

.sidebar-logo span {
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-color);
    opacity: 0;
    max-width: 0;
    margin-left: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover .sidebar-logo span,
.sidebar.open .sidebar-logo span {
    opacity: 1;
    max-width: 200px;
    margin-left: 12px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 10px;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 15px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    margin: 0;
}

.sidebar:hover .nav-title,
.sidebar.open .nav-title {
    opacity: 1;
    max-height: 40px;
    margin-bottom: 5px;
}

.sidebar-item,
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-item:hover,
.sidebar-item.active,
.nav-item:hover,
.nav-item.active {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: #fff;
}

.sidebar-item svg,
.sidebar-item i,
.nav-item svg,
.nav-item i {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-item span,
.nav-item span {
    margin-left: 15px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    max-width: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover .sidebar-item span,
.sidebar:hover .nav-item span,
.sidebar.open .sidebar-item span,
.sidebar.open .nav-item span {
    opacity: 1;
    max-width: 200px;
}

.sidebar-divider,
.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 15px;
}

/* ============ Sidebar Footer ============ */
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 10px;
    margin-top: auto;
}

.sidebar-footer-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.sidebar-footer-item:hover {
    color: var(--purple-light);
    background: rgba(99, 102, 241, 0.1);
}

.sidebar-footer-item i {
    font-size: 16px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-footer-item span {
    margin-left: 15px;
    opacity: 0;
    max-width: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover .sidebar-footer-item span,
.sidebar.open .sidebar-footer-item span {
    opacity: 1;
    max-width: 200px;
}

.sidebar-games-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 15px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.sidebar:hover .sidebar-games-title,
.sidebar.open .sidebar-games-title {
    opacity: 1;
    max-height: 40px;
}

.sidebar-game-info {
    display: flex;
    flex-direction: column;
    opacity: 0;
    max-width: 0;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar:hover .sidebar-game-info,
.sidebar.open .sidebar-game-info {
    opacity: 1;
    max-width: 150px;
}

.sidebar-copyright {
    padding: 15px;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0;
    max-width: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover .sidebar-copyright,
.sidebar.open .sidebar-copyright {
    opacity: 0.6;
    max-width: 200px;
}

/* ============ Main Content Area ============ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

/* ============ Top Header ============ */
.top-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 30px;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.header-center {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex: 1;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.header-logo:hover {
    opacity: 0.8;
}

.header-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.header-logo span {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.header-search {
    width: 100%;
    max-width: 600px;
}

.search-box {
    display: flex;
    align-items: center;
    flex-direction: row;
    /* Icon on the left by default, but let's see */
    background: rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    padding: 6px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

/* Match the image: magnifying glass on the right */
.search-box {
    flex-direction: row;
}

.search-box i {
    color: var(--text-secondary);
    font-size: 14px;
    order: 2;
    /* Move icon after input */
    margin-left: 10px;
}

.search-box input {
    flex: 1;
    order: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    padding: 8px 0;
}

.search-box:focus-within {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    padding: 5px 10px;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.btn-home {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 15px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-home:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}

/* mobile-logo kept for mobile menu visibility if needed elsewhere */
.mobile-logo {
    display: none;
}

.mobile-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.mobile-logo span {
    font-weight: 800;
    font-size: 18px;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

/* ============ Search Results Dropdown ============ */
.header-search {
    position: relative;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.search-result-item span {
    font-size: 14px;
    font-weight: 500;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.search-box svg,
.search-box i {
    color: var(--text-secondary);
    font-size: 18px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--purple);
    color: #fff;
}

/* ============ Page Content ============ */
.page-content {
    padding: 30px;
}

/* ============ Game Section ============ */
.game-section {
    max-width: 1400px;
    margin: 0 auto;
}

/* ============ Game Frame Container ============ */
.game-frame-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.game-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(129, 140, 248, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-title-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.game-title-area h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.game-rating i {
    font-size: 12px;
}

.game-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--purple);
    color: #fff;
    transform: translateY(-2px);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

/* Game Iframe Area - Smaller Size */
.game-iframe-wrapper {
    position: relative;
    width: 100%;
    height: var(--game-frame-height);
    background: #000;
    border-radius: 0;
    /* No rounding here, let the toolbar handle the bottom */
}

.game-iframe-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    z-index: 9999;
}

.game-iframe-wrapper iframe,
.game-iframe-wrapper .game-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Play Button Overlay */
.game-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    cursor: pointer;
}

.game-placeholder .game-thumb {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.play-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.play-btn i {
    font-size: 20px;
}

/* ============ Games Grid ============ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent-color);
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border-radius: 25px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: var(--purple);
    color: #fff;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.game-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-card);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3),
        0 0 0 2px rgba(99, 102, 241, 0.5);
}

.game-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* Square aspect ratio */
    overflow: hidden;
}

.game-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: brightness(1);
}

.game-card:hover .game-card-thumb img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

/* Gradient overlay on hover */
.game-card-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0) 0%,
            rgba(99, 102, 241, 0.1) 50%,
            rgba(99, 102, 241, 0.3) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.game-card:hover .game-card-thumb::before {
    opacity: 1;
}

/* Shine effect on hover */
.game-card-thumb::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg) translateX(-100%);
    transition: none;
    z-index: 3;
    pointer-events: none;
}

.game-card:hover .game-card-thumb::after {
    animation: cardShine 0.6s ease-out forwards;
}

@keyframes cardShine {
    from {
        transform: rotate(30deg) translateX(-100%);
    }

    to {
        transform: rotate(30deg) translateX(100%);
    }
}

.game-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    letter-spacing: 0.5px;
}

.game-card-badge.hot {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3);
}

.game-card-badge.popular {
    background: linear-gradient(135deg, #00b4db, #0083b0);
    box-shadow: 0 4px 15px rgba(0, 180, 219, 0.3);
}

.game-card-badge i {
    font-size: 10px;
}

.game-card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 4;
}

.game-card-info {
    padding: 15px;
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.game-card:hover .game-card-info {
    background: linear-gradient(to right, var(--bg-card), rgba(99, 102, 241, 0.1));
}

.game-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.game-card:hover .game-card-title {
    color: var(--purple-light);
}

.game-card-category {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.game-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Remove old play overlay - not needed anymore */
.game-card-overlay {
    display: none;
}

/* ============ Content Section ============ */
.content-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
    color: var(--text-primary);
}

.content-section h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    padding-bottom: 15px;
    font-weight: 700;
}

.content-section h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #6366f1;
    /* Premium Indigo */
    font-weight: 600;
}

.content-section p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
}

.content-section ul,
.content-section ol {
    padding-left: 20px;
    margin-bottom: 25px;
}

.content-section li {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
    position: relative;
}

.content-section li strong {
    color: var(--text-primary);
}

.content-section a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.content-section a:hover {
    text-decoration: underline;
}

/* ============ Comments Section ============ */
.comments-container {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
}

.comments-container h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-container h3 i {
    color: var(--purple);
}

.comment-item {
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border-left: 3px solid var(--purple);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: var(--purple-light);
}

.comment-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.comment-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 6px;
}

.comment-action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--purple-light);
}

.comment-action-btn.like:hover {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.comment-action-btn.dislike:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.reply-form-container {
    margin-top: 15px;
}

.reply-form {
    padding: 15px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.reply-form textarea {
    width: 100%;
    min-height: 80px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 10px;
    margin-bottom: 10px;
    resize: vertical;
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-reply-btn,
.submit-reply-btn {
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-reply-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.submit-reply-btn {
    background: var(--purple);
    border: none;
    color: #fff;
}

.comment-replies {
    margin-left: 40px;
    margin-top: 15px;
    border-left: 2px solid rgba(99, 102, 241, 0.2);
    padding-left: 20px;
}

.comment-item.reply {
    border-left: none;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
}

.comment-form {
    margin-top: 25px;
    padding: 25px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
}

.comment-form h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* ============ Footer ============ */
.new-footer {
    background: var(--bg-secondary);
    padding: 40px 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--purple);
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============ Responsive Design ============ */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        width: var(--sidebar-expanded);
    }

    .main-content {
        margin-left: 0;
    }

    .top-header {
        padding: 0 15px;
    }

    .header-search {
        display: none;
    }

    .mobile-logo {
        display: flex;
    }

    .mobile-logo span {
        font-size: 16px;
        /* Slightly smaller for 768px */
    }

    .btn-home span {
        display: none;
    }

    .btn-home {
        padding: 10px;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .btn-home i {
        margin: 0;
        font-size: 18px;
    }

    .page-content {
        padding: 15px;
    }

    .game-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .game-title-area {
        flex-direction: column;
    }

    .game-controls {
        width: 100%;
        justify-content: center;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .content-section,
    .comments-container {
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mobile-logo span {
        display: none;
        /* Only show icon on very small screens to save space */
    }

    .top-header {
        padding: 0 10px;
    }

    .header-right {
        gap: 8px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-card-info {
        padding: 10px;
    }

    .game-card-title {
        font-size: 12px;
    }

    .play-btn {
        padding: 15px 35px;
        font-size: 16px;
    }
}

/* ============ Mobile Menu Toggle ============ */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* ============ Overlay for mobile sidebar ============ */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.show {
    display: block;
}

/* ============ Animations ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.game-card:nth-child(1) {
    animation-delay: 0.05s;
}

.game-card:nth-child(2) {
    animation-delay: 0.1s;
}

.game-card:nth-child(3) {
    animation-delay: 0.15s;
}

.game-card:nth-child(4) {
    animation-delay: 0.2s;
}

.game-card:nth-child(5) {
    animation-delay: 0.25s;
}

.game-card:nth-child(6) {
    animation-delay: 0.3s;
}

.game-card:nth-child(7) {
    animation-delay: 0.35s;
}

.game-card:nth-child(8) {
    animation-delay: 0.4s;
}

.game-card:nth-child(9) {
    animation-delay: 0.45s;
}

.game-card:nth-child(10) {
    animation-delay: 0.5s;
}

.game-card:nth-child(11) {
    animation-delay: 0.55s;
}

.game-card:nth-child(12) {
    animation-delay: 0.6s;
}

.game-card:nth-child(13) {
    animation-delay: 0.65s;
}

.game-card:nth-child(14) {
    animation-delay: 0.7s;
}

.game-card:nth-child(15) {
    animation-delay: 0.75s;
}

.game-card:nth-child(16) {
    animation-delay: 0.8s;
}

/* ============ Exit Fullscreen Button ============ */
.exit-fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.exit-fullscreen-btn:hover {
    background: var(--accent-color);
}

.game-iframe-wrapper.fullscreen .exit-fullscreen-btn {
    display: flex;
}

/* ============ Game Toolbar (Redesign) ============ */
.game-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: var(--bg-card);
    border-radius: 0 0 12px 12px;
    height: 65px;
    margin-top: -1px;
    z-index: 10;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .game-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-left img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
}

.toolbar-left .game-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-left .game-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.2;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Toolbar Buttons (Shared Styles) */
.toolbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border-radius: 10px;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    padding: 4px 8px;
    position: relative;
}

[data-theme="light"] .toolbar-btn {
    background: #f1f5f9;
    color: #475569;
}

.toolbar-btn:hover {
    transform: translateY(-2px);
    background: var(--purple);
    color: #fff !important;
}

.toolbar-btn i {
    font-size: 16px;
    margin-bottom: 2px;
}

.toolbar-btn .count,
.toolbar-btn .btn-label {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
    position: static;
    display: block;
    margin-top: 2px;
}

/* Specific Button Colors on Active/Hover */
.toolbar-btn.like-btn.active,
.toolbar-btn.like-btn:hover {
    color: #4ade80 !important;
}

.toolbar-btn.dislike-btn.active,
.toolbar-btn.dislike-btn:hover {
    color: #f87171 !important;
}

.toolbar-btn.fav-btn.active,
.toolbar-btn.fav-btn:hover {
    color: #fb7185 !important;
}

/* Fullscreen and Tool Buttons */
.toolbar-btn.tool-btn {
    width: 48px;
}

/* Consolidated Mobile adjustments */
@media (max-width: 768px) {
    .game-toolbar {
        justify-content: flex-start;
        padding: 12px 15px;
        gap: 15px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .rating-label {
        display: none;
    }

    .fullscreen-btn span {
        display: none;
    }

    .fullscreen-btn {
        padding: 10px;
        width: 44px;
        height: 44px;
        justify-content: center;
    }

    .rating-count {
        display: none;
    }
}

/* ============ Scrollbar Styling ============ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-light);
}

/* ============ Utility Classes ============ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

/* ============ Sidebar Games Section ============ */
.sidebar-games {
    padding: 0 10px;
    margin-top: 20px;
}

.sidebar-games-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 15px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.sidebar:hover .sidebar-games-title,
.sidebar.open .sidebar-games-title {
    opacity: 1;
    max-height: 40px;
}

.sidebar-game-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 5px;
}

.sidebar-game-item:hover {
    background: rgba(99, 102, 241, 0.2);
}

.sidebar-game-thumb,
.sidebar-game-item img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}

.sidebar-game-info {
    display: flex;
    flex-direction: column;
    opacity: 0;
    max-width: 0;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar:hover .sidebar-game-info,
.sidebar.open .sidebar-game-info {
    opacity: 1;
    max-width: 150px;
}

.sidebar-game-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-game-rating {
    font-size: 11px;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 3px;
}

.sidebar-game-rating i {
    font-size: 10px;
}

/* ============ Two Column Game Layout ============ */
.game-layout {
    display: grid;
    grid-template-columns: 1fr var(--right-sidebar-width);
    gap: 25px;
    align-items: start;
}

.game-main-column {
    min-width: 0;
}

@media (max-width: 1200px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
}

/* ============ Right Sidebar ============ */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding-right: 5px;
}

@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
}

.right-sidebar-section {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.right-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.right-sidebar-title i {
    color: var(--accent-color);
    font-size: 14px;
}

.right-game-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.right-game-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.right-game-item:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
}

.right-game-thumb {
    width: 55px;
    height: 55px;
    min-width: 55px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 12px;
}

.right-game-info {
    flex: 1;
    overflow: hidden;
}

.right-game-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.right-game-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.right-game-rating {
    font-size: 12px;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 3px;
}

.right-game-rating i {
    font-size: 10px;
}

.right-game-category {
    font-size: 11px;
    color: var(--text-secondary);
    background: rgba(99, 102, 241, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Hot badge for right sidebar */
.right-game-hot {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent-color);
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* ============ Compact Game Cards for Sidebar ============ */
.sidebar-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mini-game-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mini-game-card:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4),
        0 0 0 2px rgba(99, 102, 241, 0.6);
}

.mini-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
    filter: brightness(1);
}

.mini-game-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.15);
}

/* Shine effect on mini cards */
.mini-game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg) translateX(-100%);
    z-index: 3;
    pointer-events: none;
}

.mini-game-card:hover::before {
    animation: cardShine 0.5s ease-out forwards;
}

.mini-game-card a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* ============ Smaller Game Frame Adjustments ============ */
.game-frame-container.compact {
    max-width: 100%;
}

.game-frame-container.compact .game-iframe-wrapper {
    height: 450px;
}

.game-frame-container.compact .game-placeholder .game-thumb {
    width: 120px;
    height: 120px;
}

.game-frame-container.compact .play-btn {
    padding: 14px 35px;
    font-size: 16px;
}

/* ============ Additional Mobile Responsiveness ============ */
@media (max-width: 768px) {
    .game-layout {
        grid-template-columns: 1fr;
    }

    .right-sidebar {
        display: none;
    }

    .sidebar-games {
        display: none;
    }

    .game-frame-container.compact .game-iframe-wrapper {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .game-frame-container.compact .game-iframe-wrapper {
        height: 280px;
    }

    .game-frame-container.compact .game-placeholder .game-thumb {
        width: 80px;
        height: 80px;
    }

    .game-frame-container.compact .play-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* ============ Section Titles ============ */
.section-title {
    font-size: 24px;
    font-weight: 800;
    margin: 40px 0 20px;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--purple), var(--accent-color));
    border-radius: 3px;
}

/* ============ mini games grid ============ */
.games-grid.mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.games-grid.mini .game-card-title {
    font-size: 13px;
}

/* ============ Comments Section ============ */
.comments-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 40px;
    box-shadow: var(--box-shadow);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.comment-item {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--purple);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author {
    font-weight: 700;
    color: var(--purple-light);
}

.comment-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.comment-badge.admin {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.2);
}

.comment-replies {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.comment-item.reply {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-left: none;
    border-radius: 12px;
}

.comment-badge i {
    font-size: 10px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-text {
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.comment-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.comment-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    transition: var(--transition);
}

.comment-action-btn:hover {
    color: var(--purple-light);
}

.comment-action-btn.like.active {
    color: #4ade80;
}

/* Reply Form */
.reply-form {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.reply-form textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    resize: vertical;
    min-height: 60px;
}

.reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-reply-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.submit-reply-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

/* Delete Button */
.comment-action-btn.delete {
    color: #ef4444;
    opacity: 0.7;
}

.comment-action-btn.delete:hover {
    color: #dc2626;
    opacity: 1;
    background: rgba(239, 68, 68, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-action-btn .count {
    font-size: 12px;
}

.comment-action-btn.reply {
    margin-left: auto;
    font-weight: 600;
}

.comment-action-btn.delete {
    color: #ef4444;
    /* Red color for delete */
    margin-left: 8px;
    /* Spacing from reply button */
    opacity: 0.6;
    transition: all 0.2s;
}

.comment-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    opacity: 1;
}

.comment-form {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.comment-form h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.form-row {
    margin-bottom: 15px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.submit-btn {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* ============ Category Header Section ============ */
.category-header-section {
    background: linear-gradient(135deg, var(--bg-sidebar) 0%, var(--bg-secondary) 100%);
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

[data-theme="light"] .category-header-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-header-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--purple);
    filter: blur(80px);
    opacity: 0.1;
    z-index: 1;
}

.category-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.category-title i {
    color: var(--purple-light);
    font-size: 32px;
}

.category-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.category-description p {
    margin-bottom: 15px;
}

.category-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .category-header-section {
        padding: 40px 25px;
        border-radius: 15px;
    }

    .category-title {
        font-size: 32px;
    }

    .category-description {
        font-size: 14px;
    }
}

/* ============ Sitemap / Explore More Games ============ */
.sitemap-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 50px 40px;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--box-shadow);
}

[data-theme="light"] .sitemap-section {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.sitemap-column h4 {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.2);
}

.sitemap-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-column ul li {
    margin-bottom: 12px;
}

.sitemap-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
}

.sitemap-column ul li a:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sitemap-section {
        padding: 40px 20px;
    }
}