/* 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);
    background-color: #2D3748;
}

/* Provider Logos */
.provider-logos-container {
    position: relative;
    background-color: #2D3748;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}

.provider-logo {
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.provider-logo:hover, 
.provider-logo.active {
    opacity: 1;
    transform: translateY(-3px);
}

.provider-logo.active .bg-dark {
    background: linear-gradient(135deg, #2c3e50, #3498db) !important;
    border: 1px solid #3498db;
}

.active-indicator {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #3498db;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.provider-logo.active .active-indicator {
    opacity: 1;
}

.provider-name {
    font: icon;
    color: #adb5bd;
    margin-top: 2px;
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.provider-logo.active .provider-name {
    color: #3498db;
    font-weight: 500;
}

/* Provider-specific colors */
.provider-jili {
    background-color: #FF6B6B;
}

.provider-pg {
    background-color: #4299E1;
}

.provider-cq9 {
    background-color: #F6AD55;
}

.provider-redtiger {
    background-color: #48BB78;
}

.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); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideIn 0.3s ease-out forwards;
}

.toast-success {
    background-color: #48BB78;
}

.toast-error {
    background-color: #F56565;
}

.toast-info {
    background-color: #4299E1;
}

.toast-warning {
    background-color: #ECC94B;
}

@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: equal gutters and responsive cards */
    .game-cards-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 */
    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;
    }
    .btn-play i { font-size: 1rem; }
}

/* Provider Card Styles */
.provider-card {
    background: linear-gradient(135deg, #0030f7 0%, #2a77ef 50%, #3950ad 100%);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.provider-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #0F52BA 0%, #1a2a6c 50%, #0F52BA 100%);
}

.provider-card .provider-name {
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.provider-card:hover .provider-name {
    color: #ecc94b;
}

/* Load More Button Container */
.load-more-container {
    position: relative;
    width: 100%;
    min-height: 60px;
    margin: 1rem 0 2rem;
    padding: 1rem 0;
    text-align: center;
    background: transparent;
    transition: all 0.3s ease;
    order: 9999; /* Ensure it stays at the bottom */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Load More Button */
#loadMoreBtn {
    display: inline-block;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    min-width: 200px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #1a2a6c 0%, #0F52BA 50%, #1a2a6c 100%);
    color: white;
    cursor: pointer;
}

#loadMoreBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#loadMoreBtn:active:not(:disabled) {
    transform: translateY(0);
}

#loadMoreBtn.loading {
    opacity: 0.8;
    cursor: wait;
    pointer-events: none;
}

#loadMoreBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #6c757d;
}

/* Loading spinner in the button */
#loadMoreBtn .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
    animation: spin 0.75s linear infinite;
    vertical-align: -0.125em;
    margin-right: 0.5rem;
    display: inline-block;
}