/* Odds Intelligence + World Cup Hub */

/* ── Odds Intelligence ── */
#odds-hub-section,
#odds-home-teaser {
    margin-bottom: 2.5rem;
}

.oi-home-teaser {
    border-radius: 16px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.oi-filters {
    padding: 1rem 1.25rem;
    border-radius: 16px;
}

.oi-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    align-items: end;
}

.oi-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.oi-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-family: var(--font-stack);
    width: 100%;
}

.oi-filter-btn {
    height: 38px;
    align-self: end;
    white-space: nowrap;
}

.oi-results-meta {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Badge indicando fonte de dados alternativa (Sofascore, ESPN, Local) */
.oi-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #f39c12;
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.25);
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    animation: fadeIn 0.4s ease;
}

.oi-source-badge i {
    font-size: 0.6rem;
}

.oi-all-matches {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.oi-bm-badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.68rem;
    color: #5dade2;
    background: rgba(93, 173, 226, 0.12);
    padding: 2px 8px;
    border-radius: 999px;
}

.oi-compare-title {
    font-size: 0.8rem;
    margin: 1rem 0 0.5rem;
    color: var(--text-muted);
}

.oi-compare-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
}

.oi-compare-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    align-items: center;
    font-size: 0.75rem;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.oi-compare-row.is-best {
    border: 1px solid rgba(46, 204, 113, 0.35);
    background: rgba(46, 204, 113, 0.08);
}

.oi-compare-bm {
    font-weight: 600;
}

.oi-move-shortening {
    color: #e74c3c;
    font-size: 0.65rem;
}

.oi-move-drifting {
    color: #2ecc71;
    font-size: 0.65rem;
}

@media (max-width: 768px) {
    .oi-filters-grid {
        grid-template-columns: 1fr 1fr;
    }

    .oi-filter-btn {
        grid-column: 1 / -1;
    }
}

.oi-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.oi-top-card {
    display: flex;
    gap: 12px;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(46, 204, 113, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.oi-top-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.12);
}

.oi-match-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.oi-meta {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.oi-pick-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.oi-pick-label {
    color: #5dade2;
    font-weight: 700;
    font-size: 0.8rem;
}

.oi-odd {
    font-weight: 800;
    font-size: 0.95rem;
}

.oi-edge {
    color: #2ecc71;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Confidence ring */
.oi-ring {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.oi-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.oi-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 3;
}

.oi-ring-fill {
    fill: none;
    stroke: var(--oi-color, #2ecc71);
    stroke-width: 3;
    stroke-dasharray: calc(var(--oi-pct) * 0.974) 100;
    stroke-linecap: round;
}

.oi-ring-text {
    fill: #fff;
    font-size: 11px;
    font-weight: 800;
    text-anchor: middle;
    transform: rotate(90deg);
    transform-origin: 18px 18px;
}

/* Detail cards */
.oi-detail-card {
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.oi-detail-card.expanded,
.oi-detail-card:hover {
    border-color: rgba(46, 204, 113, 0.35);
}

.oi-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.oi-detail-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.oi-detail-left h4 {
    margin: 0;
    font-size: 0.95rem;
}

.oi-detail-score {
    text-align: right;
    font-weight: 800;
    color: #2ecc71;
    font-size: 1.1rem;
    line-height: 1.2;
}

.oi-detail-score small {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.oi-detail-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.oi-pick-main {
    font-size: 1.1rem;
    font-weight: 800;
    color: #5dade2;
}

.oi-badge-strong {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.oi-prob-bars {
    margin-bottom: 1rem;
}

.oi-prob-row {
    display: grid;
    grid-template-columns: 56px 1fr 40px;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.72rem;
}

.oi-prob-row span:first-child {
    color: var(--text-muted);
}

.oi-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.oi-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.oi-bar.model {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.oi-bar.market {
    background: rgba(255, 255, 255, 0.25);
}

.oi-detail-footer {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.oi-edge-block .oi-edge-big {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2ecc71;
}

.oi-edge-block small,
.oi-fair small {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.oi-fair b {
    font-size: 1.1rem;
}

.oi-analysis {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 3px solid #2ecc71;
}

.oi-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* ── World Cup Hub ── */
.wc-hub-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.wc-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.15rem;
}

.wc-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.wc-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wc-stadium-slide {
    min-width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 220px;
    background: linear-gradient(135deg, #1a472a, #0d1117);
}

.wc-stadium-slide.no-img {
    min-height: 180px;
}

.wc-stadium-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.wc-stadium-slide.no-img .wc-stadium-img {
    display: none;
}

.wc-stadium-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

.wc-stadium-role {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #f1c40f;
    letter-spacing: 0.06em;
}

.wc-stadium-info h4 {
    margin: 0.25rem 0;
    font-size: 1.15rem;
}

.wc-stadium-info p {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.wc-stadium-tip {
    margin-top: 0.5rem !important;
    font-size: 0.72rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.wc-match-count {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
}

.wc-carousel-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.wc-carousel-btn:hover {
    background: var(--primary);
}

/* Ball card */
.wc-ball-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    align-items: center;
}

@media (max-width: 640px) {
    .wc-ball-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .wc-ball-visual {
        width: 150px;
        height: 150px;
    }
}

.wc-ball-visual {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    flex-shrink: 0;
}

.wc-ball-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    animation: wcBallFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.wc-ball-glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.3), transparent);
    border-radius: 50%;
    animation: wcBallPulse 3s ease infinite;
}

@keyframes wcBallFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes wcBallPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.wc-ball-features {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.wc-ball-features li {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 4px 0;
}

.wc-ball-features i {
    width: 18px;
    color: var(--primary);
}

.wc-ball-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Groups */
.wc-groups-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 1rem;
}

.wc-group-chip {
    padding: 1rem 0.85rem;
    border-radius: 14px;
    text-align: center;
}

.wc-group-name {
    display: block;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wc-group-teams {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-top: 0.15rem;
}

.wc-group-teams span {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.28rem 0.35rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    line-height: 1.35;
}

/* Calendar */
.wc-calendar {
    max-height: 360px;
    overflow-y: auto;
}

.wc-cal-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 10px;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    align-items: center;
}

@media (max-width: 540px) {
    .wc-cal-row {
        grid-template-columns: 64px 1fr;
    }
    .wc-cal-venue { display: none; }
}

.wc-cal-date b {
    display: block;
    font-size: 0.85rem;
}

.wc-cal-date span {
    color: var(--text-muted);
    font-size: 0.65rem;
}

.wc-cal-group {
    display: block;
    font-size: 0.62rem;
    color: var(--primary);
    font-weight: 700;
}

.wc-cal-venue {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.wc-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .oi-top-grid {
        grid-template-columns: 1fr;
    }

    .oi-detail-head {
        flex-direction: column;
        gap: 0.75rem;
    }

    .oi-detail-score {
        text-align: left;
    }
}
