/**
 * LoL Liga Manager - Public Main CSS
 * Dark Theme mit Gold-Akzenten für Alchemists Theme
 */

:root {
    --lol-dark-bg: #0a0e27;
    --lol-dark-secondary: #141b3d;
    --lol-dark-tertiary: #1e2647;
    --lol-gold-primary: #d4af37;
    --lol-gold-secondary: #f4d03f;
    --lol-blue-accent: #2c5282;
    --lol-text-primary: #e4e6eb;
    --lol-text-secondary: #b0b3b8;
    --lol-success: #10b981;
    --lol-error: #ef4444;
    --lol-warning: #f59e0b;
}

/* Global Styles */
.lol-liga-division-table,
.lol-liga-matchdays,
.lol-liga-match-details,
.lol-liga-team-profile,
.lol-liga-player-profile,
.lol-liga-team-creation,
.lol-liga-player-search-board,
.lol-liga-team-search-board {
    font-family: 'Rajdhani', 'Roboto', sans-serif;
    color: var(--lol-text-primary);
}

/* Division Table */
.lol-liga-division-table {
    background: var(--lol-dark-secondary);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.division-standings {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--lol-dark-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

.division-standings thead {
    background: linear-gradient(135deg, var(--lol-blue-accent) 0%, var(--lol-dark-secondary) 100%);
}

.division-standings th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lol-gold-primary);
    border-bottom: 2px solid var(--lol-gold-primary);
}

.division-standings tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.division-standings tbody tr:hover {
    background: rgba(212, 175, 55, 0.08);
    transform: translateX(4px);
}

.division-standings td {
    padding: 16px 20px;
    font-size: 15px;
    color: var(--lol-text-secondary);
}

.division-standings .rank {
    font-weight: 800;
    font-size: 18px;
    color: var(--lol-gold-primary);
    width: 50px;
    text-align: center;
}

.division-standings tbody tr:nth-child(1) .rank,
.division-standings tbody tr:nth-child(2) .rank {
    color: var(--lol-gold-secondary);
    text-shadow: 0 0 10px rgba(244, 208, 63, 0.5);
}

.division-standings tbody tr:nth-last-child(1) .rank,
.division-standings tbody tr:nth-last-child(2) .rank {
    color: var(--lol-error);
}

.division-standings .team-name {
    color: var(--lol-text-primary);
    font-weight: 600;
    font-size: 16px;
}

.division-standings .team-tag {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--lol-gold-primary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--lol-gold-primary);
    letter-spacing: 1px;
}

.division-standings .wins {
    color: var(--lol-success);
    font-weight: 700;
    font-size: 17px;
}

.division-standings .losses {
    color: var(--lol-error);
    font-weight: 700;
    font-size: 17px;
}

/* Match Days */
.lol-liga-matchdays {
    margin: 32px 0;
}

.matchday {
    background: var(--lol-dark-secondary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border-left: 4px solid var(--lol-gold-primary);
}

.matchday-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--lol-gold-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.matches-list {
    display: grid;
    gap: 16px;
}

.match-item {
    background: var(--lol-dark-tertiary);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.match-item:hover {
    border-color: var(--lol-gold-primary);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.team.team1 {
    justify-content: flex-start;
}

.team.team2 {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--lol-text-primary);
}

.team-score {
    font-size: 28px;
    font-weight: 900;
    color: var(--lol-gold-primary);
    min-width: 40px;
    text-align: center;
}

.match-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.vs-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--lol-gold-secondary);
    text-shadow: 0 0 10px rgba(244, 208, 63, 0.3);
}

.match-time {
    font-size: 12px;
    color: var(--lol-text-secondary);
    text-align: center;
}

.match-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

.match-status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-status-badge.scheduled {
    background: rgba(44, 82, 130, 0.3);
    color: #60a5fa;
    border: 1px solid #60a5fa;
}

.match-status-badge.live {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
    border: 1px solid #f87171;
    animation: pulse 2s infinite;
}

.match-status-badge.completed {
    background: rgba(16, 185, 129, 0.3);
    color: #34d399;
    border: 1px solid #34d399;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Team Profile */
.lol-liga-team-profile {
    background: var(--lol-dark-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.team-header {
    background: linear-gradient(135deg, var(--lol-dark-tertiary) 0%, var(--lol-blue-accent) 100%);
    padding: 48px 40px;
    display: flex;
    gap: 32px;
    align-items: center;
    border-bottom: 3px solid var(--lol-gold-primary);
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--lol-gold-primary);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lol-dark-bg);
    font-size: 64px;
    font-weight: 900;
    color: var(--lol-gold-primary);
}

.team-info {
    flex: 1;
}

.team-name {
    font-size: 42px;
    font-weight: 900;
    color: var(--lol-text-primary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--lol-gold-primary);
    color: var(--lol-dark-bg);
    font-size: 18px;
    font-weight: 800;
    border-radius: 6px;
    letter-spacing: 2px;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--lol-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: var(--lol-gold-primary);
}

.stat-value.wins {
    color: var(--lol-success);
}

.stat-value.losses {
    color: var(--lol-error);
}

/* Team Roster */
.team-roster {
    padding: 40px;
}

.team-roster h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--lol-gold-primary);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.roster-member {
    background: var(--lol-dark-tertiary);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.roster-member:hover {
    border-color: var(--lol-gold-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.roster-member.manager {
    border-left: 4px solid var(--lol-gold-primary);
}

.roster-member.coach {
    border-left: 4px solid var(--lol-blue-accent);
}

.roster-member.player {
    border-left: 4px solid var(--lol-text-secondary);
}

.member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--lol-gold-primary);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.member-role-badge.manager {
    background: var(--lol-gold-primary);
    color: var(--lol-dark-bg);
}

.member-role-badge.coach {
    background: var(--lol-blue-accent);
    color: white;
}

.member-role-badge.player {
    background: var(--lol-text-secondary);
    color: var(--lol-dark-bg);
}

.member-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--lol-text-primary);
    margin: 0;
}

.member-name a {
    color: var(--lol-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.member-name a:hover {
    color: var(--lol-gold-primary);
}

.summoner-name {
    display: block;
    font-size: 13px;
    color: var(--lol-text-secondary);
    margin-top: 4px;
}

/* Buttons */
.button-primary,
.lol-liga-team-profile .button-primary,
.lol-liga-player-profile .button-primary {
    background: linear-gradient(135deg, var(--lol-gold-primary) 0%, var(--lol-gold-secondary) 100%);
    color: var(--lol-dark-bg);
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.button-apply,
.button-match-details {
    background: var(--lol-dark-tertiary);
    color: var(--lol-text-primary);
    border: 1px solid var(--lol-gold-primary);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button-apply:hover,
.button-match-details:hover {
    background: var(--lol-gold-primary);
    color: var(--lol-dark-bg);
}

/* Responsive */
@media (max-width: 768px) {
    .team-header {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    
    .roster-grid {
        grid-template-columns: 1fr;
    }
    
    .match-teams {
        flex-direction: column;
    }
    
    .team.team2 {
        flex-direction: row;
    }
}
