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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0a0a0a;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

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

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .tagline {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 300;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav a:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credits-display {
    background: rgba(255, 215, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: 500;
}

.credits-icon {
    margin-right: 0.5rem;
}

.btn-join {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f0f23 70%, #000 100%);
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.casino-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 215, 0, 0.1) 2px,
        rgba(255, 215, 0, 0.1) 4px
    );
    animation: lights 3s ease-in-out infinite alternate;
}

@keyframes lights {
    0% { opacity: 0.05; }
    100% { opacity: 0.15; }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #ccc;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 215, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #ffd700;
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

/* Slot Machine Preview */
.hero-slot-demo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slot-machine-preview {
    background: linear-gradient(145deg, #2c2c54, #1a1a2e);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.slot-header h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.slot-reels {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.reel {
    background: #000;
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 1rem 0.5rem;
    min-width: 60px;
    animation: reel-spin 2s ease-in-out infinite;
}

.reel:nth-child(2) {
    animation-delay: 0.2s;
}

.reel:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes reel-spin {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
}

.symbol {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.spin-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.spin-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Games Section */
.games {
    padding: 80px 0;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #0f0f23 100%);
    color: white;
}

.games h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffd700;
}

.games-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 215, 0, 0.1);
    color: white;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: linear-gradient(145deg, #2c2c54, #1a1a2e);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.game-image {
    height: 150px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.game-preview {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.game-info p {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.game-stats span {
    background: rgba(255, 215, 0, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.play-btn {
    width: 100%;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 0.8rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Tournaments Section */
.tournaments {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
}

.tournaments h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffd700;
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tournament-card {
    background: linear-gradient(145deg, #2c2c54, #1a1a2e);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tournament-header {
    background: linear-gradient(45deg, #16213e, #1a1a2e);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.tournament-header h3 {
    color: #ffd700;
    font-size: 1.3rem;
}

.tournament-status {
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tournament-status.active {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.tournament-status.upcoming {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.tournament-info {
    padding: 1.5rem;
}

.tournament-info p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

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

.detail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail .label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.detail .value {
    font-weight: 600;
    color: #ffd700;
}

.countdown {
    font-family: 'Courier New', monospace;
}

.tournament-btn {
    width: 100%;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.tournament-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.tournament-btn.disabled {
    background: #555;
    cursor: not-allowed;
}

.tournament-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Leaderboard Section */
.leaderboard {
    padding: 80px 0;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #0f0f23 100%);
    color: white;
}

.leaderboard h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffd700;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 215, 0, 0.1);
    color: white;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
}

.leaderboard-table {
    background: linear-gradient(145deg, #2c2c54, #1a1a2e);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.leaderboard-header {
    background: linear-gradient(45deg, #16213e, #1a1a2e);
    padding: 1rem;
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px;
    gap: 1rem;
    font-weight: 600;
    color: #ffd700;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.leaderboard-row {
    padding: 1rem;
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.leaderboard-row:hover {
    background: rgba(255, 215, 0, 0.05);
}

.leaderboard-row.crown {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
}

.rank {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.player {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.score, .credits {
    font-weight: 600;
    text-align: right;
}

.credits {
    color: #2ecc71;
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffd700;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features-list {
    display: grid;
    gap: 1.5rem;
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-content h3 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #ccc;
    margin: 0;
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(145deg, #2c2c54, #1a1a2e);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #ccc;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    background: rgba(255, 215, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.social-link:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.footer-disclaimer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.age-warning h4,
.responsible-gaming h4 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

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

.support-links a {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.support-links a:hover {
    background: rgba(231, 76, 60, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.3s ease;
}

.popup.hidden {
    opacity: 0;
    visibility: hidden;
}

.popup-content {
    background: linear-gradient(145deg, #2c2c54, #1a1a2e);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #ffd700;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    color: white;
    max-width: 400px;
    width: 90%;
}

.popup-content h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.bonus-amount {
    font-size: 2.5rem;
    color: #2ecc71;
    font-weight: 700;
    margin: 1rem 0;
}

.popup-close {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.popup-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .tournaments-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 60px 1fr 80px 80px;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .footer-disclaimer {
        grid-template-columns: 1fr;
    }
    
    .tournament-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .games-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .leaderboard-tabs {
        flex-direction: column;
        align-items: center;
    }
}