/* Custom CSS for TrophyTally */

/* Global Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Cards and Containers */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.stat-card {
    border-left: 4px solid var(--bs-primary);
}

/* Game Type Labels */
.game-type-badge {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1rem;
}

/* Leaderboard */
.leaderboard-item {
    border-left: 3px solid transparent;
    transition: background-color 0.2s;
}

.leaderboard-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.leaderboard-item.first {
    border-left-color: gold;
}

.leaderboard-item.second {
    border-left-color: silver;
}

.leaderboard-item.third {
    border-left-color: #cd7f32; /* bronze */
}

/* Achievement Icons */
.achievement-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.achievement-locked {
    filter: grayscale(1);
    opacity: 0.5;
}

/* Alert Fade Transitions */
.alert {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.alert.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.alert.alert-dismissible .btn-close {
    transition: opacity 0.3s ease;
}

.alert.alert-dismissible .btn-close:hover {
    opacity: 0.8;
}

/* Group Score Form Styling */
.player-form-card {
    background-color: transparent !important;
    border: 1px solid var(--bs-secondary) !important;
}

.player-form-card .card-header {
    background-color: rgba(var(--bs-secondary-rgb), 0.25) !important;
    border-bottom: 1px solid var(--bs-secondary) !important;
}

.player-form-card .card-body {
    background-color: transparent !important;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .chart-container {
        height: 250px;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}