/* ============================================================
   boxing-research.css  –  Boxing Research Hub styles
   ============================================================ */

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(230, 57, 70, 0.15); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ── Hero Section ─────────────────────────────────────────── */
.research-hero {
    width: 100%;
    padding: 100px 0 60px;
    background:
        linear-gradient(180deg, rgba(10,10,10,0.92) 0%, rgba(22,22,22,0.96) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(230,57,70,0.03) 20px,
            rgba(230,57,70,0.03) 21px
        );
    text-align: center;
    position: relative;
    overflow: hidden;
}
.research-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(230,57,70,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.research-hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--txt);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.research-hero h1 span {
    color: var(--red);
    position: relative;
}
.research-hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--red);
    opacity: 0.5;
    transform: skewX(-12deg);
}
.hero-subtitle {
    color: var(--sub);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ── Quick Nav Tabs ───────────────────────────────────────── */
.research-tabs {
    position: sticky;
    top: 72px;
    z-index: 100;
    background: var(--bg1);
    border-bottom: 2px solid var(--bdr);
    padding: 12px 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.research-tabs-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px;
}
.research-tabs-inner::-webkit-scrollbar {
    display: none;
}
.research-tab {
    background: transparent;
    color: var(--sub);
    border: 1px solid var(--bdr);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.research-tab i {
    font-size: 0.75rem;
}
.research-tab:hover {
    color: var(--txt);
    border-color: var(--red);
    background: rgba(230, 57, 70, 0.06);
}
.research-tab.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    box-shadow: 0 2px 12px rgba(230, 57, 70, 0.3);
}

/* ── Research Section ─────────────────────────────────────── */
.research-section {
    padding: 60px 0;
    position: relative;
}
.research-section:nth-child(even) {
    background: var(--bg1);
}

/* ── Search Bar ───────────────────────────────────────────── */
.research-search {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}
.research-search input {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--bdr);
    color: var(--txt);
    padding: 12px 20px 12px 44px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-family: 'Barlow', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}
.research-search input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15), 0 0 20px rgba(230, 57, 70, 0.08);
}
.research-search input::placeholder {
    color: #555;
}
.research-search > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sub);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.3s ease;
}
.research-search input:focus + i,
.research-search:focus-within > i {
    color: var(--red);
}

/* ── No Results ───────────────────────────────────────────── */
.no-results {
    text-align: center;
    color: var(--sub);
    font-size: 0.95rem;
    margin-top: 24px;
    padding: 20px;
}

/* ── Fight Result Cards ───────────────────────────────────── */
.fight-result-card {
    background: var(--bg2);
    border: 1px solid var(--bdr);
    border-radius: 10px;
    padding: 24px 20px;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}
.fight-card-wrapper:nth-child(2) .fight-result-card { animation-delay: 0.05s; }
.fight-card-wrapper:nth-child(3) .fight-result-card { animation-delay: 0.1s; }
.fight-card-wrapper:nth-child(4) .fight-result-card { animation-delay: 0.15s; }
.fight-card-wrapper:nth-child(5) .fight-result-card { animation-delay: 0.2s; }
.fight-card-wrapper:nth-child(6) .fight-result-card { animation-delay: 0.25s; }

.fight-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.fight-result-card:hover {
    transform: translateY(-4px);
    border-color: var(--red);
    box-shadow: 0 8px 32px rgba(230, 57, 70, 0.12), 0 4px 12px rgba(0,0,0,0.3);
}
.fight-result-card:hover::before {
    opacity: 1;
}

.fight-date {
    font-size: 0.8rem;
    color: var(--sub);
    margin-bottom: 16px;
    font-weight: 500;
}
.fight-date i {
    margin-right: 4px;
    color: var(--red);
}

.fight-vs-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.fight-fighter {
    flex: 1;
    text-align: center;
}
.fighter-name-label {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--txt);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}
.fight-winner-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Barlow Condensed', sans-serif;
}
.fight-winner-badge i {
    font-size: 0.6rem;
    margin-right: 2px;
}

.fight-vs-divider {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
    flex-shrink: 0;
    position: relative;
    padding: 0 4px;
}

.fight-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--bdr);
}
.fight-method,
.fight-location {
    font-size: 0.8rem;
    color: var(--sub);
    font-weight: 500;
}
.fight-method i,
.fight-location i {
    color: var(--red);
    margin-right: 4px;
    font-size: 0.75rem;
}

.fight-detail-link {
    display: inline-block;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.fight-detail-link i {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}
.fight-detail-link:hover {
    color: var(--txt);
}
.fight-detail-link:hover i {
    transform: translateX(4px);
}

/* ── Fighter Lookup Cards ─────────────────────────────────── */
.fighter-lookup-card {
    display: block;
    background: var(--bg2);
    border: 1px solid var(--bdr);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.5s ease both;
}
.fighter-card-wrapper:nth-child(2) .fighter-lookup-card { animation-delay: 0.05s; }
.fighter-card-wrapper:nth-child(3) .fighter-lookup-card { animation-delay: 0.1s; }
.fighter-card-wrapper:nth-child(4) .fighter-lookup-card { animation-delay: 0.15s; }
.fighter-card-wrapper:nth-child(5) .fighter-lookup-card { animation-delay: 0.2s; }
.fighter-card-wrapper:nth-child(6) .fighter-lookup-card { animation-delay: 0.25s; }

.fighter-lookup-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 10px 32px rgba(230, 57, 70, 0.15), 0 4px 12px rgba(0,0,0,0.3);
}

.fighter-lookup-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: var(--bg1);
}
.fighter-lookup-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}
.fighter-lookup-card:hover .fighter-lookup-image img {
    transform: scale(1.06);
}
.fighter-lookup-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg2) 0%, transparent 100%);
    pointer-events: none;
}
.fighter-lookup-flag {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 22px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.fighter-lookup-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fighter-lookup-info {
    padding: 16px 20px 20px;
}
.fighter-lookup-info h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fighter-lookup-record {
    display: inline-block;
    background: rgba(230, 57, 70, 0.12);
    color: var(--red);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 2px 10px;
    border-radius: 10px;
    margin-right: 8px;
    letter-spacing: 1px;
}
.fighter-lookup-division {
    display: inline-block;
    background: rgba(244, 165, 0, 0.1);
    color: var(--gold);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}
.fighter-lookup-country {
    display: block;
    color: var(--sub);
    font-size: 0.82rem;
    margin-top: 8px;
    font-weight: 500;
}

/* ── Odds Table ───────────────────────────────────────────── */
.odds-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg2);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--bdr);
}
.odds-table thead {
    background: var(--bg1);
}
.odds-table th {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sub);
    padding: 14px 18px;
    border-bottom: 2px solid var(--red);
}
.odds-table td {
    padding: 14px 18px;
    color: var(--txt);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--bdr);
    vertical-align: middle;
    transition: background 0.2s ease;
}
.odds-table tbody tr:hover td {
    background: rgba(230, 57, 70, 0.04);
}
.odds-table tbody tr:last-child td {
    border-bottom: none;
}
.odds-fight-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.95rem !important;
    color: var(--txt) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.odds-favorite {
    color: #22c55e !important;
    font-weight: 700;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem !important;
    letter-spacing: 0.5px;
}
.odds-underdog {
    color: var(--gold) !important;
    font-weight: 700;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem !important;
    letter-spacing: 0.5px;
}
.odds-date {
    color: var(--sub) !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
}
.odds-disclaimer {
    text-align: center;
    color: var(--sub);
    font-size: 0.78rem;
    margin-top: 16px;
}
.odds-disclaimer i {
    margin-right: 4px;
    color: var(--gold);
}

/* ── Upcoming Event Cards ─────────────────────────────────── */
.event-upcoming-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg2);
    border: 1px solid var(--bdr);
    border-radius: 10px;
    padding: 20px 24px;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}
.event-upcoming-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--red);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.event-upcoming-card:hover {
    transform: translateY(-3px);
    border-color: var(--red);
    box-shadow: 0 6px 24px rgba(230, 57, 70, 0.1), 0 2px 8px rgba(0,0,0,0.2);
}
.event-upcoming-card:hover::after {
    opacity: 1;
}

.event-upcoming-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 10px 8px;
    background: linear-gradient(135deg, var(--red), #c0222e);
    border-radius: 8px;
    flex-shrink: 0;
}
.event-day {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.event-month {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.event-year {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    letter-spacing: 1px;
}

.event-upcoming-info {
    flex: 1;
    min-width: 0;
}
.event-upcoming-info h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.event-venue,
.event-sport {
    color: var(--sub);
    font-size: 0.82rem;
    margin-bottom: 2px;
}
.event-venue i,
.event-sport i {
    color: var(--red);
    width: 16px;
    margin-right: 4px;
    font-size: 0.75rem;
}

.event-status-pill {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 12px;
    flex-shrink: 0;
}
.event-status-pill.upcoming {
    background: rgba(244, 165, 0, 0.12);
    color: var(--gold);
    border: 1px solid rgba(244, 165, 0, 0.3);
}

/* ── On This Day Timeline ─────────────────────────────────── */
.otd-timeline {
    max-width: 700px;
    margin: 0 auto;
}
.otd-card {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
    animation: fadeInUp 0.5s ease both;
}
.otd-card:nth-child(2) { animation-delay: 0.1s; }
.otd-card:nth-child(3) { animation-delay: 0.2s; }

.otd-dot-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
    padding-top: 6px;
}
.otd-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--red);
    border: 3px solid var(--bg0);
    box-shadow: 0 0 0 2px var(--red), 0 0 12px rgba(230, 57, 70, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.otd-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--red), var(--bdr));
    min-height: 40px;
}

.otd-content {
    flex: 1;
    background: var(--bg2);
    border: 1px solid var(--bdr);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.35s ease;
}
.otd-content:hover {
    border-color: var(--red);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.08);
}
.otd-year {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.25);
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.otd-content h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.otd-content p {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}
.otd-link {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.otd-link i {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}
.otd-link:hover {
    color: var(--txt);
}
.otd-link:hover i {
    transform: translateX(4px);
}

/* ── Discord CTA ──────────────────────────────────────────── */
.discord-cta {
    background: linear-gradient(135deg, #5865F2 0%, #404EED 100%);
    border-radius: 16px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}
.discord-cta::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.discord-cta::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,0,0,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.discord-cta-content {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}
.discord-cta-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.discord-cta-text {
    flex: 1;
}
.discord-cta-text h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.discord-cta-text p {
    color: rgba(255,255,255,0.82);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 520px;
}
.discord-cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.discord-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #5865F2;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.discord-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    background: #f0f0f0;
    color: #404EED;
}
.discord-meta {
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .research-hero {
        padding: 80px 16px 40px;
    }
    .research-hero h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }

    .research-tabs {
        top: 62px;
        padding: 8px 0;
    }
    .research-tabs-inner {
        gap: 6px;
    }
    .research-tab {
        padding: 6px 14px;
        font-size: 0.72rem;
    }

    .research-section {
        padding: 40px 0;
    }

    .fight-vs-layout {
        flex-direction: column;
        gap: 6px;
    }
    .fight-vs-divider {
        font-size: 1rem;
    }

    .event-upcoming-card {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }
    .event-status-pill {
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }

    .otd-card {
        gap: 12px;
    }
    .otd-content {
        padding: 16px;
    }
    .otd-content h3 {
        font-size: 1.1rem;
    }

    .discord-cta {
        padding: 28px 20px;
        border-radius: 12px;
    }
    .discord-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .discord-cta-text h2 {
        font-size: 1.5rem;
    }
    .discord-cta-text p {
        font-size: 0.88rem;
    }
    .discord-cta-actions {
        justify-content: center;
        flex-direction: column;
    }

    .odds-table th,
    .odds-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .research-hero h1 {
        font-size: 1.8rem;
    }
    .fighter-lookup-info h3 {
        font-size: 1.1rem;
    }
}
