/* DMCASINOS - Game Lobby Styles */

/* Games Grid - Custom Layout for 360x472 images */
.games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Desktop: 6 games per row */
    gap: 22px;
    padding: 0;
    width: 100%;
}

/* TABLET: 5 games per row */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}

/* MOBILE: 3 games per row */
@media (max-width: 768px) {
    .games-lobby {
        padding: 10px;
    }
    
    .lobby-title {
        font-size: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* Mobile: 3 games per row */
        gap: 15px !important;
        padding: 0 !important;
        width: 100% !important;
    }
}

/* SMALL MOBILE: Still 3 games per row but tighter spacing */
@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
}

/* Game Card Styles - Updated for 360x472 aspect ratio */
.game-card {
    position: relative;
    aspect-ratio: 360 / 472; /* Custom aspect ratio for 360x472 images */
    border-radius: 12px;
    overflow: hidden;
    background: #1A1D2B;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    min-width: 0;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.game-card.featured-card {
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.game-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Shimmer Effect */
.shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Corner Accents */
.corner-accent {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #FFD700;
    pointer-events: none;
    opacity: 0.8;
}

.corner-accent.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 50%;
}

.corner-accent.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 50%;
}

.corner-accent.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 50%;
}

.corner-accent.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 50%;
}

/* Game Badges */
.game-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.badge-hot {
    background: linear-gradient(45deg, #FF3864, #FF6B8A);
    color: white;
}

.badge-new {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
}

/* Game Overlay */
.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%
    );
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.game-card:hover .game-overlay {
    transform: translateY(0);
}

.game-info {
    margin-bottom: 15px;
}

.game-title {
    color: #FFD700;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.game-provider {
    color: #A0A0A0;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* Game Buttons */
.game-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-play {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-demo {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-real {
    background: linear-gradient(45deg, #FF3864, #6246EA);
    color: white;
}

.btn-real:hover {
    background: linear-gradient(45deg, #FF6B8A, #7C5CFA);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 56, 100, 0.4);
}

/* Lobby Styles */
.games-lobby {
    padding: 20px;
}

.lobby-header {
    text-align: center;
    margin-bottom: 30px;
}

.lobby-title {
    color: #FFD700;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lobby-subtitle {
    color: #A0A0A0;
    font-size: 1rem;
}

/* Category Filters */
.lobby-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(30, 33, 57, 0.95), rgba(42, 45, 71, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(98, 70, 234, 0.4);
    border-color: rgba(98, 70, 234, 0.6);
}

.filter-btn.active {
    background: linear-gradient(135deg, #6246EA, #8B5CF6);
    border-color: #6246EA;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(98, 70, 234, 0.5);
}

.filter-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.filter-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.filter-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-top: 4px;
}

/* Vibrant, psychologically appealing colors for game categories */
.filter-btn:nth-child(1) { 
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%); 
    border-color: rgba(139, 92, 246, 0.5);
}
.filter-btn:nth-child(2) { 
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%); 
    border-color: rgba(239, 68, 68, 0.5);
}
.filter-btn:nth-child(3) { 
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%); 
    border-color: rgba(16, 185, 129, 0.5);
}
.filter-btn:nth-child(4) { 
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%); 
    border-color: rgba(245, 158, 11, 0.5);
}
.filter-btn:nth-child(5) { 
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%); 
    border-color: rgba(59, 130, 246, 0.5);
}
.filter-btn:nth-child(6) { 
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%); 
    border-color: rgba(236, 72, 153, 0.5);
}
.filter-btn:nth-child(7) { 
    background: linear-gradient(135deg, #8B5CF6 0%, #C084FC 100%); 
    border-color: rgba(139, 92, 246, 0.5);
}
.filter-btn:nth-child(8) { 
    background: linear-gradient(135deg, #14B8A6 0%, #2DD4BF 100%); 
    border-color: rgba(20, 184, 166, 0.5);
}

.filter-btn:nth-child(1):hover, .filter-btn:nth-child(1).active { 
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 100%); 
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}
.filter-btn:nth-child(2):hover, .filter-btn:nth-child(2).active { 
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%); 
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}
.filter-btn:nth-child(3):hover, .filter-btn:nth-child(3).active { 
    background: linear-gradient(135deg, #059669 0%, #10B981 100%); 
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}
.filter-btn:nth-child(4):hover, .filter-btn:nth-child(4).active { 
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%); 
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}
.filter-btn:nth-child(5):hover, .filter-btn:nth-child(5).active { 
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%); 
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}
.filter-btn:nth-child(6):hover, .filter-btn:nth-child(6).active { 
    background: linear-gradient(135deg, #DB2777 0%, #EC4899 100%); 
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}
.filter-btn:nth-child(7):hover, .filter-btn:nth-child(7).active { 
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%); 
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}
.filter-btn:nth-child(8):hover, .filter-btn:nth-child(8).active { 
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%); 
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.5);
}

.filter-icon {
    font-size: 1.1rem;
}

.filter-text {
    font-size: 0.9rem;
}

.filter-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: linear-gradient(45deg, #6246EA, #FF3864);
    border-color: transparent;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-dots {
    color: #A0A0A0;
    font-weight: bold;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .games-lobby {
        padding: 10px;
    }
    
    .lobby-title {
        font-size: 1.5rem;
    }
    
    .lobby-filters {
        padding: 15px;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .game-title {
        font-size: 1rem;
    }
    
    .game-provider {
        font-size: 0.8rem;
    }
    
    .btn-play {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive breakpoints for fine-tuning */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }
}

/* REDUCED BUTTON FONT SIZE FOR BETTER FIT */
.game-card .btn-play,
.game-card .play-btn,
.game-card button {
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 6px 8px !important;
    min-height: 28px !important;
}

.game-card .btn-play:hover,
.game-card .play-btn:hover,
.game-card button:hover {
    font-size: 11px !important;
}

/* MOBILE BUTTON SIZING */
@media (max-width: 768px) {
    .game-card .btn-play,
    .game-card .play-btn,
    .game-card button {
        font-size: 10px !important;
        padding: 5px 6px !important;
        min-height: 26px !important;
    }
}

@media (max-width: 480px) {
    .game-card .btn-play,
    .game-card .play-btn,
    .game-card button {
        font-size: 9px !important;
        padding: 4px 5px !important;
        min-height: 24px !important;
    }
}

/* HIDE PAGINATION ON PAGES WITH INFINITE SCROLL */
.games-lobby .pagination-container,
.games-lobby .pagination-btn,
.games-lobby .pagination-links {
    display: none !important;
}

/* SHOW PAGINATION ONLY WHEN JAVASCRIPT IS DISABLED */
.no-js .games-lobby .pagination-container,
.no-js .games-lobby .pagination-btn,
.no-js .games-lobby .pagination-links {
    display: block !important;
}
/* Featured Games Slider */
.featured-slider-container {
    position: relative;
}

.featured-slider {
    position: relative;
    overflow: hidden;
}

.featured-slide {
    display: none;
    animation: fadeIn 0.5s;
}

.featured-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    border-radius: 5px;
}

.slider-nav:hover {
    background: rgba(98, 70, 234, 0.8);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    text-align: center;
    padding: 15px 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active,
.dot:hover {
    background-color: #FFD700;
    transform: scale(1.2);
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .slider-nav {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .dot {
        height: 10px;
        width: 10px;
    }
}
/* Hide slider dots under the banner */
.slider-dots { display: none !important; }

/* Reposition featured Play Now button to bottom center */
.featured-game-banner { position: relative; }
.featured-game-info {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

/* Reduce Play Now button size ~50% and center */
.featured-game-info .btn-featured {
  padding: 8px 20px;           /* from ~15px 40px */
  font-size: 0.55rem;          /* from ~1.1rem */
  border-radius: 18px;         /* slightly smaller radius */
}

@media (max-width: 768px) {
  .featured-game-info { bottom: 12px; }
  .featured-game-info .btn-featured {
    padding: 8px 18px;
    font-size: 0.6rem;
  }
}
/* Featured Slider UI Tweaks - Increase Play Now by ~20% (2025-10-20) */
.featured-game-info .btn-featured {
  padding: 10px 24px !important;  /* was 8px 20px */
  font-size: 0.66rem !important; /* was 0.55rem */
}
@media (max-width: 768px) {
  .featured-game-info .btn-featured {
    padding: 10px 22px !important; /* was 8px 18px */
    font-size: 0.72rem !important; /* was 0.6rem */
  }
}
/* End tweak */
