/* ============================================
   CASINO PAGES CSS - Slot, Live Casino, Virtual Sports
   2-Column Layout: Sidebar + Main Content
   ============================================ */

/* ============ MAIN LAYOUT ============ */
.casino-main {
    margin-top: var(--total-header);
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - var(--total-header));
}

/* ============ CASINO SIDEBAR ============ */
.casino-sidebar {
    background: linear-gradient(180deg, #0a0b10 0%, #0d0e14 50%, #0a0b10 100%);
    border-right: 1px solid rgba(255,255,255,0.04);
    overflow-y: auto;
    max-height: calc(100vh - var(--total-header));
    position: sticky;
    top: var(--total-header);
}

.casino-sidebar::-webkit-scrollbar { width: 3px; }
.casino-sidebar::-webkit-scrollbar-track { background: transparent; }
.casino-sidebar::-webkit-scrollbar-thumb { background: rgba(191,23,47,0.3); border-radius: 10px; }

/* Sidebar Title */
.sidebar-title {
    padding: 14px 16px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: var(--primary);
    font-size: 12px;
}

/* Provider Grid - 2 column logo cards */
.provider-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 6px;
}

.provider-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    min-height: 46px;
    position: relative;
    overflow: hidden;
}

.provider-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(191,23,47,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.provider-item:hover::before {
    opacity: 1;
}

.provider-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
    transform: scale(1.02);
}

.provider-item.active {
    background: linear-gradient(135deg, rgba(191,23,47,0.12) 0%, rgba(191,23,47,0.04) 100%);
    border-color: rgba(191,23,47,0.25);
    box-shadow: 0 0 16px rgba(191,23,47,0.12), inset 0 0 20px rgba(191,23,47,0.05);
}

.provider-item.active::before {
    opacity: 1;
}

.provider-item img {
    max-width: 85%;
    max-height: 22px;
    object-fit: contain;
    filter: brightness(0.5) grayscale(0.6);
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.provider-item:hover img {
    filter: brightness(0.85) grayscale(0.15);
    transform: scale(1.05);
}

.provider-item.active img {
    filter: brightness(1) grayscale(0) drop-shadow(0 0 6px rgba(191,23,47,0.3));
}

.provider-item span {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    transition: all 0.25s;
    position: relative;
    z-index: 1;
}

.provider-item:hover span {
    color: rgba(255,255,255,0.75);
}

.provider-item.active span {
    color: #fff;
    text-shadow: 0 0 8px rgba(191,23,47,0.4);
}


/* ============ CASINO CONTENT ============ */
.casino-content {
    background: var(--bg-main);
    overflow-y: auto;
}

/* Casino Banner */
.casino-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.casino-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.casino-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.casino-banner-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.casino-banner-subtitle {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.casino-banner-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    line-height: 1.6;
}

/* Winner Ticker */
.winner-ticker {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.winner-ticker::-webkit-scrollbar { height: 0; }

.winner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    padding: 6px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.winner-item:hover {
    border-color: var(--primary-border);
}

.winner-thumb {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
}

.winner-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.winner-game {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.winner-name {
    font-size: 10px;
    color: var(--text-muted);
}

.winner-amount {
    font-size: 12px;
    font-weight: 700;
    color: #2ecc40;
}

/* Game Sections */
.casino-game-section {
    padding: 24px 20px;
}

.casino-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.casino-section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.casino-show-all-btn {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.casino-show-all-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* Casino Game Grid */
.casino-game-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.casino-game-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.casino-game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.casino-game-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.casino-game-card:hover img {
    transform: scale(1.05);
}

.casino-game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 32px;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.casino-game-card:hover .casino-game-card-overlay {
    opacity: 1;
}

.casino-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    transform: scale(0.7);
    transition: transform 0.3s;
    box-shadow: 0 0 30px var(--primary-glow);
}

.casino-game-card:hover .casino-play-btn {
    transform: scale(1);
}

.casino-game-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.badge-popular {
    background: var(--primary);
    color: #fff;
}

.badge-new {
    background: #c20000;
    color: #fff;
}

.badge-hot {
    background: #ff6b00;
    color: #fff;
}

.casino-provider-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    z-index: 2;
}

.casino-game-name {
    padding: 10px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    background: linear-gradient(180deg, #1a1c24, #12131a);
    letter-spacing: 0.3px;
    border-top: 1px solid rgba(191,23,47,0.15);
}

/* ============ MOBILE PROVIDER BAR ============ */
.mobile-provider-bar {
    display: none;
    padding: 10px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
}
.mobile-provider-bar::-webkit-scrollbar { display: none; }

.mobile-provider-chip {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--font-heading);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-provider-chip:hover {
    border-color: rgba(191,23,47,0.3);
    background: rgba(191,23,47,0.06);
}

.mobile-provider-chip.active {
    background: linear-gradient(135deg, var(--primary), #d91e3a);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 12px rgba(191,23,47,0.4);
}

.mobile-provider-chip img {
    height: 14px;
    filter: brightness(0.8) grayscale(0.3);
}

.mobile-provider-chip.active img {
    filter: brightness(1.2) grayscale(0);
}

/* Mobile search bar */
.mobile-search-bar {
    display: none;
    padding: 8px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.mobile-search-bar input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    font-family: var(--font-body);
}

.mobile-search-bar input::placeholder { color: var(--text-muted); }
.mobile-search-bar input:focus { border-color: var(--primary-border); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1400px) {
    .casino-game-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1100px) {
    .casino-game-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .casino-main { grid-template-columns: 1fr; }
    .casino-sidebar { display: none; }
    .mobile-provider-bar { display: flex; }
    .mobile-search-bar { display: block; }
    .casino-game-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .casino-banner-title { font-size: 22px; }
    .casino-banner-subtitle { font-size: 16px; }
    .casino-section-title { font-size: 16px; }
    .casino-game-section { padding: 16px 12px; }
}

@media (max-width: 600px) {
    .casino-game-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .casino-game-section { padding: 12px 8px; }
    .casino-game-name { font-size: 10px; padding: 6px 4px; }
    .casino-game-card { border-radius: 8px; }
    .casino-play-btn { width: 40px; height: 40px; font-size: 16px; }
    .casino-section-title { font-size: 14px; }
    .casino-show-all-btn { font-size: 10px; padding: 6px 10px; }
}

/* ============ DESKTOP SEARCH BAR ============ */
.desktop-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 20px;
    margin: 16px 0;
    transition: border-color 0.3s, background 0.3s;
}
.desktop-search-bar:focus-within {
    border-color: #bf172f;
    background: rgba(191,23,47,0.05);
}
.desktop-search-bar i {
    color: rgba(255,255,255,0.3);
    font-size: 16px;
}
.desktop-search-bar:focus-within i {
    color: #bf172f;
}
.desktop-search-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
}
.desktop-search-bar input::placeholder {
    color: rgba(255,255,255,0.3);
}
@media (max-width: 768px) {
    .desktop-search-bar { display: none; }
}

/* ============ SKELETON LOADING ============ */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton-card {
    border-radius: 12px;
    overflow: hidden;
    background: #14151d;
    border: 1px solid rgba(255,255,255,0.04);
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(90deg, #14151d 0%, #1e2030 40%, #14151d 80%);
    background-size: 800px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-text {
    height: 14px;
    margin: 10px 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #14151d 0%, #1e2030 40%, #14151d 80%);
    background-size: 800px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-text-short {
    width: 60%;
}

.skeleton-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 60px;
    height: 18px;
    border-radius: 4px;
    background: linear-gradient(90deg, #14151d 0%, #1e2030 40%, #14151d 80%);
    background-size: 800px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.skeleton-title {
    height: 22px;
    width: 180px;
    border-radius: 6px;
    background: linear-gradient(90deg, #14151d 0%, #1e2030 40%, #14151d 80%);
    background-size: 800px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-btn {
    height: 28px;
    width: 70px;
    border-radius: 6px;
    background: linear-gradient(90deg, #14151d 0%, #1e2030 40%, #14151d 80%);
    background-size: 800px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}
