/* ═══════════════════════════════════════════
   PAGE — Home Desktop (slots layout)
   Extracted from sistem/views/home_desktop.php
   ═══════════════════════════════════════════ */

/* ── SLOTS LAYOUT — SIDEBAR + CONTENT ── */
.slots-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 0;
    min-height: calc(100vh - 180px);
}

/* ── Left Sidebar ── */
.provider-sidebar {
    background: #0d0d0d;
    border-right: 1px solid rgba(201, 168, 76, 0.08);
    padding: 0;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(201,168,76,0.15) transparent;
}
.provider-sidebar::-webkit-scrollbar { width: 4px; }
.provider-sidebar::-webkit-scrollbar-track { background: transparent; }
.provider-sidebar::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.15); border-radius: 4px; }

.sidebar-header {
    padding: 18px 16px 12px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.06);
}
.sidebar-tab-row {
    display: flex; gap: 0; margin-bottom: 12px;
}
.sidebar-tab {
    flex: 1; text-align: center; padding: 8px 4px;
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(255,255,255,0.35);
    border-bottom: 2px solid transparent;
    cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.sidebar-tab.active { color: #FFD700; border-bottom-color: #C9A84C; }
.sidebar-tab:hover { color: rgba(255,255,255,0.7); }

.provider-search-box {
    display: flex; align-items: center; gap: 8px;
    background: #141414; border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 10px; padding: 8px 12px;
}
.provider-search-box i { color: #C9A84C; font-size: 0.8rem; flex-shrink: 0; }
.provider-search-box input {
    background: transparent; border: none; outline: none;
    color: white; font-size: 0.82rem; width: 100%; font-weight: 500;
}
.provider-search-box input::placeholder { color: rgba(255,255,255,0.25); }

.sidebar-provider-list {
    padding: 8px 10px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.sidebar-provider {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
    padding: 10px 6px; border-radius: 10px;
    text-decoration: none; color: rgba(255,255,255,0.6);
    font-size: 0.72rem; font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(201, 168, 76, 0.04);
    background: rgba(255,255,255,0.02);
    text-align: center; min-height: 68px;
}
.sidebar-provider:hover {
    background: rgba(201, 168, 76, 0.06); color: #fff;
    border-color: rgba(201, 168, 76, 0.08);
}
.sidebar-provider.active {
    background: rgba(201, 168, 76, 0.1); color: #FFD700;
    border-color: rgba(201, 168, 76, 0.2); font-weight: 700;
}
.sidebar-provider-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.sidebar-provider-icon img { width: 100%; height: 100%; object-fit: contain; }
.provider-placeholder {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.06));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.65rem; color: #C9A84C;
    flex-shrink: 0; letter-spacing: 0.5px;
}
.sidebar-provider-name {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%; line-height: 1.2;
}

/* ── Right Content ── */
.slots-content { padding: 20px 24px; }

.game-toolbar {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px; flex-wrap: wrap;
}
.game-search-box {
    display: flex; align-items: center; gap: 10px;
    background: #141414; border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 12px; padding: 10px 18px;
    flex: 1; min-width: 200px; transition: border-color 0.2s;
}
.game-search-box:focus-within { border-color: rgba(201, 168, 76, 0.3); }
.game-search-box i { color: #C9A84C; flex-shrink: 0; }
.game-search-box input {
    background: transparent; border: none; outline: none;
    color: white; font-size: 0.92rem; width: 100%; font-weight: 500;
}
.game-search-box input::placeholder { color: rgba(255,255,255,0.25); }

.random-game-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #C9A84C, #FFD700);
    color: #000; border: none; border-radius: 12px;
    padding: 10px 20px; font-weight: 800; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; transition: transform 0.15s, filter 0.15s; white-space: nowrap;
}
.random-game-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* ── Game Cards ── */
.game-card {
    background-color: #1a1a1a;
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 12px; overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    aspect-ratio: 4/3; will-change: transform;
}
.game-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-color: rgba(201, 168, 76, 0.3); z-index: 10;
}
.game-card:hover img { transform: scale(1.05); filter: brightness(0.4); }
.play-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.25s ease; pointer-events: none; z-index: 5;
}
.game-card:hover .play-overlay { opacity: 1; pointer-events: auto; }

.overlay-game-title {
    color: #fff; font-size: 0.85rem; font-weight: 700;
    text-align: center; margin-bottom: 16px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 2px 6px rgba(0,0,0,0.7); padding: 0 10px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

.overlay-btn {
    background: #FFC900 !important;
    color: #000 !important; padding: 8px 20px !important; border-radius: 8px !important;
    font-weight: 800 !important; text-decoration: none !important;
    transition: transform 0.15s ease !important; font-size: 0.85rem !important;
    box-shadow: 0 4px 10px rgba(201,168,76,0.3) !important; border: none !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: auto !important; margin: 0 !important; text-transform: uppercase !important;
}
.overlay-btn:hover { transform: scale(1.08) !important; color: #000 !important; }
.games-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.active-provider-bar {
    display: flex; align-items: center; gap: 12px;
    background: rgba(201, 168, 76, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 12px; padding: 10px 16px; margin-bottom: 20px;
}
.active-provider-bar .label {
    color: rgba(255,255,255,0.4); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.active-provider-bar .name { color: #FFD700; font-weight: 800; font-size: 0.95rem; }
.active-provider-bar .clear-btn {
    margin-left: auto; color: rgba(255,255,255,0.3);
    font-size: 0.75rem; text-decoration: none; transition: color 0.2s;
}
.active-provider-bar .clear-btn:hover { color: #fff; }

@media (max-width: 992px) {
    .slots-layout { grid-template-columns: 1fr; }
    .provider-sidebar { display: none; }
}

/* ═══════ FEATURED GAMES SECTION ═══════ */
.feat-section {
    position: relative; margin-bottom: 24px; border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(160deg, #111111 0%, #0a0a0a 40%, #0d0d0d 100%);
    border: 1px solid rgba(201, 168, 76, 0.12);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(201,168,76,0.08);
}
.feat-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #C9A84C, #FFD700, #C9A84C, transparent);
    background-size: 200% 100%; animation: featGoldLine 4s ease-in-out infinite; z-index: 3;
}
@keyframes featGoldLine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.feat-section::after {
    content: ''; position: absolute; top: -100px; right: -60px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 65%);
    pointer-events: none; z-index: 0;
}
.feat-inner { position: relative; z-index: 2; padding: 24px 28px 20px; }
.feat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.feat-title-area { display: flex; align-items: center; gap: 14px; }
.feat-icon-box {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #C9A84C, #FFD700);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #000;
    box-shadow: 0 4px 18px rgba(201,168,76,0.4); flex-shrink: 0;
}
.feat-title-text h3 { margin: 0; font-size: 1.25rem; font-weight: 900; color: #fff; letter-spacing: -0.3px; }
.feat-title-text p { margin: 2px 0 0; font-size: 0.75rem; color: rgba(255,255,255,0.35); font-weight: 500; }
.feat-count-badge {
    background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2);
    color: #FFD700; padding: 6px 16px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}
.feat-scroll-wrap { position: relative; }
.feat-scroll {
    display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px;
    scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none;
}
.feat-scroll::-webkit-scrollbar { display: none; }
.feat-card {
    min-width: 200px; width: 200px; border-radius: 14px;
    overflow: hidden; position: relative; flex-shrink: 0;
    cursor: pointer; background: #1a1a1a; aspect-ratio: 4/3;
    border: 1.5px solid rgba(201,168,76,0.08);
    transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.4s, border-color 0.3s;
}
.feat-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(201,168,76,0.15), 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(201,168,76,0.35);
}
.feat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.feat-card:hover img { transform: scale(1.06); filter: brightness(0.35); }
.feat-rank {
    position: absolute; top: 10px; left: 10px; width: 30px; height: 30px;
    border-radius: 10px; background: linear-gradient(135deg, #C9A84C, #FFD700);
    color: #000; font-weight: 900; font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center; z-index: 3;
}
.feat-card-hover {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s ease; z-index: 4; pointer-events: none;
}
.feat-card:hover .feat-card-hover { opacity: 1; pointer-events: auto; }
.feat-play-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #C9A84C, #FFD700);
    color: #000; padding: 10px 24px; border-radius: 25px;
    font-weight: 800; font-size: 0.82rem; text-decoration: none;
    text-transform: uppercase; letter-spacing: 0.5px; transition: transform 0.15s ease;
}
.feat-play-btn:hover { transform: scale(1.08); color: #000; }
.feat-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.15);
    color: #C9A84C; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; transition: background 0.2s, color 0.2s; font-size: 0.85rem;
}
.feat-nav:hover { background: rgba(201,168,76,0.25); color: #FFD700; }
.feat-nav-l { left: -10px; }
.feat-nav-r { right: -10px; }
