/* =========================================
   Fight Archive Block Styles
   ========================================= */

.ufc-fight-archive-block {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
}

/* Filter Bar */
.ufc-fight-filter-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 15px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ufc-filter-btn {
    padding: 15px 40px;
    background: #0d0d0d;
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.ufc-filter-btn:hover {
    border-color: #d20a0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(210, 10, 10, 0.3);
}

.ufc-filter-btn.active {
    background: linear-gradient(135deg, #d20a0a 0%, #ff4444 100%);
    border-color: #d20a0a;
    box-shadow: 0 4px 20px rgba(210, 10, 10, 0.4);
}

/* Fight Archive Container */
.ufc-fight-archive-container {
    width: 100%;
}

/* Fight Grid */
.ufc-fight-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Fight Card */
.ufc-fight-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding: 20px;
}

.ufc-fight-card:hover {
    transform: translateY(-5px);
    border-color: #d20a0a;
    box-shadow: 0 8px 30px rgba(210, 10, 10, 0.3);
}

.ufc-fight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d20a0a 0%, #ff4444 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ufc-fight-card:hover::before {
    opacity: 1;
}

/* Card Header */
.ufc-fight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.ufc-event-date {
    font-size: 0.9em;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ufc-title-badge {
    padding: 5px 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

/* Card Main (Fighters) */
.ufc-fight-card-main {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px 0;
}

/* Fighter Preview */
.ufc-fighter-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.ufc-fighter-img {
    width: 100px;
    height: 100px;
    position: relative;
}

.ufc-fighter-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid #333;
    transition: all 0.3s ease;
}

.ufc-fight-card:hover .ufc-fighter-img img {
    border-color: #d20a0a;
    box-shadow: 0 0 20px rgba(210, 10, 10, 0.3);
}

.ufc-fighter-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    border: 3px solid #555;
}

.ufc-fighter-name {
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.ufc-fighter-name.winner {
    color: #d20a0a;
    position: relative;
}

.ufc-fighter-name.winner::after {
    content: '✓';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #d20a0a;
    font-size: 1.2em;
    font-weight: 900;
}

/* VS Divider */
.ufc-vs {
    font-size: 1.5em;
    font-weight: 900;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 10px;
    position: relative;
}

.ufc-vs::before,
.ufc-vs::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #333;
}

.ufc-vs::before {
    left: -35px;
}

.ufc-vs::after {
    right: -35px;
}

/* Card Footer */
.ufc-fight-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #333;
    gap: 15px;
}

.ufc-event-name {
    font-size: 0.85em;
    color: #888;
    font-weight: 600;
}

.ufc-fight-result {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.ufc-result-label {
    font-size: 0.7em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ufc-result-value {
    font-size: 0.85em;
    color: #d20a0a;
    font-weight: 700;
}

.ufc-prediction-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: #aaa;
    font-weight: 600;
}

.ufc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* No Results */
.ufc-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1em;
    grid-column: 1 / -1;
}

/* Pagination */
.ufc-pagination {
    text-align: center;
    margin-top: 40px;
}

.ufc-pagination a,
.ufc-pagination span {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 5px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.ufc-pagination a:hover {
    background: #d20a0a;
    border-color: #d20a0a;
    transform: translateY(-2px);
}

.ufc-pagination .current {
    background: #d20a0a;
    border-color: #d20a0a;
}

/* Responsive */
@media (max-width: 768px) {
    .ufc-fight-archive-grid {
        grid-template-columns: 1fr;
    }

    .ufc-filter-btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .ufc-fight-card-main {
        padding: 15px 0;
    }

    .ufc-fighter-img {
        width: 80px;
        height: 80px;
    }

    .ufc-fighter-name {
        font-size: 0.95em;
    }

    .ufc-vs {
        font-size: 1.2em;
    }

    .ufc-vs::before,
    .ufc-vs::after {
        width: 20px;
    }

    .ufc-vs::before {
        left: -25px;
    }

    .ufc-vs::after {
        right: -25px;
    }

    .ufc-fight-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ufc-fight-result {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .ufc-fight-filter-bar {
        flex-direction: column;
        gap: 10px;
    }

    .ufc-filter-btn {
        width: 100%;
    }

    .ufc-fighter-img {
        width: 70px;
        height: 70px;
    }

    .ufc-fighter-name {
        font-size: 0.85em;
    }
}