/* SOG Against page specific styles */

/* Filters Bar */
.filters-bar {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 20px;
    background: #0f3460;
    border-radius: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filters-bar .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters-bar label {
    color: #aaa;
    font-weight: 600;
}

.filters-bar select {
    padding: 8px 15px;
    background: #16213e;
    border: 1px solid #00d4ff;
    border-radius: 20px;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Rankings Grid */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.ranking-table-section {
    background: #16213e;
    border-radius: 8px;
    padding: 20px;
}

.ranking-table-section h2 {
    margin-bottom: 5px;
    font-size: 1.3rem;
    color: #00d4ff;
}

.section-desc {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* Ranking List */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #0f3460;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ranking-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.rank-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.team-logo {
    width: 60px;
    height: 60px;
    margin-right: 12px;
    flex-shrink: 0;
}

.team-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-abbrev {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    min-width: 45px;
}

.team-games {
    color: #888;
    font-size: 0.8rem;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-left: auto;
    text-align: right;
}

.stat-value small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: #888;
}

/* Color coding for ranks (green=best=fewest shots, red=worst=most shots) */
.rank-1, .rank-2, .rank-3, .rank-4 { background: #166534; color: #dcfce7; }
.rank-5, .rank-6, .rank-7, .rank-8 { background: #15803d; color: #dcfce7; }
.rank-9, .rank-10, .rank-11, .rank-12 { background: #22c55e; color: #052e16; }
.rank-13, .rank-14, .rank-15, .rank-16 { background: #84cc16; color: #1a2e05; }
.rank-17, .rank-18, .rank-19, .rank-20 { background: #eab308; color: #422006; }
.rank-21, .rank-22, .rank-23, .rank-24 { background: #f97316; color: #431407; }
.rank-25, .rank-26, .rank-27, .rank-28 { background: #ef4444; color: #450a0a; }
.rank-29, .rank-30, .rank-31, .rank-32 { background: #dc2626; color: #fef2f2; }

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px;
    background: #0f3460;
    border-radius: 8px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 0.85rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* Loading */
#loading {
    text-align: center;
    padding: 40px;
}

/* Info Banner */
.info-banner {
    background: #1e3a5f;
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #aaa;
    margin-bottom: 20px;
}

/* Error */
.error {
    color: #ef4444;
    text-align: center;
    padding: 20px;
}

.no-data {
    color: #888;
    text-align: center;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .rankings-grid {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        flex-direction: column;
        gap: 15px;
    }

    .ranking-item {
        padding: 8px 10px;
    }

    .team-logo {
        width: 32px;
        height: 32px;
    }

    .rank-badge {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}
