/* ============================================
   UFC Analytics ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Main Stylesheet
   ============================================ */

:root {
    --bg-primary:    #0a0a0f;
    --bg-secondary:  #12121a;
    --bg-card:       #1a1a2e;
    --bg-card-hover: #222240;
    --bg-elevated:   #252542;
    --border-color:  #2a2a4a;
    --border-light:  #3a3a5a;

    --text-primary:   #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted:     #6868808;

    --accent-red:     #d20a2e;
    --accent-red-glow:#d20a2e44;
    --accent-gold:    #c9a227;
    --accent-gold-dim:#c9a22744;
    --accent-green:   #00c853;
    --accent-green-dim:#00c85333;
    --accent-blue:    #2979ff;
    --accent-blue-dim:#2979ff33;
    --accent-orange:  #ff6d00;

    --font-heading: 'Oswald', sans-serif;
    --font-body:    'Inter', sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow-red: 0 0 30px var(--accent-red-glow);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: #64b5f6; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---- Navigation ---- */
.main-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky; /* keep sticky */
}
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; position: relative; /* anchor for absolute dropdown */
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-primary); font-family: var(--font-heading);
    font-size: 1.4rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px;
}
.logo-icon {
    color: var(--accent-red); font-size: 1.6rem;
}
.nav-links { display: flex; gap: 8px; }
.nav-links a {
    color: var(--text-secondary); padding: 8px 16px;
    border-radius: var(--radius-sm); font-weight: 500;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.2s;
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-links a.active {
    color: #fff; background: var(--accent-red);
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text-primary);
    margin: 5px 0; transition: 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--bg-secondary); flex-direction: column;
        padding: 16px; border-bottom: 1px solid var(--border-color);
        z-index: 999;
    }
    .nav-links.open { display: flex; }
}

/* ---- Main Content ---- */
.site-main { min-height: calc(100vh - 64px - 200px); }

/* ---- Hero Section ---- */
.hero {
    position: relative; padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a0a1e 50%, var(--bg-primary) 100%);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, var(--accent-red-glow) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, var(--accent-blue-dim) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: translate(0,0) rotate(0deg); }
    100% { transform: translate(-2%,1%) rotate(3deg); }
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero h1 {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900; text-transform: uppercase; letter-spacing: 3px;
    line-height: 1.1; margin-bottom: 16px;
}
.hero h1 .highlight { color: var(--accent-red); }
.hero .subtitle {
    color: var(--text-secondary); font-size: 1.15rem;
    max-width: 600px; margin: 0 auto 32px;
}
.hero-stats {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .number {
    font-family: var(--font-heading); font-size: 2.5rem;
    font-weight: 700; color: var(--accent-gold);
    display: block;
}
.hero-stat .label {
    font-size: 0.8rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 2px;
}

/* ---- Section Headers ---- */
.section { padding: 60px 0; }
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.section-header h2 {
    font-family: var(--font-heading); font-size: 1.8rem;
    text-transform: uppercase; letter-spacing: 2px;
    position: relative; padding-left: 16px;
}
.section-header h2::before {
    content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 4px; background: var(--accent-red); border-radius: 2px;
}
.view-all {
    color: var(--text-secondary); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 8px 20px; border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); transition: all 0.2s;
}
.view-all:hover { border-color: var(--accent-red); color: var(--accent-red); }

/* ---- Cards ---- */
.card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); overflow: hidden;
    transition: all 0.3s; position: relative;
}
.card:hover {
    border-color: var(--border-light); transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border-bottom: 1px solid var(--border-color);
}
.card-body { padding: 20px; }

/* ---- Event Cards ---- */
.events-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}
.event-card .card-header {
    display: flex; justify-content: space-between; align-items: center;
}
.event-card .event-name {
    font-family: var(--font-heading); font-size: 1.1rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-primary);
}
.event-card .event-date {
    font-size: 0.8rem; color: var(--accent-gold);
    font-weight: 600; white-space: nowrap;
}
.event-card .event-location {
    font-size: 0.8rem; color: var(--text-secondary);
    margin-top: 4px;
}

/* ---- Fight Row ---- */
.fight-row {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fight-row:last-child { border-bottom: none; }
.fighter-left { text-align: right; }
.fighter-right { text-align: left; }
.fighter-name {
    font-weight: 600; font-size: 0.9rem; display: block;
}
.fighter-name.winner { color: var(--accent-green); }
.fighter-odds {
    font-size: 0.75rem; color: var(--text-muted);
    font-family: 'Courier New', monospace;
}
.vs-badge {
    background: var(--bg-primary); color: var(--text-muted);
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    border: 1px solid var(--border-color); flex-shrink: 0;
}
.method-badge {
    display: inline-block; padding: 2px 8px;
    border-radius: 3px; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.method-badge.ko  { background: #ff1744; color: #fff; }
.method-badge.sub { background: #651fff; color: #fff; }
.method-badge.dec { background: #2979ff; color: #fff; }
.method-badge.other { background: #555; color: #ccc; }

/* ---- Fighter Cards ---- */
.fighters-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.fighter-card .card-body { padding: 24px; }
.fighter-card .fighter-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 16px;
}
.fighter-card .fighter-main-name {
    font-family: var(--font-heading); font-size: 1.3rem;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; line-height: 1.2;
}
.fighter-card .fighter-record {
    font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px;
}
.fighter-card .stance-badge {
    padding: 4px 12px; border-radius: var(--radius-sm);
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    background: var(--bg-primary); border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.fighter-card .stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; margin-top: 16px;
}
.stat-box {
    background: var(--bg-primary); border-radius: var(--radius-sm);
    padding: 12px 8px; text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
}
.stat-box .stat-value {
    font-family: var(--font-heading); font-size: 1.3rem;
    font-weight: 700; color: var(--accent-gold); display: block;
}
.stat-box .stat-label {
    font-size: 0.65rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; margin-top: 2px;
}

/* ---- Stat Bars ---- */
.stat-bar-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 8px;
}
.stat-bar-label {
    font-size: 0.75rem; color: var(--text-secondary);
    width: 60px; text-align: right; flex-shrink: 0;
}
.stat-bar-track {
    flex: 1; height: 6px; background: var(--bg-primary);
    border-radius: 3px; overflow: hidden;
}
.stat-bar-fill {
    height: 100%; border-radius: 3px;
    transition: width 1s ease-out;
}
.stat-bar-fill.red { background: linear-gradient(90deg, var(--accent-red), #ff4466); }
.stat-bar-fill.blue { background: linear-gradient(90deg, var(--accent-blue), #64b5f6); }
.stat-bar-fill.gold { background: linear-gradient(90deg, var(--accent-gold), #ffd54f); }
.stat-bar-fill.green { background: linear-gradient(90deg, var(--accent-green), #69f0ae); }
.stat-bar-value {
    font-size: 0.75rem; color: var(--text-primary);
    width: 40px; flex-shrink: 0; font-weight: 600;
}

/* ---- Prediction Card ---- */
.prediction-card {
    background: linear-gradient(135deg, var(--bg-card), #1e1e3a);
    border: 1px solid var(--accent-gold-dim);
}
.prediction-card .card-header {
    background: linear-gradient(135deg, #2a1a00, var(--bg-elevated));
}
.prob-bar {
    display: flex; height: 32px; border-radius: var(--radius-sm);
    overflow: hidden; margin: 12px 0; position: relative;
}
.prob-bar .f1-prob {
    background: linear-gradient(90deg, var(--accent-red), #e53560);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem; color: #fff;
    transition: width 1s ease-out;
}
.prob-bar .f2-prob {
    background: linear-gradient(90deg, #2979ff, var(--accent-blue));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem; color: #fff;
    transition: width 1s ease-out;
}

/* ---- Badges & Pills ---- */
.badge {
    display: inline-flex; align-items: center; padding: 4px 10px;
    border-radius: 20px; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-upcoming { background: var(--accent-green-dim); color: var(--accent-green); }
.badge-completed { background: rgba(100,100,120,0.3); color: var(--text-secondary); }
.badge-live { background: var(--accent-red); color: #fff; animation: pulse 1.5s infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.weight-class-pill {
    display: inline-block; padding: 2px 10px;
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: 20px; font-size: 0.7rem; color: var(--text-secondary);
}

/* ---- Search & Filters ---- */
.search-bar {
    display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap;
}
.search-input {
    flex: 1; min-width: 250px; padding: 12px 20px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); color: var(--text-primary);
    font-size: 0.95rem; font-family: var(--font-body);
    transition: border-color 0.2s;
}
.search-input:focus {
    outline: none; border-color: var(--accent-red);
    box-shadow: 0 0 0 3px var(--accent-red-glow);
}
.search-input::placeholder { color: var(--text-muted); }
.filter-select {
    padding: 12px 16px; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    color: var(--text-primary); font-size: 0.9rem;
    font-family: var(--font-body); cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239898b0'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.filter-select:focus { outline: none; border-color: var(--accent-red); }

/* ---- Pagination ---- */
.pagination {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 40px; flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 500;
    border: 1px solid var(--border-color);
    color: var(--text-secondary); transition: all 0.2s;
}
.pagination a:hover { border-color: var(--accent-red); color: var(--text-primary); }
.pagination .active {
    background: var(--accent-red); color: #fff;
    border-color: var(--accent-red);
}

/* ---- Tables ---- */
.data-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-card); border-radius: var(--radius-md);
    overflow: hidden;
}
.data-table thead th {
    background: var(--bg-elevated); padding: 14px 16px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-secondary);
    text-align: left; border-bottom: 2px solid var(--border-color);
}
.data-table tbody td {
    padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.9rem;
}
.data-table tbody tr:hover { background: var(--bg-card-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ---- Loading Spinner ---- */
.spinner {
    display: flex; justify-content: center; padding: 60px 0;
}
.spinner::after {
    content: ''; width: 40px; height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Empty State ---- */
.empty-state {
    text-align: center; padding: 80px 20px; color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 8px; }

/* ---- Footer ---- */
.site-footer {
    background: var(--bg-secondary); border-top: 1px solid var(--border-color);
    padding: 48px 0 24px; margin-top: 60px;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px; margin-bottom: 32px;
}
.footer-col h4 {
    font-family: var(--font-heading); text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 12px; font-size: 0.9rem;
}
.footer-col a {
    display: block; color: var(--text-secondary);
    padding: 4px 0; font-size: 0.85rem;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-col p, .footer-note { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px; text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .events-grid { grid-template-columns: 1fr; }
    .fighters-grid { grid-template-columns: 1fr; }
    .fighter-card .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 24px; }
    .fight-row { grid-template-columns: 1fr auto 1fr; gap: 8px; }
    .fighter-name { font-size: 0.8rem; }
}

/* ---- Mobile table centering ---- */
@media (max-width: 640px) {
    /* Overflow wrappers: allow scroll but hint centering */
    .card[style*="overflow-x"] {
        -webkit-overflow-scrolling: touch;
    }

    /* Data table: tighten and hide less-important cols */
    .data-table { font-size: 0.72rem; }
    .data-table thead th { padding: 8px 6px; font-size: 0.62rem; }
    .data-table tbody td { padding: 8px 6px; font-size: 0.78rem; }
    .data-table th:first-child,
    .data-table td:first-child {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* General: ensure tables center in their containers */
    .detail-panel > table,
    .card-body > div > table {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---- Animations on scroll ---- */
.fade-up {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Utility */
.text-center { text-align: center; }
.text-red { color: var(--accent-red); }
.text-green { color: var(--accent-green); }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }

/* Segmented probability bar (theme-safe) */
.prob-bar { display:flex; height:32px; border-radius:var(--radius-sm); overflow:hidden; margin:12px 0; position:relative; background:none; }
.prob-side { display:flex; position:relative; min-width:0; }
.prob-seg { display:flex; align-items:center; justify-content:center; color:#fff; font-size:10px; line-height:1; white-space:nowrap; }
.prob-seg.ko  { background:#ff1744; }  /* match your method-badge.ko */
.prob-seg.sub { background:#651fff; }  /* match your method-badge.sub */
.prob-seg.dec { background:#2979ff; }  /* match your method-badge.dec */
.prob-total { position:absolute; top:50%; transform:translateY(-50%); font-size:11px; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.35); pointer-events:none; }
.prob-total.left{ left:8px; } .prob-total.right{ right:8px; }

/* Lock F1 left / F2 right for the row */
.fight-row { direction:ltr; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; }
.fighter-left{ grid-column:1; text-align:right; }
.vs-badge{ grid-column:2; }
.fighter-right{ grid-column:3; text-align:left; }










/* ================================
   LOCK F1 LEFT / F2 RIGHT
   (pin grid columns; do not rely on source order)
   ================================ */
.fight-row {
  direction: ltr;                 /* hard-stop any RTL flip */
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | VS | right */
  align-items: center;
  gap: 12px;
}
.fighter-left  { grid-column: 1; text-align: right; }
.vs-badge      { grid-column: 2; }
.fighter-right { grid-column: 3; text-align: left; }

/* ================================
   SEGMENTED PROBABILITY BAR (3 shades per side)
   ================================ */
.prob-bar {
  display: flex;
  flex-direction: row;
  height: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 12px 0;
  position: relative;
  background: none; /* prevent grey fringe if segments fill 100% */
}
.prob-side {
  display: flex;
  position: relative;
  min-width: 0;
}

/* Segment base */
.prob-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

/* ===== F1 (LEFT) Ã¢â‚¬â€ 3 SHADES OF RED ===== */
.prob-side.f1 .prob-seg.ko  { background: #D20A2E; } /* deep red (KO)   */
.prob-side.f1 .prob-seg.sub { background: #E24A64; } /* mid red (SUB)   */
.prob-side.f1 .prob-seg.dec { background: #F07A90; } /* light red (DEC) */

/* ===== F2 (RIGHT) Ã¢â‚¬â€ 3 SHADES OF BLUE ===== */
.prob-side.f2 .prob-seg.ko  { background: #2979FF; } /* deep blue (KO)  */
.prob-side.f2 .prob-seg.sub { background: #4A90FF; } /* mid blue (SUB)  */
.prob-side.f2 .prob-seg.dec { background: #79ADFF; } /* light blue (DEC) */

/* Optional: overlay totals inside the bar */
.prob-total {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  pointer-events: none;
}
.prob-total.left  { left: 8px; }
.prob-total.right { right: 8px; }

/* ================================
   FIX INVALID HEX FOR --text-muted
   ================================ */
:root {
  /* was: --text-muted: #6868808;  (invalid) */
  --text-muted: #686880;
}
/* ================================
   CLEAN PROBABILITY BAR (NEW)
   ================================ */
.prob-bar-wrap {
    margin: 10px 0 6px;
}
.prob-bar-clean {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.06);
    cursor: crosshair;
}
.pbc-f1 {
    background: linear-gradient(90deg, #D20A2E, #E24A64);
    height: 100%;
    border-radius: 5px 0 0 5px;
    transition: width 0.4s ease;
}
.pbc-f2 {
    background: linear-gradient(90deg, #4A90FF, #2979FF);
    height: 100%;
    border-radius: 0 5px 5px 0;
    transition: width 0.4s ease;
}
.pbc-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.pbc-pct-left  { color: #E24A64; }
.pbc-pct-right { color: #4A90FF; }

/* Tooltip */
.pbc-tooltip {
    position: fixed;
    background: rgba(10,10,20,0.95);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.75rem;
    padding: 7px 10px;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.15s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.pbc-tooltip.visible {
    opacity: 1;
}

/* Fighter name links in fight rows */
.fighter-name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.fighter-name-link:hover {
    color: var(--accent-gold, #D4AF37);
    text-decoration: underline;
    text-decoration-color: rgba(212,175,55,0.5);
    text-underline-offset: 2px;
}


/* ================================
   CLEAN PROBABILITY BAR (NEW)
   ================================ */
.prob-bar-wrap {
    margin: 10px 0 6px;
}
.prob-bar-clean {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.06);
    cursor: crosshair;
}
.pbc-f1 {
    background: linear-gradient(90deg, #D20A2E, #E24A64);
    height: 100%;
    border-radius: 5px 0 0 5px;
    transition: width 0.4s ease;
}
.pbc-f2 {
    background: linear-gradient(90deg, #4A90FF, #2979FF);
    height: 100%;
    border-radius: 0 5px 5px 0;
    transition: width 0.4s ease;
}
.pbc-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.pbc-pct-left  { color: #E24A64; }
.pbc-pct-right { color: #4A90FF; }

/* Tooltip */
.pbc-tooltip {
    position: fixed;
    background: rgba(10,10,20,0.95);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.75rem;
    padding: 7px 10px;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.15s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.pbc-tooltip.visible {
    opacity: 1;
}

/* Fighter name links in fight rows */
.fighter-name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.fighter-name-link:hover {
    color: var(--accent-gold, #D4AF37);
    text-decoration: underline;
    text-decoration-color: rgba(212,175,55,0.5);
    text-underline-offset: 2px;
}
/* ---- Contact Page ---- */
.contact-section { padding: 40px 0 80px; }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.5fr;
    gap: 40px; align-items: start;
}
.contact-info-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px;
}
.contact-info-card h3 {
    font-family: var(--font-heading); text-transform: uppercase;
    letter-spacing: 1px; font-size: 1rem; margin-bottom: 8px;
}
.contact-info-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.contact-info-icon { font-size: 1.8rem; margin-bottom: 12px; }

.contact-form-wrapper {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: 32px;
}
.contact-form-title {
    font-family: var(--font-heading); text-transform: uppercase;
    letter-spacing: 2px; font-size: 1.2rem; margin-bottom: 24px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase;
    letter-spacing: 1px;
}
.form-group .required { color: var(--accent-red); }
.form-group input,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-family: var(--font-body); font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--accent-red);
    box-shadow: 0 0 0 3px var(--accent-red-glow);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.btn-submit {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; background: var(--accent-red); color: #fff;
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-submit:hover {
    background: #b8091f; box-shadow: var(--shadow-glow-red);
    transform: translateY(-1px);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit .btn-icon { font-size: 1.1rem; }

.contact-success {
    background: var(--bg-card); border: 1px solid var(--accent-green-dim);
    border-radius: var(--radius-md); padding: 48px 32px; text-align: center;
}
.contact-success-icon {
    font-size: 3rem; color: var(--accent-green); margin-bottom: 16px;
}
.contact-success h3 {
    font-family: var(--font-heading); text-transform: uppercase;
    letter-spacing: 2px; font-size: 1.3rem; margin-bottom: 8px;
}
.contact-success p { color: var(--text-secondary); }

.contact-error {
    background: rgba(210,10,46,0.1); border: 1px solid var(--accent-red);
    border-radius: var(--radius-sm); padding: 12px 16px;
    color: var(--accent-red); font-size: 0.9rem; margin-bottom: 20px;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 24px 16px; }
}
