/**
 * Match Content & Odds Styles
 * Ported from KafaSports Theme
 * 
 * @package AylakSpor
 */

:root {
    /* Fallback variables if not defined in main stylesheet */
    --as-primary-light: #2d5a42;
    --as-card-bg: rgba(0, 0, 0, 0.3);
    --as-card-bg-hover: rgba(255, 255, 255, 0.12);
    --as-card-border: rgba(255, 255, 255, 0.08);
    --as-text-muted: rgba(255, 255, 255, 0.5);

    --as-spacing-sm: 0.5rem;
    --as-spacing-md: 1rem;
    --as-spacing-lg: 1.5rem;
    --as-spacing-xl: 2rem;

    --as-radius-sm: 8px;
    --as-radius-md: 12px;
}

/* ========================================
   Predictions Styles
   ======================================== */
.as-predictions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.as-pred-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--as-text);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--as-card-border);
}

/* Quick Stats Row */
.as-pred-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.as-pred-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(74, 157, 109, 0.1);
    border: 1px solid rgba(74, 157, 109, 0.3);
    border-radius: var(--as-radius-sm);
}

.as-pred-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--as-accent);
    border-radius: var(--as-radius-sm);
    color: white;
}

.as-pred-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.as-pred-stat-label {
    font-size: 0.8rem;
    color: var(--as-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.as-pred-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--as-text);
}

/* Team Form List */
.as-pred-form-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.as-pred-form-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--as-radius-sm);
}

.as-pred-form-team {
    font-size: 0.95rem;
    color: var(--as-text);
    font-weight: 500;
}

.as-pred-form-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Form badge colors */
.as-form-superb {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.as-form-excellent {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.as-form-good {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.as-form-decent {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.as-form-average {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.as-form-mediocre {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.as-form-poor {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.as-form-very-poor {
    background: rgba(185, 28, 28, 0.25);
    color: #dc2626;
    border: 1px solid rgba(185, 28, 28, 0.3);
}

/* Probability Bars */
.as-pred-probabilities {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: var(--as-radius-sm);
}

.as-prob-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.as-prob-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.as-prob-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.as-prob-team {
    font-size: 0.9rem;
    color: var(--as-text-muted);
}

.as-prob-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--as-text);
}

.as-prob-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.as-prob-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.as-prob-home {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.as-prob-draw {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.as-prob-away {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Goal Predictions */
.as-pred-goal-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.as-pred-goal-item {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--as-radius-sm);
}

.as-pred-goal-key {
    font-weight: 500;
    color: var(--as-text-muted);
    text-transform: capitalize;
}

.as-pred-goal-value {
    color: var(--as-text);
    margin-left: 8px;
}

/* Other Predictions */
.as-pred-other-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.as-pred-other-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--as-radius-sm);
}

.as-pred-other-key {
    font-size: 0.8rem;
    color: var(--as-text-muted);
    text-transform: uppercase;
}

.as-pred-other-value {
    font-size: 0.95rem;
    color: var(--as-text);
}

/* Team Analysis */
.as-team-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.as-team-analysis-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--as-radius-sm);
    padding: 1rem;
}

.as-team-analysis-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--as-accent);
    margin: 0 0 1rem;
}

.as-team-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.as-team-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    min-width: 60px;
}

.as-team-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--as-text);
}

.as-team-stat-label {
    font-size: 0.7rem;
    color: var(--as-text-muted);
    text-transform: uppercase;
}

.as-stat-win .as-team-stat-value {
    color: #4ade80;
}

.as-stat-draw .as-team-stat-value {
    color: #fbbf24;
}

.as-stat-loss .as-team-stat-value {
    color: #f87171;
}

.as-team-comments {
    list-style: none;
    padding: 0;
    margin: 0;
}

.as-team-comments li {
    font-size: 0.85rem;
    color: var(--as-text-muted);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.5;
}

.as-team-comments li:last-child {
    border-bottom: none;
}

/* Form Analysis List */
.as-form-analysis-list,
.as-h2h-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.as-form-analysis-list li,
.as-h2h-list li {
    position: relative;
    padding: 10px 10px 10px 24px;
    color: var(--as-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.as-form-analysis-list li:last-child,
.as-h2h-list li:last-child {
    border-bottom: none;
}

.as-form-analysis-list li::before,
.as-h2h-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--as-accent);
}

/* Comparative Analysis */
.as-comparative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.as-comparative-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--as-radius-sm);
    border-left: 3px solid var(--as-accent);
}

.as-comparative-key {
    font-size: 0.8rem;
    color: var(--as-accent);
    text-transform: uppercase;
    font-weight: 500;
}

.as-comparative-value {
    font-size: 0.9rem;
    color: var(--as-text);
    line-height: 1.5;
}

/* Disclaimer */
.as-pred-disclaimer,
.as-odds-disclaimer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--as-radius-sm);
    color: #fbbf24;
    font-size: 0.85rem;
}

.as-pred-disclaimer svg,
.as-odds-disclaimer svg {
    flex-shrink: 0;
}

/* ========================================
   Odds Styles
   ======================================== */
.as-odds {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.as-odds-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: var(--as-radius-sm);
}

.as-odds-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--as-text);
    margin: 0 0 1rem;
}

/* Odds Grid */
.as-odds-grid {
    display: grid;
    gap: 0.5rem;
}

.as-odds-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.as-odds-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.as-odd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--as-radius-sm);
    text-align: center;
    transition: background 0.3s;
}

.as-odd-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.as-odd-label {
    font-size: 0.8rem;
    color: var(--as-text-muted);
}

.as-odd-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--as-accent);
}

.as-odd-home {
    border-bottom: 2px solid #3b82f6;
}

.as-odd-draw {
    border-bottom: 2px solid #f59e0b;
}

.as-odd-away {
    border-bottom: 2px solid #ef4444;
}

/* Over/Under */
.as-odds-ou-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.as-odds-ou-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.as-odds-ou-row:last-child {
    border-bottom: none;
}

.as-odds-ou-label {
    min-width: 100px;
    font-weight: 500;
    color: var(--as-text-muted);
}

.as-odds-ou-pair {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.as-odd-over,
.as-odd-under {
    flex: 1;
}

.as-odd-over {
    border-left: 3px solid #4ade80;
}

.as-odd-under {
    border-left: 3px solid #f87171;
}

.as-odd-yes {
    border-bottom: 2px solid #4ade80;
}

.as-odd-no {
    border-bottom: 2px solid #f87171;
}

/* Asian Handicap Table */
.as-odds-ah-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.as-odds-ah-header,
.as-odds-ah-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 1rem;
    padding: 0.5rem 1rem;
}

.as-odds-ah-header {
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
    color: var(--as-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: var(--as-radius-sm) var(--as-radius-sm) 0 0;
}

.as-odds-ah-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.as-odds-ah-row:last-child {
    border-bottom: none;
}

.as-odds-ah-val {
    font-weight: 600;
    color: var(--as-text);
}

.as-odds-ah-row .as-odd-value {
    font-size: 1.1rem;
    text-align: center;
}

/* Correct Score Grid */
.as-odds-cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.as-odd-cs {
    padding: 0.5rem;
}

.as-odd-cs .as-odd-label {
    font-weight: 600;
    color: var(--as-text);
}

.as-odd-cs .as-odd-value {
    font-size: 1.1rem;
}

.as-no-odds {
    text-align: center;
    color: var(--as-text-muted);
    padding: 2rem;
}

/* Odds Comments */
.as-odds-comment {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(74, 157, 109, 0.1) 0%, rgba(74, 157, 109, 0.05) 100%);
    border-radius: var(--as-radius-sm);
    border-left: 3px solid var(--as-accent);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--as-text-muted);
}

.as-odds-comment svg {
    flex-shrink: 0;
    color: var(--as-accent);
    margin-top: 2px;
}

.as-odds-comment p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--as-text-muted);
}

/* ========================================
   Detailed Odds Analysis Cards
   ======================================== */
.as-pred-odds-analysis {
    margin-top: 1.5rem;
}

.as-odds-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.as-odds-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--as-card-border);
    border-radius: var(--as-radius-md);
    padding: 1.5rem;
    transition: all 0.3s;
}

.as-odds-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(74, 157, 109, 0.3);
    transform: translateY(-2px);
}

.as-odds-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--as-accent);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.as-odds-card-title svg {
    flex-shrink: 0;
}

.as-odds-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.as-odds-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 120px;
}

.as-odds-label {
    font-size: 0.8rem;
    color: var(--as-text-muted);
    text-transform: capitalize;
}

.as-odds-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--as-text);
}

/* Score odds - compact grid */
.as-odds-scores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.as-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    text-align: center;
    min-width: auto;
}

.as-score-item .as-odds-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--as-text);
}

.as-score-item .as-odds-value {
    font-size: 0.8rem;
    color: var(--as-accent);
}

/* ========================================
   Key Insights Section
   ======================================== */
.as-pred-key-insights {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--as-radius-md);
    padding: 1.5rem;
}

.as-pred-key-insights .as-pred-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #60a5fa;
    border-bottom-color: rgba(59, 130, 246, 0.2);
}

.as-pred-key-insights .as-pred-section-title svg {
    color: #60a5fa;
}

.as-key-insights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.as-key-insights-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--as-radius-sm);
    font-size: 0.9rem;
    color: var(--as-text);
    line-height: 1.5;
}

.as-key-insights-list li svg {
    flex-shrink: 0;
    color: #4ade80;
    margin-top: 2px;
}

/* ========================================
   Versus Analysis Section
   ======================================== */
.as-pred-versus {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--as-radius-md);
    padding: 1.5rem;
}

.as-versus-section {
    margin-bottom: 1rem;
}

.as-versus-section:last-child {
    margin-bottom: 0;
}

.as-versus-section h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--as-accent);
    margin: 0 0 0.5rem;
}

.as-versus-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.as-versus-section ul li {
    position: relative;
    padding: 8px 8px 8px 20px;
    font-size: 0.85rem;
    color: var(--as-text-muted);
    line-height: 1.5;
}

.as-versus-section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--as-accent);
}

.as-versus-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--as-radius-sm);
}