/* Slots Page Specific Styles */

/* Hero Stats Cards */
.slots-hero-stats {
    animation: stats-entrance 1s ease-out;
}

@keyframes stats-entrance {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 242, 1, 0.2), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

/* Slot Cards */
.slot-card {
    transition: all 0.3s ease;
    position: relative;
}

.slot-image-container {
    position: relative;
    overflow: hidden;
    border: 4px solid #fff201;
    aspect-ratio: 2/3;
}

.slot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slot-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(254, 42, 24, 0.95), rgba(10, 10, 10, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 16px;
}

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

.slot-card:hover .slot-image {
    transform: scale(1.1);
}

.play-button {
    background: #fff201;
    color: #0a0a0a;
    padding: 12px 24px;
    font-weight: bold;
    border: 3px solid #0a0a0a;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.slot-info {
    text-align: center;
    font-size: 12px;
}

.rtp {
    font-weight: bold;
    color: #fff201;
    margin-bottom: 4px;
}

.volatility {
    font-weight: bold;
}

.slot-title {
    text-align: center;
    font-weight: bold;
    margin-top: 8px;
    font-size: 14px;
}

.slot-provider {
    text-align: center;
    font-size: 12px;
    color: #fff201;
    margin-top: 4px;
}

/* Megaways Cards */
.megaways-card {
    position: relative;
}

.megaways-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fff201;
    color: #0a0a0a;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid #0a0a0a;
    z-index: 10;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Live Dealer Cards */
.live-card {
    transition: all 0.3s ease;
    position: relative;
}

.live-image-container {
    position: relative;
    overflow: hidden;
    border: 4px solid #fff201;
    aspect-ratio: 2/3;
}

.live-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #fe2a18;
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid #fff201;
    z-index: 10;
    animation: live-blink 1.5s infinite;
}

@keyframes live-blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.7;
    }
}

.live-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(254, 42, 24, 0.95), rgba(10, 10, 10, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 16px;
}

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

.live-card:hover .live-image {
    transform: scale(1.1);
}

.live-info {
    text-align: center;
    font-size: 12px;
}

.dealer-name {
    font-weight: bold;
    color: #fff201;
    margin-bottom: 4px;
}

.table-limits {
    font-weight: bold;
}

.live-title {
    text-align: center;
    font-weight: bold;
    margin-top: 8px;
    font-size: 14px;
}

.live-provider {
    text-align: center;
    font-size: 12px;
    color: #fff201;
    margin-top: 4px;
}

/* Stats Cards */
.stats-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 242, 1, 0.1), transparent);
    transition: left 0.5s;
}

.stats-card:hover::before {
    left: 100%;
}

.stats-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stats-icon {
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.stats-number {
    animation: number-count 2s ease-out;
}

@keyframes number-count {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.stats-description {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.stats-card:hover .stats-description {
    opacity: 1;
}

/* Provider Cards */
.provider-card {
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 242, 1, 0.2), transparent);
    transition: left 0.5s;
}

.provider-card:hover::before {
    left: 100%;
}

.provider-card:hover {
    transform: scale(1.05) rotateZ(2deg);
    background: #fff201;
    color: #0a0a0a;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.provider-card:hover .text-casino-yellow {
    color: #fe2a18 !important;
}

.provider-icon {
    transition: all 0.3s ease;
}

.provider-card:hover .provider-icon {
    transform: scale(1.2) rotateY(180deg);
}

.provider-stats {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.provider-card:hover .provider-stats {
    opacity: 1;
}

/* Section Intros */
.megaways-intro,
.live-dealer-intro {
    animation: intro-fade-in 1s ease-out;
}

@keyframes intro-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mega Pulse Animation */
.mega-pulse {
    animation: mega-pulse-button 1.5s infinite;
}

@keyframes mega-pulse-button {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 242, 1, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 242, 1, 0.8);
    }
}

/* Bounce In Animation */
.animate-bounce-in {
    animation: bounce-in 0.6s ease-out;
}

@keyframes bounce-in {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .slots-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card .text-4xl {
        font-size: 2rem;
    }
    
    .slot-image-container,
    .live-image-container {
        aspect-ratio: 3/4;
    }
    
    .slot-title,
    .live-title {
        font-size: 12px;
    }
    
    .slot-provider,
    .live-provider {
        font-size: 10px;
    }
    
    .play-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .stats-card {
        padding: 24px 16px;
    }
    
    .stats-icon {
        font-size: 2.5rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    .provider-card {
        padding: 24px 16px;
    }
    
    .provider-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .slots-hero-stats {
        grid-template-columns: 1fr;
    }
    
    .slot-card,
    .live-card {
        margin-bottom: 16px;
    }
    
    .megaways-badge,
    .live-badge {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    .slot-info,
    .live-info {
        font-size: 10px;
    }
    
    .stats-card {
        padding: 16px;
    }
    
    .provider-card {
        padding: 16px;
    }
    
    .floating-elements {
        display: none;
    }
}

/* Print Styles */
@media print {
    .floating-elements,
    .play-button,
    .cta-button,
    .slot-overlay,
    .live-overlay {
        display: none;
    }
    
    .slot-card,
    .live-card,
    .stats-card,
    .provider-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-casino-black {
        background: white !important;
        border-color: black !important;
    }
    
    .text-casino-yellow {
        color: black !important;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .mega-pulse,
    .badge-pulse,
    .live-blink,
    .icon-float,
    .floating-elements * {
        animation: none;
    }
    
    .hover-transform:hover,
    .slot-card:hover,
    .live-card:hover,
    .stats-card:hover,
    .provider-card:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .slot-image-container,
    .live-image-container,
    .stats-card,
    .provider-card {
        border-width: 6px;
    }
    
    .play-button {
        border-width: 4px;
    }
    
    .megaways-badge,
    .live-badge {
        border-width: 3px;
    }
}

/* Focus States for Accessibility */
.slot-card:focus,
.live-card:focus,
.stats-card:focus,
.provider-card:focus,
.play-button:focus {
    outline: 3px solid #fff201;
    outline-offset: 2px;
}

/* Loading States */
.slot-image,
.live-image {
    background: linear-gradient(90deg, #0a0a0a 25%, #333 50%, #0a0a0a 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite linear;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Hover Effects Enhancement */
.slot-card:hover,
.live-card:hover {
    z-index: 10;
    position: relative;
}

/* Grid Responsive Adjustments */
@media (max-width: 1024px) {
    .grid.lg\\:grid-cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .grid.md\\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Custom Scrollbar for Slots Page */
.slots-container::-webkit-scrollbar {
    width: 8px;
}

.slots-container::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.slots-container::-webkit-scrollbar-thumb {
    background: #fff201;
    border-radius: 0;
}

.slots-container::-webkit-scrollbar-thumb:hover {
    background: #fe2a18;
}