/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #32a8ea 0%, #000000 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    text-align: center;
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 450px;
    margin-bottom: 0.5rem;
}

.logo p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Navigation styles removed as navigation is no longer needed */

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Banner Section */
.banner-section {
    margin-bottom: 30px;
}

.banner-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    aspect-ratio: 2 / 1;
}

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

.banner-image:hover {
    transform: scale(1.02);
}

/* Responsive Banner */
@media (max-width: 768px) {
    .banner-section {
        margin-bottom: 20px;
    }
    
    .banner-container {
        border-radius: 8px;
    }
}

/* Auth Section */
.auth-section {
    margin-bottom: 25px;
}

.auth-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 20px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    justify-content: center;
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.register-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.register-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(200%) translateY(200%) rotate(45deg);
    }
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 50%, #ffed4e 100%);
}

.auth-btn i {
    font-size: 1.1rem;
}

/* Responsive Auth Buttons */
@media (max-width: 768px) {
    .auth-buttons {
        gap: 0.8rem;
    }
    
    .auth-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .auth-section {
        margin-bottom: 20px;
    }
    
    .auth-buttons {
        gap: 0.6rem;
    }
    
    .auth-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-width: 90px;
    }
    
    .auth-btn i {
        font-size: 1rem;
    }
}

/* Filter Section - Carousel Style */
.filter-section {
    background: linear-gradient(135deg, #000000 0%, #32a8ea 50%, #1a1a1a 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(50, 168, 234, 0.3), 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.filter-section h2 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.provider-filters {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 1rem;
    padding: 0.5rem 0;
    width: 100%;
}

.provider-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.filter-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    width: 120px;
    height: 70px;
}

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

.filter-btn:hover::before {
    left: 100%;
}

.provider-logo {
    width: 100px;
    height: 50px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
}

.provider-name {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #ffffff;
    opacity: 0.8;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 0.2rem;
    width: 100%;
    overflow: visible;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

.filter-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover .provider-logo {
    filter: brightness(1.3) contrast(1.2);
    transform: scale(1.05);
}

.provider-item:hover .provider-name {
    opacity: 1;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    color: #1e3c72;
    border-color: #ffffff;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.filter-btn.active .provider-logo {
    filter: brightness(1) contrast(1.1);
    transform: scale(1.02);
}

.provider-item .filter-btn.active + .provider-name {
    opacity: 1;
    color: #32a8ea;
    font-weight: 700;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.carousel-nav:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Games Section */
.games-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0.8rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    color: #333;
    font-size: 1.3rem;
}

.game-count {
    background: #32a8ea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #32a8ea;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid #32a8ea;
}

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

.game-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #32a8ea20, #00000020);
}

.game-image i {
    font-size: 3rem;
    color: #999;
    z-index: 1;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 1rem 0.5rem;
    text-align: center;
}

.game-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.provider-name {
    color: #32a8ea;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

.rtp-info {
    margin-bottom: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rtp-badge {
    background: linear-gradient(45deg, #32a8ea, #000000);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 8px;
}

.rtp-progress {
    width: 100%;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    border: 2px solid #000000;
    margin-bottom: 8px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.rtp-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 23px;
    transition: width 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.rtp-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* RTP Bar Color Variations */
.rtp-bar-red {
    background: linear-gradient(90deg, #f44336, #e57373) !important;
}

.rtp-bar-yellow {
    background: linear-gradient(90deg, #ff9800, #ffb74d) !important;
}

.rtp-bar-green {
    background: linear-gradient(90deg, #4CAF50, #66BB6A) !important;
}

/* Gacor Time Color Variations */
.gacor-time-red {
    color: #f44336 !important;
    background: rgba(244, 67, 54, 0.1) !important;
    border: 1px solid rgba(244, 67, 54, 0.2) !important;
}

.gacor-time-red .gacor-label,
.gacor-time-red .gacor-hours {
    color: #f44336 !important;
}

.gacor-time-green {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.gacor-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #28a745;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(40, 167, 69, 0.1);
    padding: 6px 10px;
    border-radius: 15px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    width: 100%;
}

.gacor-time i {
    font-size: 0.75rem;
    animation: pulse 2s infinite;
}

.gacor-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.gacor-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #28a745;
}

.gacor-hours {
    font-size: 0.8rem;
    font-weight: 500;
    color: #28a745;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* No Games */
.no-games {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-games i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #000;
    background: white;
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-right: 1rem;
    background: #f0f0f0;
}

.modal-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.rtp-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rtp-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.rtp-item .label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.rtp-item .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #32a8ea;
}

.patterns-section h4 {
    color: #333;
    margin-bottom: 1rem;
}

.patterns {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    color: #666;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #32a8ea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Carousel responsive adjustments */
    .filter-section {
        padding: 1.5rem 1rem;
    }
    
    .filter-btn {
        width: 120px;
        height: 60px;
        padding: 0.3rem;
    }
    
    .provider-logo {
        width: 110px;
        height: 50px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .rtp-info {
        grid-template-columns: 1fr;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Desktop Responsiveness */
@media (min-width: 1025px) {
    .rtp-info {
        width: 100%;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: none;
    }
    
    .rtp-progress {
        width: 100%;
        height: 50px;
        margin-bottom: 10px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        max-width: none;
    }
    
    .rtp-bar {
        font-size: 1rem;
    }
}

/* Tablet Responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
    .provider-name {
        font-size: 0.82rem;
        text-align: center;
        width: 100%;
    }
    
    .rtp-info {
        width: 100%;
        margin-bottom: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .rtp-progress {
        width: 100%;
        height: 45px;
        margin-bottom: 8px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    .rtp-bar {
        font-size: 0.95rem;
    }
}

/* Small Tablet Responsiveness */
@media (max-width: 768px) and (min-width: 481px) {
    .provider-name {
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
    }
    
    .rtp-info {
        width: 100%;
        margin-bottom: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .rtp-progress {
        width: 100%;
        height: 42px;
        margin-bottom: 7px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    .rtp-bar {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .game-image {
        height: 120px;
    }
    
    .game-card {
        border-radius: 10px;
    }
    
    .game-info {
        padding: 0.8rem;
    }
    
    .game-name {
        font-size: 0.9rem;
    }
    
    .provider-name {
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
    }
    
    .rtp-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .rtp-info {
        width: 100%;
        margin-bottom: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .rtp-progress {
        width: 100%;
        height: 40px;
        margin-bottom: 6px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    .rtp-bar {
        font-size: 0.85rem;
    }
    
    /* Mobile carousel adjustments */
    .filter-section {
        padding: 1rem 0.5rem;
    }
    
    .filter-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .provider-filters {
        padding: 0 5px;
    }
    
    .provider-item {
        gap: 0.2rem;
    }
    
    .filter-btn {
        width: 80px;
        height: 60px;
        padding: 0.3rem;
    }
    
    .provider-logo {
        width: 70px;
        height: 35px;
    }
    
    .provider-name {
         font-size: 0.55rem;
         letter-spacing: 0.3px;
         margin-top: 0.1rem;
         text-align: center;
         width: 100%;
         overflow: visible;
         white-space: nowrap;
     }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .carousel-nav.prev {
        left: 2px;
    }
    
    .carousel-nav.next {
        right: 2px;
    }
    
    .carousel-indicators {
        margin-top: 0.8rem;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
}