
:root {
    --teal-dark: #0a3d3d;
    --teal-medium: #0d5555;
    --teal-light: #106666;
    --gold-accent: #FFD700;
    --orange-accent: #FF8C00;
}

/* Main Layout Structure */
body.casino-theme {
    padding-top: 0 !important;
}

.main-layout {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a3d3d 0%, #0d4d4d 50%, #0a3d3d 100%);
    padding-top: 0;
}

/* Mobile Top Header */
.mobile-top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #0d5555 0%, #0a3d3d 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1040;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.mobile-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.mobile-logo {
    flex: 1;
    text-align: center;
}

.mobile-logo a {
    text-decoration: none;
}

.mobile-logo .logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
}

.mobile-actions {
    display: flex;
    gap: 8px;
}

.mobile-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-action-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

/* Mobile User Info Bar */
.mobile-user-info {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(13, 85, 85, 0.95) 0%, rgba(10, 61, 61, 0.95) 100%);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1039;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-welcome {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.user-welcome i {
    color: #FFD700;
    font-size: 1.2rem;
}

.user-balance {
    display: flex;
    align-items: center;
    background: rgba(255, 215, 0, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-balance i {
    color: #FFD700;
}

.refresh-balance {
    background: transparent;
    border: none;
    color: #FFD700;
    margin-left: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    transition: all 0.3s ease;
}

.refresh-balance:hover {
    transform: rotate(180deg);
}

.refresh-balance.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Left Sidebar Navigation */
.sidebar-nav {
    width: 130px;
    background: linear-gradient(180deg, #0d5555 0%, #0a3d3d 100%);
    backdrop-filter: blur(10px);
    border-right: 2px solid rgba(255, 215, 0, 0.2);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1050;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    
    /* Hide scrollbar - Firefox */
    scrollbar-width: none;
}

/* Hide scrollbar - Webkit browsers (Chrome, Safari, Edge) */
.sidebar-nav::-webkit-scrollbar {
    display: none;
}

/* Sidebar Logo */
.sidebar-logo {
    padding: 20px 10px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    position: relative;
}

.sidebar-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
}

.sidebar-logo a {
    color: #FFD700;
    text-decoration: none;
    display: block;
}

.sidebar-logo .logo-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.sidebar-logo .logo-icon i {
    font-size: 1.8rem;
    color: #0a3d3d;
}

.sidebar-logo .logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.6);
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.sidebar-logo img {
    max-width: 100%;
    height: auto;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    font-size: 0.8rem;
    margin: 2px 0;
    position: relative;
}

.sidebar-item i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

/* Sidebar Icon Images */
.sidebar-item .sidebar-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.sidebar-item:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    border-right-color: #FFD700;
}

.sidebar-item:hover i {
    transform: scale(1.15);
}

.sidebar-item:hover .sidebar-icon {
    transform: scale(1.15);
    filter: brightness(0) invert(1);
    opacity: 1;
}

.sidebar-item.active {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border-right-color: #FFD700;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.1);
}

.sidebar-item.active i {
    transform: scale(1.1);
}

.sidebar-item.active .sidebar-icon {
    transform: scale(1.1);
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Main Content Area */
.main-content {
    margin-left: 130px;
    flex: 1;
    padding: 20px;
    max-width: calc(100% - 130px);
}

/* Top Header Bar in Main Content */
.top-header-bar {
    background: rgba(10, 40, 40, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.top-header-bar .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.top-header-bar .auth-buttons {
    display: flex;
    gap: 10px;
}

.top-header-bar .btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Desktop Balance Display */
.desktop-balance-display {
    display: flex;
    align-items: center;
    background: rgba(255, 215, 0, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    font-weight: 600;
    font-size: 1rem;
    margin-right: 10px;
}

.desktop-balance-display i.fa-coins {
    color: #FFD700;
    font-size: 1.1rem;
}

.desktop-balance-display span {
    margin: 0 8px;
}

.desktop-refresh-balance {
    background: transparent;
    border: none;
    color: #FFD700;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    margin-left: 5px;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.desktop-refresh-balance:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(180deg);
}

.desktop-refresh-balance.spinning i {
    animation: spin 1s linear infinite;
}

/* Banner Carousel */
.banner-carousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.banner-carousel .carousel-inner {
    border-radius: 12px;
}

/* Full width carousel on mobile */
@media (max-width: 991.98px) {
    .banner-carousel {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .banner-carousel .carousel-inner {
        border-radius: 0;
    }
    
    .banner-carousel .carousel-item img {
        border-radius: 0;
    }
}

.banner-carousel .carousel-item img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #000; /* fill any empty space with dark background */
}

.carousel-indicators {
    margin-bottom: 10px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
}

.carousel-indicators button.active {
    background-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Category Icons Bar */
.category-icons-bar {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(10, 40, 40, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-icons-bar::-webkit-scrollbar {
    display: none;
}

.category-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.category-icon-item i {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.category-icon-item:hover,
.category-icon-item.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
    color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Section Header Inline */
.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.section-title-small {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.view-all-link {
    color: #FFD700;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #FFA500;
    transform: translateX(5px);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(10, 40, 40, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.game-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
}

.game-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

/* Game Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

/* Play Button Round */
.btn-play-round {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    color: #0a3d3d;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

.btn-play-round:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.7);
}

/* Favorite Button */
.btn-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-favorite:hover {
    background: rgba(255, 0, 0, 0.8);
    color: #ffffff;
    transform: scale(1.1);
}

.btn-favorite.active {
    background: rgba(255, 0, 0, 0.9);
    color: #ffffff;
}

.btn-favorite.active i {
    font-weight: 900;
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.fab-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.fab-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
}

.fab-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.fab-support {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    animation: pulse-support 2s ease-in-out infinite;
}

.fab-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

@keyframes pulse-support {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 215, 0, 0.8);
    }
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 991.98px) {
    .sidebar-nav {
        transform: translateX(-100%);
    }
    
    .sidebar-nav.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 15px;
        padding-top: 75px;
    }
    
    /* Add extra padding when user is logged in (header 60px + user info ~45px) */
    body.casino-theme.authenticated .main-content {
        padding-top: 120px;
    }
    
    /* Guest users (only header, no user info bar) */
    body.casino-theme:not(.authenticated) .main-content {
        padding-top: 75px;
    }
    
    .top-header-bar {
        display: none;
    }
    
    /* Mobile overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1040;
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .category-icons-bar {
        padding: 10px;
    }
    
    .category-icon-item {
        min-width: 70px;
        padding: 10px;
    }
    
    .category-icon-item i {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .banner-carousel .carousel-item img {
        height: auto;
        max-height: 260px; /* prevent slider from becoming too tall on small screens */
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .floating-actions {
        right: 10px;
        bottom: 80px;
        gap: 8px;
    }
    
    .fab-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .btn-play-round {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: 10px;
    }
    
    .section-title-small {
        font-size: 1.1rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hide scrollbar but keep functionality */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* No Games Message */
.no-games {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

/* Promotion Cards */
.promo-card {
    background: rgba(10, 40, 40, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.1) !important;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.promo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.promo-card img {
    transition: all 0.3s ease;
}

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

/* Provider Container Styling */
.providers-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.provider-item {
    min-width: 120px;
    flex-shrink: 0;
}

.provider-card {
    background: rgba(10, 40, 40, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.1) !important;
    transition: all 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}
