/* assets/css/market-types.css
   Purpose: VS card, categorical display, scalar display
   Used on: explore-one.php, product-details.php, index.php
   Created: 2026-04-15 */

/* ── VS SPORTS MATCH CARD ── */
.vs-card {
    background: #111722;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 20px;
    cursor: pointer;
    transition: border-color .2s, transform .15s;
    position: relative;
    overflow: hidden;
}
.vs-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(14,203,129,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.vs-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }

.vs-header {
    display: grid; grid-template-columns: 1fr auto 1fr;
    gap: 12px; align-items: center; margin-bottom: 16px;
}
.vs-team {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.vs-team-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.vs-team-icon img { width: 36px; height: 36px; object-fit: contain; }
.vs-team-name {
    font-size: 13px; font-weight: 700; color: #E8ECF4;
    text-align: center; max-width: 100px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vs-badge {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px; font-weight: 900; color: #606878;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; padding: 6px 10px;
}

.vs-outcomes { display: flex; gap: 8px; }
.vs-outcome-btn {
    flex: 1; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9px; padding: 10px 6px;
    text-align: center; cursor: pointer;
    transition: background .15s, border-color .15s;
    text-decoration: none; display: block;
}
.vs-outcome-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.vs-outcome-btn.win  { border-color: rgba(14,203,129,0.25); }
.vs-outcome-btn.draw { border-color: rgba(240,180,41,0.25); }
.vs-outcome-btn.lose { border-color: rgba(246,70,93,0.25); }
.vs-outcome-btn .vob-label { font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #A0AAB8; display: block; margin-bottom: 3px; }
.vs-outcome-btn .vob-pct   { font-family: 'IBM Plex Mono', monospace; font-size: 15px; font-weight: 700; }
.vs-outcome-btn.win  .vob-pct { color: #0ECB81; }
.vs-outcome-btn.draw .vob-pct { color: #F0B429; }
.vs-outcome-btn.lose .vob-pct { color: #F6465D; }

/* ── CATEGORICAL MARKET CARD ── */
.cat-outcome-row {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
}
.cat-outcome-label { font-size: 12px; color: #A0AAB8; min-width: 80px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-outcome-bar-wrap { flex: 1; height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.cat-outcome-bar { height: 100%; border-radius: 3px; transition: width .4s ease; background: #4D9FFF; }
.cat-outcome-pct { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; color: #4D9FFF; min-width: 32px; text-align: right; }

/* ── SCALAR MARKET CARD ── */
.scalar-tag { font-size: 11px; color: #C47DFF; background: rgba(196,125,255,0.1); border: 1px solid rgba(196,125,255,0.2); border-radius: 100px; padding: 2px 10px; display: inline-block; margin-bottom: 8px; font-weight: 700; letter-spacing: .5px; }
.scalar-ranges-preview { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.scalar-range-pill { font-size: 11px; color: #A0AAB8; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; padding: 3px 10px; font-family: 'IBM Plex Mono', monospace; }

/* ── CATEGORICAL PRODUCT DETAIL TRADING PANEL ── */
.multi-outcomes-list { display: flex; flex-direction: column; gap: 10px; }
.multi-outcome-row {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px; padding: 14px 16px;
    display: flex; align-items: center; gap: 14px;
    transition: border-color .2s;
}
.multi-outcome-row:hover { border-color: rgba(255,255,255,0.14); }
.mor-icon  { font-size: 20px; flex-shrink: 0; }
.mor-info  { flex: 1; min-width: 0; }
.mor-label { font-size: 14px; font-weight: 700; color: #E8ECF4; margin-bottom: 5px; }
.mor-bar-wrap { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.mor-bar { height: 100%; border-radius: 2px; background: #4D9FFF; transition: width .5s ease; }
.mor-meta { display: flex; gap: 12px; font-size: 11px; color: #606878; font-family: 'IBM Plex Mono', monospace; }
.mor-action { flex-shrink: 0; }
.btn-back-outcome {
    background: rgba(77,159,255,0.12); color: #4D9FFF;
    border: 1px solid rgba(77,159,255,0.25);
    border-radius: 8px; padding: 8px 14px;
    font-size: 12px; font-weight: 700; cursor: pointer;
    transition: background .2s; white-space: nowrap;
    text-decoration: none; display: inline-block;
}
.btn-back-outcome:hover { background: rgba(77,159,255,0.22); color: #4D9FFF; text-decoration: none; }

/* ── MARKET ICON DISPLAY ── */
.market-icon-display {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,0.05); font-size: 22px;
    flex-shrink: 0; overflow: hidden;
}
.market-icon-display img { width: 28px; height: 28px; object-fit: contain; }

@media (max-width: 600px) {
    .vs-outcomes { flex-direction: column; }
}
