/* ===================================
   LEAGUE PAGE STYLES - SIMPLIFIÉ
   ================================== */

/* Team Logos */
.team-logo, .team-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.team-logo {
    object-fit: cover;
}

.team-placeholder {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.team-logo:hover, .team-placeholder:hover {
    transform: scale(1.05);
}

/* Ranking Table Logos */
.ranking-logo, .ranking-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.ranking-logo {
    object-fit: cover;
}

.ranking-placeholder {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.ranking-logo:hover, .ranking-placeholder:hover {
    transform: scale(1.1);
}

/* ===================================
   CATEGORY TILES
   ================================== */

.category-tile {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 40px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 8px;
}

.category-tile:hover, .category-tile.active {
    transform: translateY(-2px);
    border-color: #007bff;
    background: #f8f9ff;
    text-decoration: none;
    color: inherit;
}

.category-tile .card-body {
    padding: 0.5rem;
    width: 100%;
}

.category-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.category-tile:hover .category-title {
    color: #007bff;
}

.category-details {
    font-size: 0.7rem;
    color: #6c757d;
    margin: 0;
}

/* ===================================
   TABLES
   ================================== */

.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.sortable-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sort-icon {
    margin-left: 5px;
    font-size: 0.8em;
}

.game-row {
    transition: background-color 0.3s ease;
}

.game-row:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.game-score {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

/* ===================================
   CARDS & BADGES
   ================================== */

.info-card {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 123, 255, 0.05);
}

.badge-custom {
    font-size: 0.8em;
    padding: 0.4em 0.8em;
    border-radius: 12px;
}

/* ===================================
   RESPONSIVE DESIGN
   ================================== */

@media (max-width: 768px) {
    .category-tile {
        min-height: 45px;
    }
    
    .category-title {
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .team-logo, .team-placeholder {
        width: 80px;
        height: 80px;
        font-size: 16px;
    }
    
    .ranking-logo, .ranking-placeholder {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 576px) {
    .info-card .card-body {
        padding: 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.85em;
    }
    
    .team-logo, .team-placeholder {
        width: 60px;
        height: 60px;
        font-size: 14px;
    }
}

/* ===================================
   ACCESSIBILITY
   ================================== */

.sortable-header:focus,
.category-tile:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}