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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: #ffd700;
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 35, 50, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

/* Hero Banner Styles */
.hero-banner {
    position: relative;
    min-height: 40vh;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #2d1b47 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
    padding: 3rem 0;
}

.hero-overlay {
    display: none;
}

.poker-cards-bg {
    display: none;
}

.card {
    position: absolute;
    width: 120px;
    height: 180px;
    background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0.1;
}

.card-1 {
    top: 10%;
    left: 5%;
    color: #000;
}

.card-2 {
    top: 20%;
    right: 10%;
    color: #dc2626;
}

.card-3 {
    bottom: 30%;
    left: 8%;
    color: #dc2626;
}

.card-4 {
    bottom: 15%;
    right: 15%;
    color: #000;
}

.card-5 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(15deg);
    color: #000;
    opacity: 0.05;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(-10px) rotate(-3deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffd700 0%, #ff6b35 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.hero-title i {
    color: #ffd700;
    margin: 0 1rem;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    to {
        text-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: #b0b0b0;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-chips {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.chip {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: #333;
}

.chip-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip-value {
    position: relative;
    z-index: 10;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.chip-stripe {
    position: absolute;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
}

.chip-stripe:nth-child(1) {
    transform: rotate(0deg);
}

.chip-stripe:nth-child(2) {
    transform: rotate(90deg);
}

.chip-stripe:nth-child(3) {
    transform: rotate(45deg);
}

.chip-stripe:nth-child(4) {
    transform: rotate(135deg);
}

.chip-black {
    background: radial-gradient(circle at 30% 30%, #444444, #000000);
}

.chip-purple {
    background: radial-gradient(circle at 30% 30%, #bb44ff, #660099);
}

.chip-yellow {
    background: radial-gradient(circle at 30% 30%, #ffee44, #ccaa00);
}

.chip-yellow .chip-value {
    color: #000000;
    text-shadow:
        0 2px 4px rgba(255, 255, 255, 0.3),
        0 0 10px rgba(255, 255, 255, 0.2);
}

.chip-yellow .chip-inner {
    border-color: rgba(0, 0, 0, 0.3);
}

.chip-yellow .chip-stripe {
    background: rgba(0, 0, 0, 0.3);
}

.chip-pink {
    background: radial-gradient(circle at 30% 30%, #ff66cc, #dd0099);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    25% {
        transform: translateY(-10px) rotateZ(5deg);
    }
    50% {
        transform: translateY(0px) rotateZ(0deg);
    }
    75% {
        transform: translateY(-5px) rotateZ(-5deg);
    }
}

.hero-stats-section {
    padding: 4rem 0;
    background: transparent;
    border-top: none;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title i {
    color: #ffd700;
    font-size: 2rem;
}

/* Main Content */
.main {
    padding: 0;
    position: relative;
    z-index: 10;
    background: rgba(15, 20, 25, 0.95);
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0 auto;
}

/* Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

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

.stat-card p {
    color: #b0b0b0;
    font-weight: 500;
}

/* Recent Games */
.recent-games {
    margin-top: 4rem;
}

.recent-games h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.game-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.3);
}

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

.game-date {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.game-number {
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-winner {
    color: #ffd700;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
    min-height: 1.5rem;
}

.game-details {
    display: flex;
    justify-content: space-between;
    color: #b0b0b0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
}

.game-hotg {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 0.85rem;
}

.hotg-label {
    color: #ffd700;
    font-weight: 600;
}

.hotg-winner {
    color: #ffffff;
    font-weight: 500;
}

.hotg-amount {
    color: #4ade80;
    font-weight: 600;
    margin-left: auto;
}

.game-buybacks {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    font-size: 0.85rem;
}

.buybacks-label {
    color: #ff6b35;
    font-weight: 600;
    flex-shrink: 0;
}

.buybacks-list {
    color: #b0b0b0;
    font-weight: 400;
}

/* Leaderboard */
.leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover,
.tab-btn.active {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    transform: translateX(10px);
    border-color: rgba(255, 215, 0, 0.3);
}

.leaderboard-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-right: 1.5rem;
    min-width: 3rem;
}

.leaderboard-player {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
}

.leaderboard-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4ade80;
}

.leaderboard-value.negative-profit {
    color: #ef4444;
}

/* Tables */
.games-table-container {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
}

.games-table {
    width: 100%;
    border-collapse: collapse;
}

.games-table th,
.games-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.games-table th {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-weight: 600;
}

.games-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Filter Controls */
.leaderboard-controls,
.stats-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
    gap: 1rem;
}

.leaderboard-controls .filter-select,
.stats-controls .filter-select {
    min-width: 200px;
}

/* Game History Controls */
.game-history-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-input,
.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.filter-select option {
    background: rgba(26, 35, 50, 0.95);
    color: #ffffff;
    padding: 0.5rem;
}

.filter-input:focus,
.filter-select:focus {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Buttons */
.btn {
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    border: none;
    color: #000000;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Player Profile */
.player-profile {
    max-width: 1000px;
    margin: 0 auto;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.player-avatar i {
    font-size: 4rem;
    color: #ffd700;
}

.player-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.player-info p {
    color: #b0b0b0;
    font-size: 1.1rem;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Charts */
.chart-container {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.chart-container h4 {
    margin-bottom: 1rem;
    color: #ffd700;
    text-align: center;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background: rgba(26, 35, 50, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #b0b0b0;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffffff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffd700;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Player Games List */
.player-games-list {
    display: grid;
    gap: 1rem;
}

.player-game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.player-game-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
}

.player-game-date {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.player-game-result {
    font-weight: 600;
}

.player-game-result.win {
    color: #4ade80;
}

.player-game-result.loss {
    color: #ef4444;
}

/* Additional Poker Theme Elements */
.game-card::before {
    content: '♠';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: rgba(255, 215, 0, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 215, 0, 0.1), 
        transparent, 
        rgba(255, 107, 53, 0.1), 
        transparent
    );
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card:hover::before {
    opacity: 1;
}

.leaderboard-item::after {
    content: '♦';
    position: absolute;
    right: 2rem;
    color: rgba(255, 215, 0, 0.2);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.leaderboard-item {
    position: relative;
}

.leaderboard-item:hover::after {
    color: rgba(255, 215, 0, 0.6);
    transform: rotate(180deg);
}

/* Section styling improvements */
.section:not(#home) {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.section:not(#home) h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section:not(#home) h2::before,
.section:not(#home) h2::after {
    content: '♣';
    color: #ffd700;
    font-size: 2rem;
}

.section:not(#home) h2::after {
    content: '♥';
    color: #ff6b35;
}

/* Enhanced game cards */
.game-card {
    position: relative;
    overflow: hidden;
}

.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.1), 
        transparent
    );
    transition: left 0.6s ease;
}

.game-card:hover::after {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-list {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-chips {
        gap: 0.5rem;
    }
    
    .chip {
        width: 60px;
        height: 60px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .game-history-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-dashboard {
        grid-template-columns: 1fr;
    }

    .player-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .player-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .player-stats-grid {
        grid-template-columns: 1fr;
    }

    .games-table th,
    .games-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}