/* calc/assets/css/calculators/xg_calculator.css */

:root {
    /* Stadium Analytics Palette (Colorful, NO BLACK) */
    --bg-stadium: #0F172A; /* Deep Blue Night */
    --text-stad-main: #F8FAFC; 
    --text-stad-muted: #94A3B8; 
    
    --color-home: #3B82F6; /* Bright Blue */
    --color-home-glow: rgba(59, 130, 246, 0.3);
    
    --color-away: #F59E0B; /* Vibrant Amber */
    --color-away-glow: rgba(245, 158, 11, 0.3);
    
    --color-draw: #64748B; /* Slate */
    
    --border-stad: #1E293B; /* Slate 800 */
}

.calc-header { margin-bottom: 32px; }

/* СЕТКА */
.calc-grid { 
    display: grid !important; grid-template-columns: 1fr; gap: 24px; align-items: start; 
    width: 100%; box-sizing: border-box; 
}
@media (min-width: 900px) { 
    .calc-grid { grid-template-columns: 1fr 1fr !important; } 
}

.calc-inputs, .calc-results { 
    min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; overflow: visible !important; height: auto !important; 
}

/* ЗАЩИТА CMS */
.calc-results { background: transparent !important; background-color: transparent !important; border: none !important; box-shadow: none !important; border-radius: 0 !important;}

/* ТАБЫ КОМАНД (Синий и Оранжевый) */
.team-tabs { display: flex; gap: 8px; margin-bottom: 24px; background: #F1F5F9; padding: 6px; border-radius: 12px;}
.team-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 8px; border: none; background: transparent;
    font-size: 14px; font-weight: 800; color: #64748B; cursor: pointer; transition: all 0.3s;
}
.t-color { width: 12px; height: 12px; border-radius: 50%; }
.team-tab.active { background: #FFFFFF; color: #1E3A8A; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* СПИСОК УДАРОВ */
.shot-panel { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.shot-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px;}

/* ЯРКИЙ ЭЛЕМЕНТ УДАРА */
.shot-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.s-info { display: flex; align-items: center; gap: 12px; }
.s-emoji { 
    font-size: 24px; line-height: 1; width: 40px; height: 40px; 
    background: #F8FAFC; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.s-details { display: flex; flex-direction: column; gap: 2px; }
.s-name { font-size: 14px; font-weight: 800; color: #1E3A8A; }
.s-weight { font-size: 12px; font-weight: 700; color: #10B981; }

.s-controls { display: flex; align-items: center; gap: 12px; background: #F8FAFC; border-radius: 99px; padding: 4px; border: 1px solid #E2E8F0;}
.s-btn {
    width: 28px; height: 28px; border-radius: 50%; border: none; background: #FFFFFF;
    color: #3B82F6; font-size: 18px; font-weight: 900; line-height: 1; cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center;
    transition: all 0.1s;
}
.s-btn:active { transform: scale(0.9); }
.s-count { font-size: 15px; font-weight: 800; color: #0F172A; width: 20px; text-align: center;}

.xg-subtotal {
    text-align: right; font-size: 18px; font-weight: 800; color: #1E3A8A;
    padding: 16px; background: #F8FAFC; border-radius: 12px; border: 1px dashed #CBD5E1;
}
.xg-val { font-size: 24px; font-weight: 900; }

.info-alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px; border-radius: 12px; font-size: 13px; line-height: 1.5; border: 1px solid;
}


/* ========================================================
   ПРАВЫЙ БЛОК (NEON STADIUM - СИНИЙ ФОН)
   ======================================================== */
div#result-card.card.card--result.card--stadium { 
    background-color: var(--bg-stadium) !important; 
    background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent), 
                      radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.1), transparent) !important;
    color: var(--text-stad-main) !important; 
    border: 1px solid var(--border-stad) !important; 
    border-radius: 24px !important; 
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.6) !important;
    overflow: hidden !important; 
    padding: 32px 24px !important; 
    display: flex !important; 
    flex-direction: column !important;
    box-sizing: border-box !important;
    isolation: isolate !important; 
    -webkit-appearance: none !important;
    outline: none !important;
    position: relative !important;
    z-index: 1 !important;
    height: auto !important; 
    min-height: max-content !important;
}

div#result-card.card.card--result.card--stadium::before, 
div#result-card.card.card--result.card--stadium::after { display: none !important; content: none !important; background: transparent !important; box-shadow: none !important;}

@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.hidden { display: none !important; }

.stadium-title { 
    text-align: center; margin: 0 0 24px 0; 
    font-size: 13px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase;
}

/* СЧЕТОВОЕ ТАБЛО */
.scoreboard {
    display: flex; align-items: center; justify-content: space-between;
    background: #1E293B; border: 1px solid #334155; border-radius: 20px;
    padding: 24px; margin-bottom: 32px; box-shadow: inset 0 4px 12px rgba(0,0,0,0.2);
}
.score-team { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 40%;}
.st-name { font-size: 13px; font-weight: 800; letter-spacing: 1px;}
.st-xg { font-size: 40px; font-weight: 900; line-height: 1; font-family: monospace;}
.score-divider { font-size: 18px; font-weight: 800; }

/* ПОЛОСКИ ВЕРОЯТНОСТИ (ЯРКИЕ) */
.probability-block { width: 100%; margin-bottom: 32px;}
.prob-title { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 16px;}
.prob-bars { display: flex; flex-direction: column; gap: 12px;}
.p-bar-row { display: flex; align-items: center; gap: 12px; }
.p-lbl { font-size: 12px; font-weight: 700; width: 60px;}
.p-track { flex: 1; height: 12px; background: #1E293B; border-radius: 99px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);}
.p-fill { height: 100%; border-radius: 99px; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);}
.p-val { font-size: 14px; font-weight: 900; width: 40px; text-align: right; font-family: monospace;}

/* ОРАКУЛ СЧЕТА */
.poisson-oracle {
    display: flex; align-items: center; gap: 16px; background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3); padding: 20px; border-radius: 16px;
}
.oracle-icon { font-size: 32px; filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));}
.oracle-data { display: flex; flex-direction: column; gap: 4px;}
.o-lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;}
.o-score { font-size: 28px; font-weight: 900; letter-spacing: 2px;}


/* ========================================================
   SEO ИНФОБЛОКИ (БЕЗ ЧЕРНОГО)
   ======================================================== */
.info-wrapper { padding: 60px 0; margin-top: 60px; border-top: 1px solid #E2E8F0; margin-bottom: 20px; }
.icon-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; font-size: 24px; font-weight: 900; line-height: 1.3; }

.header-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; margin-top: -4px; }

.formulas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; width: 100%; box-sizing: border-box;}
.formula-card { background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; box-shadow: 0 4px 15px rgba(0,0,0,0.02);}
.formula-header { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.formula-card h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; }

.badge { padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em;}

.soft-divider { border: none; height: 2px; background: #E2E8F0; margin: 48px 0; }

.seo-table-container { background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 16px; padding: 24px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); overflow: hidden; }
.seo-table-container h3 { margin-top: 0; margin-bottom: 20px; font-size: 18px; font-weight: 900;}
.seo-table { width: 100%; border-collapse: collapse; text-align: left; }
.seo-table th { padding: 12px 16px; font-weight: 800; border-bottom: 2px solid #CBD5E1;}
.seo-table td { padding: 16px; border-bottom: 1px solid #E2E8F0; font-weight: 600; line-height: 1.5;}
.seo-table tr:last-child td { border-bottom: none; }

.faq-section .faq-item { background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 12px; margin-bottom: 12px; transition: all 0.2s; }
.faq-section .faq-item[open] { border-color: #3B82F6; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1); }
summary.faq-question { padding: 16px 20px; cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
summary.faq-question:hover { background-color: #F8FAFC; }
.faq-question::after { content: '+'; font-size: 20px; font-weight: 400; line-height: 1; color: #3B82F6;}
.faq-question .icon-plus { display: none; }
.faq-section .faq-item[open] summary.faq-question::after { content: '−'; color: #EF4444;}
.faq-answer, .faq-item div[itemprop="text"] { padding: 20px; line-height: 1.6; font-size: 15px; font-weight: 500;}

/* МОБИЛКИ */
@media (max-width: 900px) {
    .calc-grid { display: flex !important; flex-direction: column !important; gap: 16px !important; }
    .formulas-grid { grid-template-columns: 1fr !important; gap: 16px !important; margin-bottom: 32px !important; }
    div#result-card.card.card--result.card--stadium { border-radius: 20px !important; padding: 24px 16px !important; margin-top: 16px !important;}
    .seo-table { display: block !important; width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
}
@media (max-width: 480px) {
    .st-xg { font-size: 32px; }
    .scoreboard { padding: 16px; }
    .o-score { font-size: 24px; }
    .s-emoji { display: none; } /* Прячем эмодзи на очень узких экранах для экономии места */
}