/* Rankings Page Styles */

.rankings-hero {
    position: relative;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

.rankings-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.rankings-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.rankings-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.rankings-hero .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

/* Filter Section */
.rankings-filter {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-form label {
    font-weight: 700;
    color: #fff;
}

.filter-form select {
    flex: 1;
    max-width: 300px;
    padding: 12px 15px;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* Rankings Info */
.rankings-info {
    background: rgba(196, 30, 58, 0.1);
    border-left: 4px solid #c41e3a;
    padding: 15px 20px;
    margin-bottom: 40px;
    border-radius: 4px;
}

.rankings-info p {
    margin: 0;
    color: #ddd;
    line-height: 1.6;
}

/* Weight Class Sections */
.weight-class-section {
    margin-bottom: 80px;
}

.weight-class-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 3px solid #c41e3a;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rankings List */
.rankings-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 60px;
}

.ranking-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    display: grid;
    grid-template-columns: 80px 200px 1fr auto;
    gap: 25px;
    align-items: center;
    transition: all 0.3s ease;
}

.ranking-card:hover {
    border-color: #c41e3a;
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.2);
}

/* Top 3 Special Styling */
.ranking-card.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(196, 30, 58, 0.05) 100%);
    border-color: #FFD700;
}

.ranking-card.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(196, 30, 58, 0.05) 100%);
    border-color: #C0C0C0;
}

.ranking-card.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(196, 30, 58, 0.05) 100%);
    border-color: #CD7F32;
}

/* Rank Number */
.rank-number {
    font-size: 48px;
    font-weight: 900;
    color: #c41e3a;
    text-align: center;
    line-height: 1;
}

.rank-1 .rank-number {
    color: #FFD700;
}

.rank-2 .rank-number {
    color: #C0C0C0;
}

.rank-3 .rank-number {
    color: #CD7F32;
}

.rank-hash {
    font-size: 24px;
    opacity: 0.5;
}

/* Fighter Photo */
.fighter-photo {
    position: relative;
    width: 200px;
    height: 250px;
    border-radius: 6px;
    overflow: hidden;
    background: #0a0a0a;
}

.fighter-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.champion-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Fighter Details */
.fighter-details {
    flex: 1;
}

.fighter-name {
    font-size: 24px;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.nickname {
    color: #c41e3a;
    font-style: italic;
    font-weight: 600;
    margin: 0 5px;
}

.fighter-meta {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 14px;
}

.weight-class {
    font-weight: 700;
    color: #fff;
}

/* Fighter Record */
.fighter-record {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.record-item {
    text-align: center;
}

.record-label {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.record-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.score-highlight {
    color: #c41e3a;
    font-size: 20px;
}

/* Ranking Actions */
.ranking-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-view-profile {
    padding: 12px 25px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-view-profile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

/* Ranking Criteria */
.ranking-criteria {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
}

.ranking-criteria h2 {
    font-size: 28px;
    color: #fff;
    margin: 0 0 20px 0;
}

.ranking-criteria ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-criteria li {
    padding: 12px 0;
    border-bottom: 1px solid #333;
    color: #ddd;
    line-height: 1.6;
}

.ranking-criteria li:last-child {
    border-bottom: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state h2 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 15px;
}

.empty-state p {
    color: #aaa;
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 1024px) {
    .ranking-card {
        grid-template-columns: 60px 150px 1fr auto;
        gap: 20px;
        padding: 20px;
    }

    .rank-number {
        font-size: 36px;
    }

    .fighter-photo {
        width: 150px;
        height: 200px;
    }

    .fighter-record {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rankings-hero {
        padding: 60px 18px;
    }

    .rankings-hero h1 {
        font-size: 2.5rem;
    }

    .rankings-filter {
        padding: 20px;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-form label {
        margin-bottom: 8px;
    }

    .filter-form select {
        max-width: 100%;
    }

    .ranking-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }

    .rank-number {
        font-size: 48px;
    }

    .fighter-photo {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .fighter-name {
        font-size: 20px;
    }

    .fighter-record {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ranking-actions {
        width: 100%;
    }

    .btn-view-profile {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .rankings-hero {
        padding: 50px 16px;
    }

    .rankings-list {
        gap: 18px;
    }

    .ranking-card {
        padding: 18px;
    }

    .fighter-photo {
        max-width: 220px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    .rankings-hero {
        padding: 40px 16px;
        margin-bottom: 40px;
    }

    .rankings-hero h1 {
        font-size: 2rem;
    }

    .rankings-hero .subtitle {
        font-size: 1.1rem;
    }

    .rankings-filter {
        padding: 15px;
    }

    .rankings-info {
        padding: 12px 16px;
    }

    .ranking-card {
        padding: 15px;
    }

    .rank-number {
        font-size: 40px;
    }

    .fighter-photo {
        max-width: 200px;
        height: 260px;
    }

    .fighter-name {
        font-size: 18px;
    }

    .fighter-meta {
        font-size: 13px;
    }

    .fighter-record {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .record-label {
        font-size: 10px;
    }

    .record-value {
        font-size: 16px;
    }

    .score-highlight {
        font-size: 18px;
    }

    .btn-view-profile {
        padding: 10px 20px;
        font-size: 13px;
    }

    .ranking-criteria {
        padding: 20px;
    }

    .ranking-criteria h2 {
        font-size: 22px;
    }

    .ranking-criteria li {
        padding: 10px 0;
        font-size: 14px;
    }
}

