/**
 * Division Tables Spezifisches CSS
 */

.lol-liga-division-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Division Header */
.division-header {
    background: linear-gradient(135deg, var(--lol-dark-secondary) 0%, var(--lol-blue-accent) 100%);
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 40px;
    border: 2px solid var(--lol-gold-primary);
    position: relative;
    overflow: hidden;
}

.division-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.division-header h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--lol-gold-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

/* Table Enhancements */
.division-standings-wrapper {
    position: relative;
}

.table-refresh-btn {
    position: absolute;
    top: -60px;
    right: 0;
    background: var(--lol-dark-tertiary);
    border: 1px solid var(--lol-gold-primary);
    color: var(--lol-text-primary);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.table-refresh-btn:hover {
    background: var(--lol-gold-primary);
    color: var(--lol-dark-bg);
}

.table-refresh-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Playoff Indicators */
.division-standings tbody tr:nth-child(1),
.division-standings tbody tr:nth-child(2) {
    position: relative;
}

.division-standings tbody tr:nth-child(1)::before,
.division-standings tbody tr:nth-child(2)::before {
    content: '↑';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--lol-success);
    font-weight: 900;
}

.division-standings tbody tr:nth-last-child(1),
.division-standings tbody tr:nth-last-child(2) {
    position: relative;
}

.division-standings tbody tr:nth-last-child(1)::before,
.division-standings tbody tr:nth-last-child(2)::before {
    content: '↓';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--lol-error);
    font-weight: 900;
}

/* Game Score Details */
.game-score {
    font-size: 13px;
    color: var(--lol-text-secondary);
    margin-top: 4px;
}

.game-score span {
    margin: 0 4px;
}

/* Placement Type Badges */
.placement-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
}

.placement-badge.promoted {
    background: rgba(16, 185, 129, 0.2);
    color: var(--lol-success);
    border: 1px solid var(--lol-success);
}

.placement-badge.relegated {
    background: rgba(239, 68, 68, 0.2);
    color: var(--lol-error);
    border: 1px solid var(--lol-error);
}

.placement-badge.retained {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    border: 1px solid #60a5fa;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .division-standings {
        font-size: 13px;
    }
    
    .division-standings th,
    .division-standings td {
        padding: 12px 8px;
    }
    
    .team-tag {
        display: none;
    }
    
    .division-header h1 {
        font-size: 32px;
    }
}
