/* ===================================
   VISITOR COUNTER STYLES
   =================================== */
#visitor-count {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 215, 0, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

#visitor-count i {
    font-size: 18px;
    color: #FFD700;
}

#visitor-count span {
    font-size: 14px;
    color: #EFC87E;
}

#visitor-count strong {
    color: #FFD700;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    #visitor-count {
        flex-direction: column;
        gap: 5px;
        padding: 8px 15px;
    }
    
    #visitor-count span {
        font-size: 12px;
    }
}

/* ===================================
   LEADERBOARD STYLES
   =================================== */
.leaderboard-section {
    margin: 30px auto;
    max-width: 600px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(239, 200, 126, 0.1));
    padding: 25px;
    border-radius: 15px;
    border: 3px solid #FFD700;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.5s ease-out;
}

.leaderboard-section h3 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.leaderboard-list {
    margin-top: 15px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.leaderboard-item:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateX(5px);
    border-color: #FFD700;
}

.leaderboard-item .rank {
    font-size: 22px;
    min-width: 45px;
    text-align: center;
    font-weight: bold;
}

.leaderboard-item .name {
    flex: 1;
    padding: 0 15px;
    font-weight: bold;
    color: #fff;
    font-size: 16px;
}

.leaderboard-item .amount {
    color: #FFD700;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Top 3 special styles */
.leaderboard-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
    border: 2px solid gold;
}

.leaderboard-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.3), rgba(192, 192, 192, 0.1));
    border: 2px solid silver;
}

.leaderboard-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.3), rgba(205, 127, 50, 0.1));
    border: 2px solid #CD7F32;
}

/* ===================================
   STATISTICS STYLES
   =================================== */
.stats-section {
    margin: 30px auto;
    max-width: 700px;
    background: linear-gradient(135deg, rgba(226, 124, 108, 0.1), rgba(239, 200, 126, 0.1));
    padding: 25px;
    border-radius: 15px;
    border: 3px solid #E27C6C;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.5s ease-out 0.1s both;
}

.stats-section h3 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.stat-item i {
    font-size: 36px;
    color: #FFD700;
    margin-bottom: 12px;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
    margin: 8px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 14px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .leaderboard-section,
    .stats-section {
        margin: 20px 10px;
        padding: 15px;
    }
    
    .leaderboard-section h3,
    .stats-section h3 {
        font-size: 20px;
    }
    
    .leaderboard-item {
        padding: 10px;
    }
    
    .leaderboard-item .rank {
        font-size: 18px;
        min-width: 35px;
    }
    
    .leaderboard-item .name {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .leaderboard-item .amount {
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-item i {
        font-size: 30px;
    }
    
    .stat-value {
        font-size: 24px;
    }
}

/* ===================================
   LOADING STATES
   =================================== */
.loading {
    text-align: center;
    padding: 20px;
    color: #FFD700;
}

.loading i {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   PLAYER FORM STYLES
   =================================== */
.player-form {
    margin: 25px auto;
    max-width: 450px;
    text-align: left;
    background: rgba(255, 215, 0, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #FFD700;
    animation: slideInUp 0.5s ease-out;
}

.player-form label {
    display: block;
    margin: 15px 0 8px;
    color: #FFD700;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.player-form input,
.player-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #FFD700;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.player-form input:focus,
.player-form select:focus {
    outline: none;
    border-color: #FFA500;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.player-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.player-form select {
    cursor: pointer;
}

.player-form select option {
    background: #1C2033;
    color: #fff;
}

/* ===================================
   LIXI AMOUNT DISPLAY
   =================================== */
.lixi-amount {
    color: #FFD700;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    display: inline-block;
    animation: bounce 0.5s ease-out;
}

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