/* ========================================
   SLOT PAGE STYLES - EARTH THEME
   ======================================== */

/* Page Header */
.page-header {
    padding: 100px 0 30px;
    text-align: center;
}

.page-header .container {
    max-width: 1400px;
    margin: auto;
}

.game-cate {position: relative; margin:40px auto 20px auto; padding:0; width: 100%; text-align: center;}
.game-cate .container {position: relative; margin:0 auto; padding:0; width: 1400px; text-align: center;}
ul.cate-list {list-style-type: none; position: relative; margin:0; padding:0; width: 100%; display: flex; justify-content: space-between; align-items: center; gap:10px;}
ul.cate-list > li {position: relative; margin:0 auto; padding: 15px 0; width: calc(100% / 2 - 10px); text-align: center; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--earth-primary); border-radius: 30px; transition: all 0.3s ease; cursor: pointer;}
ul.cate-list > li:hover {transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 212, 170, 0.4);}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--earth-primary);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--earth-primary);    
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}


ul.cate-list > li.active {background: var(--earth-gradient);}
ul.cate-list > li.active .page-title,
ul.cate-list > li.active .page-subtitle {color: var(--earth-dark); }


/* Slot Content */
.slot-content {
    padding: 30px 0 80px;
}

.slot-content .container {
    max-width: 1400px;
    margin: auto;
}

.game-view{display: none; position: relative; margin:0 auto; padding:15px 0; width:100%;}
.game-view.active {display: block;}


/* Slot Grid */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Slot Card */
.slot-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 105%;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

/* Card Background Image */
.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    transition: transform 0.5s ease, filter 0.3s ease;
}

/* Card Character Image */
.card-character {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    z-index: 1;
    transition: transform 0.5s ease;
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%);
    border-radius: 16px;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Card Content */
.card-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

/* Provider Logo */
.provider-logo {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.provider-logo img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease, filter 0.3s ease;
}

/* Provider Name */
.provider-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

/* Card Hover Overlay */
.card-hover {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 30px;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    padding-top:15px;
}

.btn-play-slot {
    padding: 15px 45px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--earth-dark);
    background: var(--earth-gradient);
    border: none;
    cursor: pointer;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 40px rgba(0, 212, 170, 0.4);
}

.btn-play-slot:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 15px 50px rgba(0, 212, 170, 0.6);
}

/* Card Hover Effects */
.slot-card:hover .card-inner {
    transform: translateY(-10px);
}

.slot-card:hover .card-bg {
    transform: scale(1.1);
    filter: brightness(1.1);
}

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

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

.slot-card:hover .provider-logo img {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 20px rgba(0, 212, 170, 0.5));
}

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

.slot-card:hover .btn-play-slot {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Floating Animation - staggered */
.slot-card {
    animation: cardFloat 4s ease-in-out infinite;
    border: 1px solid rgba(0, 212, 170, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.slot-card:hover {
    animation-play-state: paused;
    border-color: var(--earth-primary);
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.3);
}

.slot-card:nth-child(1) { animation-delay: 0s; }
.slot-card:nth-child(2) { animation-delay: 0.15s; }
.slot-card:nth-child(3) { animation-delay: 0.3s; }
.slot-card:nth-child(4) { animation-delay: 0.45s; }
.slot-card:nth-child(5) { animation-delay: 0.1s; }
.slot-card:nth-child(6) { animation-delay: 0.25s; }
.slot-card:nth-child(7) { animation-delay: 0.4s; }
.slot-card:nth-child(8) { animation-delay: 0.55s; }
.slot-card:nth-child(9) { animation-delay: 0s; }
.slot-card:nth-child(10) { animation-delay: 0.15s; }
.slot-card:nth-child(11) { animation-delay: 0.3s; }
.slot-card:nth-child(12) { animation-delay: 0.45s; }
.slot-card:nth-child(13) { animation-delay: 0.1s; }
.slot-card:nth-child(14) { animation-delay: 0.25s; }
.slot-card:nth-child(15) { animation-delay: 0.4s; }
.slot-card:nth-child(16) { animation-delay: 0.55s; }
.slot-card:nth-child(17) { animation-delay: 0s; }
.slot-card:nth-child(18) { animation-delay: 0.15s; }
.slot-card:nth-child(19) { animation-delay: 0.3s; }
.slot-card:nth-child(20) { animation-delay: 0.45s; }
.slot-card:nth-child(21) { animation-delay: 0.1s; }
.slot-card:nth-child(22) { animation-delay: 0.25s; }
.slot-card:nth-child(23) { animation-delay: 0.4s; }
.slot-card:nth-child(24) { animation-delay: 0.55s; }
.slot-card:nth-child(25) { animation-delay: 0s; }
.slot-card:nth-child(26) { animation-delay: 0.15s; }
.slot-card:nth-child(27) { animation-delay: 0.3s; }
.slot-card:nth-child(28) { animation-delay: 0.45s; }
.slot-card:nth-child(29) { animation-delay: 0.1s; }
.slot-card:nth-child(30) { animation-delay: 0.25s; }
.slot-card:nth-child(31) { animation-delay: 0.4s; }
.slot-card:nth-child(32) { animation-delay: 0.55s; }
.slot-card:nth-child(33) { animation-delay: 0s; }
.slot-card:nth-child(34) { animation-delay: 0.15s; }
.slot-card:nth-child(35) { animation-delay: 0.3s; }
.slot-card:nth-child(36) { animation-delay: 0.45s; }
.slot-card:nth-child(37) { animation-delay: 0.1s; }
.slot-card:nth-child(38) { animation-delay: 0.25s; }
.slot-card:nth-child(39) { animation-delay: 0.4s; }
.slot-card:nth-child(40) { animation-delay: 0.55s; }
.slot-card:nth-child(41) { animation-delay: 0s; }
.slot-card:nth-child(42) { animation-delay: 0.15s; }

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Shimmer Effect on hover */
.slot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 5;
    pointer-events: none;
    border-radius: 16px;
}

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

/* Glow effect on hover */
.slot-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--earth-gradient);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.slot-card:hover::after {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 1430px) {
    .slot-content {position:relative; margin:0 auto; padding:0; max-width: 100%; text-align: center;}
    .game-cate .container {width: 100%;}
} 

@media (max-width: 1200px) {
    .slot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .slot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-title {
        font-size: 2rem;
    }

    .provider-logo {
        max-width: 150px;
    }

    .provider-logo img {
        max-height: 60px;
    }
}

@media (max-width: 767px) {
    .page-header {padding: 80px 0 10px;}
    .page-header .container {max-width: 100%; width: 100%;}
    .game-cate {margin: 20px auto;}
    ul.cate-list {margin:0 auto; width:100%; justify-content: center; gap:5px;}
    ul.cate-list > li {width: calc(100% / 2 - 5px);}
    .page-title {font-size: 1.1rem;}
    .page-subtitle {display: none;}

    .games-section {margin: 20px auto 0 auto;}
}


@media (max-width: 600px) {
    .slot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .slot-card {
        aspect-ratio: 1 / 1;
    }

    .provider-logo {
        max-width: 120px;
    }

    .provider-logo img {
        max-height: 50px;
    }

    .provider-name {
        font-size: 0.85rem;
    }

    .btn-play-slot {
        padding: 12px 30px;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .page-header .container {padding:0 5px;}
    
    .slot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .provider-logo {
        max-width: 80px;
    }

    .provider-logo img {
        max-height: 35px;
    }

    .provider-name {
        font-size: 0.7rem;
    }

    .btn-play-slot {
        padding: 10px 20px;
        font-size: 0.75rem;
    }
}
