/* Icon Wrapper - Note: This is currently overridden by inline styles in profile.blade.php */

/* Custom Row for Game Cards */
.game-cards-row {
    margin-left: -5px;
    margin-right: -5px;
}

/* Modern Game Card Styles */
.game-card-wrapper {
    margin-bottom: 5px;
    padding: 0 2px;
    position: relative;
}
/* Cleaned up unused class comments */

.game-image-container {
    position: relative;
    width: 200px;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.game-image-container:hover .game-image {
    transform: scale(1.05);
}

.game-provider-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Default background */
    background-color: #2D3748;
}

.game-provider {
    color: #a0aec0;
    font-size: 0.75rem;
    margin-bottom: 0;
    text-transform: uppercase;
}

.btn-play {
    background: linear-gradient(90deg, #ecc94b 0%, #f6ad55 100%);
    color: #1a202c;
    font-weight: 600;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-play:hover {
    background: linear-gradient(90deg, #f6ad55 0%, #ecc94b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #1a202c;
}

.btn-play i {
    font-size: 0.9rem;
}

/* Game Card Hover Effects */
.hover-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 32, 44, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    transform: translateY(10px);
}

.game-image-container:active .hover-content,
.game-image-container:focus .hover-content,
.game-image-container.touch-focus .hover-content {
    opacity: 1;
    transform: translateY(0);
}

/* Apply hover effect only on devices that can hover */
@media (hover: hover) and (pointer: fine) {
    .game-image-container:hover .hover-content {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-content .btn-play {
    cursor: pointer;
}

/* Combined hover effects for game image */

.hover-title {
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ecc94b;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Provider Filter Section - Styles consolidated above */

/* Responsive Adjustments */
@media (max-width: 768px) {
    .game-image-container {
        width: 180px;
        height: 252px;
    }
    
    .game-title {
        font-size: 1rem;
    }
    
    .game-provider {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    /* Mobile-only layout: each card fills its Bootstrap column */
    .featured-section .row { padding-left: 6px; padding-right: 6px; }
    .game-card-wrapper { padding: 0 6px; }
    .game-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 5 / 7;
    }
    /* Avoid horizontal scrollbar on mobile */
    .featured-section .row,
    .providers-container,
    html, body {
        overflow-x: hidden;
    }
    
    .game-info {
        padding: 10px;
    }
    
    /* Bigger thumb-friendly CTA button on mobile */
    .hover-content {
        padding: 12px;
        gap: 8px;
        justify-content: flex-end;
        align-items: stretch;
    }
    .btn-play {
        padding: 12px 14px;
        font-size: 1rem;
        border-radius: 10px;
        min-height: 44px; /* Recommended touch target */
    }
    .btn-play i { font-size: 1rem; }
}

