/* FIGHTERS STYLES - Fighter Rankings */

.fighters-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Fighters Header */
.fighters-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: #000000;
    border-radius: 8px;
}

.fighters-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffaa00;
    text-shadow: 2px 2px 4px rgba(255, 170, 0, 0.5);
}

.fighters-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #cccccc;
    font-style: italic;
}

.fighters-header-actions {
    margin-top: 20px;
}

.fighters-header-actions .champions-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ffaa00, #ff6f00);
    color: #000000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(255, 170, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fighters-header-actions .champions-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 170, 0, 0.45);
}

/* Fighters Table */
.fighters-table-container {
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.fighters-table {
    width: 100%;
    border-collapse: collapse;
    background: #000000;
}

.fighters-table thead {
    background: #000000;
}

.fighters-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: bold;
    font-family: var(--font-body);
    color: #ffaa00;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-bottom: 2px solid #ffffff;
}

.fighters-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #222222;
    color: #ffffff;
    font-family: var(--font-body);
}

.fighter-row {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fighter-row:hover {
    background: #111111;
}

.fighter-row:last-child td {
    border-bottom: none;
}

/* Column Styling */
.rank-column {
    width: 80px;
    text-align: center;
}

.avatar-column {
    width: 50px;
    text-align: center;
}

.avatar-cell {
    text-align: center;
    padding: 8px !important;
}

.avatar-cell .fighter-avatar-img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #444;
}

.fighter-column {
    width: auto;
}

.team-column {
    width: 150px;
}

.wins-column, .losses-column, .draws-column {
    width: 80px;
    text-align: center;
}

.status-column {
    width: 100px;
    text-align: center;
}

/* Rank Badges */
.rank-cell {
    text-align: center;
}

.rank-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.rank-badge.rank-1 {
    background: #ffaa00;
    color: #000000;
}

.rank-badge.rank-2 {
    background: #c0c0c0;
    color: #000000;
}

.rank-badge.rank-3 {
    background: #cd7f32;
    color: #000000;
}

.rank-number {
    color: #888888;
    font-weight: bold;
}

/* Fighter Info */
.fighter-name {
    font-weight: bold;
    color: #ffffff;
}

.team-name {
    color: #cccccc;
    font-style: italic;
}

/* Stats */
.wins-cell, .losses-cell, .draws-cell {
    text-align: center;
}

.wins-count {
    color: #00ff00;
    font-weight: bold;
}

.losses-count {
    color: #ff4444;
    font-weight: bold;
}

.draws-count {
    color: #ffaa00;
    font-weight: bold;
}

/* Status */
.status-cell {
    text-align: center;
}

.status-dead {
    color: #ff4444;
    font-weight: bold;
    font-size: 0.9rem;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: inline !important;
    text-shadow: 0 0 10px rgba(255,68,68,0.35), 0 0 2px rgba(255,68,68,0.25);
}

.status-alive {
    color: #00ff00;
    font-weight: bold;
    font-size: 0.9rem;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: inline !important;
}

.status-undead {
    color: #c4b5fd; /* lavender */
    font-weight: bold;
    font-size: 0.9rem;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: inline !important;
    position: relative;
    text-shadow: 0 0 10px rgba(196,181,253,0.55), 0 0 6px rgba(0,255,128,0.22);
}

/* Subtle sickly shimmer for undead label in table rows */
@keyframes undeadShimmerLabel {
    0% { text-shadow: 0 0 6px rgba(196,181,253,0.35), 0 0 2px rgba(0,255,128,0.12); }
    50% { text-shadow: 0 0 14px rgba(196,181,253,0.7), 0 0 8px rgba(0,255,128,0.26); }
    100% { text-shadow: 0 0 6px rgba(196,181,253,0.35), 0 0 2px rgba(0,255,128,0.12); }
}

.status-undead {
    animation: undeadShimmerLabel 2000ms ease-in-out infinite;
}

/* Faint animated halo behind the UNDEAD label to make it read on dark rows */
.status-undead::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 125%;
    height: 150%;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(196,181,253,0.25) 0%, rgba(0,255,128,0.08) 45%, rgba(0,0,0,0) 70%);
    filter: blur(4px);
    opacity: 0.65;
    border-radius: 50%;
    animation: undeadHalo 2200ms ease-in-out infinite;
}

@keyframes undeadHalo {
    0% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.98); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.03); }
    100% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.98); }
}

/* Empty State */
.empty-fighters {
    text-align: center;
    padding: 60px 30px;
}

.empty-state h3 {
    color: #ff4444;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.empty-state p {
    color: #cccccc;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Footer */
.fighters-footer {
    text-align: center;
}

.fighters-note {
    color: #888888;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 20px;
}

.back-button {
    display: inline-block;
    padding: 12px 25px;
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #ffffff;
    color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fighters-container {
        padding: 15px;
    }
    
    .fighters-header {
        padding: 20px;
    }
    
    .fighters-header h2 {
        font-size: 1.8rem;
    }
    
    .fighters-table th,
    .fighters-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .team-column {
        display: none;
    }
    
    .draws-column {
        display: none;
    }
    
    .fighter-name {
        font-size: 0.9rem;
    }
} 

/* Sortable Table Headers */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
}

.sortable:hover {
    background-color: rgba(255, 170, 0, 0.1);
    color: #ffaa00;
}

.sortable.sort-asc {
    background-color: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
}

.sortable.sort-desc {
    background-color: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
}

/* Active sort styling */
.sortable.sort-asc:after,
.sortable.sort-desc:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffaa00;
} 