/* ===========================
   Stats Page Styles
   =========================== */

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.stats-container h1 {
    text-align: center;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stats-card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.stats-card h2 {
    color: #ffd700;
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
}

.stat-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-row.highlight {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    font-weight: bold;
}

.stat-label {
    color: #aaa;
    font-size: 14px;
}

.stat-value {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.win-text {
    color: #4caf50;
}

.loss-text {
    color: #f44336;
}

.balance-text {
    color: #ffd700;
}

/* Game Breakdown Section */
.game-breakdown {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.game-breakdown h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 10px;
}

.breakdown-note {
    text-align: center;
    color: #aaa;
    font-style: italic;
    margin-bottom: 20px;
}

.breakdown-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.breakdown-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.breakdown-card:hover {
    transform: translateY(-5px);
}

.breakdown-card .game-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.breakdown-card h3 {
    color: #ffd700;
    margin-bottom: 10px;
}

.breakdown-card p {
    color: white;
    margin-bottom: 15px;
    font-size: 14px;
}

.breakdown-stats {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.breakdown-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.breakdown-stat .label {
    color: #aaa;
    font-size: 12px;
}

.breakdown-stat .value {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

/* Recent Activity Section */
.recent-activity {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.recent-activity h2 {
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.transaction-item {
    display: grid;
    grid-template-columns: 50px 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.transaction-item.transaction-positive {
    border-left-color: #4caf50;
}

.transaction-item.transaction-negative {
    border-left-color: #f44336;
}

.transaction-icon {
    font-size: 32px;
    text-align: center;
}

.transaction-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.transaction-type {
    color: white;
    font-weight: bold;
}

.transaction-game {
    color: #aaa;
    font-size: 14px;
}

.transaction-amount {
    font-size: 20px;
    font-weight: bold;
    min-width: 100px;
    text-align: right;
}

.transaction-date {
    color: #aaa;
    font-size: 12px;
    min-width: 100px;
    text-align: right;
}

.no-activity {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

/* Stats Actions */
.stats-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .breakdown-cards {
        grid-template-columns: 1fr;
    }
    
    .transaction-item {
        grid-template-columns: 40px 1fr;
        gap: 10px;
    }
    
    .transaction-amount {
        grid-column: 2;
        text-align: left;
        margin-top: 5px;
    }
    
    .transaction-date {
        grid-column: 2;
        text-align: left;
    }
    
    .stats-actions {
        flex-direction: column;
    }
}
