/* calc/assets/css/calculators/name_numerology.css */

:root {
    /* Sacred Geometry Palette */
    --bg-num-card: #1E1B4B; /* Indigo 950 */
    --bg-num-inner: #312E81; /* Indigo 900 */
    --text-num-main: #F8FAFC; /* Slate 50 */
    --text-num-muted: #94A3B8; /* Slate 400 */
    
    --accent-num: #FBBF24; /* Amber 400 (Gold) */
    --accent-num-glow: rgba(251, 191, 36, 0.4);
    
    --border-num: #4338CA; /* Indigo 600 */
}

.calc-header { margin-bottom: 32px; }
.subtitle { color: var(--text-secondary); margin-top: 8px; }

/* СИММЕТРИЧНАЯ СЕТКА 50/50 */
.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: hidden !important; 
}

/* ЗАЩИТА ОТ БЕЛЫХ УГЛОВ КАРТОЧКИ CMS */
.calc-results { background: transparent !important; border: none !important; }

.group-title { 
    font-size: 14px; font-weight: 800; color: #171717; margin: 0 0 8px 0; 
    text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid #E2E8F0; padding-bottom: 8px;
}
.input-hint { font-size: 13px; color: #64748B; margin-bottom: 16px; line-height: 1.5; }

/* ТЕКСТОВОЕ ПОЛЕ */
.text-input {
    width: 100%; padding: 16px; font-size: 16px; font-weight: 700;
    border: 2px solid #E2E8F0; border-radius: 12px;
    background: #F8FAFC; outline: none; transition: all 0.3s;
    font-family: inherit; color: #0F172A; box-sizing: border-box;
}
.text-input:focus { border-color: #6366F1; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); background: #FFF;}

/* РАЗБОР БУКВ (ПРЕВЬЮ) */
.alphabet-preview {
    display: flex; flex-wrap: wrap; gap: 4px; padding: 16px;
    background: #F1F5F9; border-radius: 12px; border: 1px dashed #CBD5E1;
    min-height: 60px; align-items: center; justify-content: center;
}
.empty-state-text { font-size: 13px; color: #94A3B8; font-style: italic;}

.char-block {
    display: flex; flex-direction: column; align-items: center;
    background: #FFF; border: 1px solid #E2E8F0; border-radius: 6px;
    padding: 4px 6px; min-width: 24px;
}
.char-letter { font-size: 14px; font-weight: 800; color: #1E293B; text-transform: uppercase;}
.char-num { font-size: 11px; font-weight: 700; color: #6366F1;}
/* Выделение гласных */
.char-block.vowel .char-num { color: #EC4899; } 

.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; }
.info-alert svg { flex-shrink: 0; margin-top: -2px; }


/* ========================================================
   ПРАВЫЙ БЛОК (SACRED GEOMETRY)
   ======================================================== */
#result-card.card--sacred-geo { 
    background-color: var(--bg-num-card) !important; 
    background-image: radial-gradient(circle at top, #312E81 0%, #1E1B4B 100%) !important;
    color: var(--text-num-main) !important; 
    border: 2px solid var(--border-num) !important; 
    border-radius: 24px !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.8), inset 0 0 0 1px rgba(251, 191, 36, 0.1) !important;
    overflow: hidden !important; 
    padding: 40px 24px !important; 
    display: flex !important; 
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    isolation: isolate !important; 
    -webkit-appearance: none !important;
    outline: none !important;
    min-height: 450px;
}
#result-card.card--sacred-geo::before, 
#result-card.card--sacred-geo::after { display: none !important; content: none !important; background: transparent !important;}

@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.hidden { display: none !important; }

.sacred-title { 
    color: var(--accent-num); margin: 0 0 32px 0; 
    font-size: 12px; text-align: center; 
    font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ПУСТОЙ ЭКРАН */
.empty-canvas { text-align: center; color: var(--border-num); display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; flex: 1;}
.empty-canvas svg { opacity: 0.5; margin-bottom: 16px; width: 64px; height: 64px;}
.empty-canvas p { font-size: 14px; font-weight: 500; font-style: italic; color: #6366F1;}

/* РЕЗУЛЬТАТЫ */
.numerology-results { width: 100%; display: flex; flex-direction: column; align-items: center; animation: fadeIn 0.6s ease-out;}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ГЛАВНОЕ ЧИСЛО */
.num-main-box { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 24px; width: 100%;}
.num-ring {
    width: 96px; height: 96px; border-radius: 50%; border: 2px dashed var(--accent-num);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.1); position: relative;
}
.num-ring::before {
    content: ''; position: absolute; top: -8px; left: -8px; right: -8px; bottom: -8px;
    border: 1px solid rgba(251, 191, 36, 0.2); border-radius: 50%;
}
.num-val.glow { font-size: 48px; font-weight: 900; color: var(--accent-num); text-shadow: 0 0 20px var(--accent-num-glow); line-height: 1;}

.num-lbl { font-size: 11px; font-weight: 800; color: var(--text-num-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; display: block;}
.num-desc { font-size: 14px; font-weight: 500; color: #E2E8F0; line-height: 1.5; margin: 0; max-width: 90%;}

.sacred-divider { width: 100px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-num), transparent); margin: 24px 0; opacity: 0.5;}

/* ДУША И ЛИЧНОСТЬ (СЕТКА) */
.num-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; margin-bottom: 32px;}
.num-side-box { background: rgba(67, 56, 202, 0.2); border: 1px solid var(--border-num); border-radius: 16px; padding: 20px; text-align: center;}
.num-side-box .num-val { font-size: 32px; font-weight: 900; color: #FFF; margin: 8px 0; display: block; line-height: 1;}
.num-desc-small { font-size: 12px; color: #CBD5E1; line-height: 1.4; margin: 0;}

/* АНАЛИЗАТОР КОНФЛИКТА */
.conflict-analyzer { background: rgba(15, 23, 42, 0.4); border-left: 4px solid var(--accent-num); padding: 16px 20px; border-radius: 0 12px 12px 0; width: 100%; box-sizing: border-box;}
.conflict-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px;}
.c-title { font-size: 13px; font-weight: 800; color: var(--accent-num); text-transform: uppercase;}
.c-text { font-size: 13px; color: #E2E8F0; line-height: 1.5; margin: 0;}


/* ========================================================
   SEO ИНФОБЛОКИ И ТАБЛИЦЫ
   ======================================================== */
.info-wrapper { padding: 60px 0; margin-top: 60px; border-top: 1px solid rgba(0,0,0,0.06); margin-bottom: 20px; }
.icon-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; font-size: 24px; font-weight: 800; color: var(--text-primary); line-height: 1.3; }

.header-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.04); flex-shrink: 0; margin-top: -4px; }
.header-icon svg { width: 24px; height: 24px; stroke-width: 2px; }
.indigo-icon svg { color: #4F46E5; }
.slate-icon svg { color: #64748B; }

.intro-text { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.6; }

.formulas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; width: 100%; box-sizing: border-box;}
.formula-card { background: #fff; border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 4px 20px rgba(0,0,0,0.03); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; min-width: 0; max-width: 100%; box-sizing: border-box;}
.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: 700; color: var(--text-primary); line-height: 1.3; }

.badge-indigo { background: #EEF2FF; color: #4338CA; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.badge-gold { background: #FFFBEB; color: #D97706; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.formula-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; font-weight: 500; }

.soft-divider { border: none; height: 1px; background: linear-gradient(90deg, transparent, #E2E8F0, transparent); margin: 48px 0; }

.seo-table-container { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 24px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); width: 100%; box-sizing: border-box; overflow: hidden; }
.seo-table-container h3 { margin-top: 0; margin-bottom: 20px; font-size: 18px; }
.seo-table { width: 100%; border-collapse: collapse; text-align: left; }
.seo-table th { background: #F8FAFC; padding: 12px 16px; font-weight: 700; border-bottom: 2px solid #E2E8F0; color: #475569;}
.seo-table td { padding: 16px; border-bottom: 1px solid #E2E8F0; font-weight: 500; color: #0F172A;}
.seo-table tr:last-child td { border-bottom: none; }

.faq-section .faq-item { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: all 0.2s ease; }
.faq-section .faq-item[open] { border-color: #6366F1; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
summary.faq-question { padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--text-primary); list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
summary.faq-question:hover { background-color: #F8FAFC; }
.faq-section .faq-item[open] summary.faq-question { color: #4F46E5; background: #EEF2FF; }
.faq-question::after { content: '+'; font-size: 20px; color: var(--text-secondary); font-weight: 400; line-height: 1; }
.faq-question .icon-plus { display: none; }
.faq-section .faq-item[open] summary.faq-question::after { content: '−'; color: #4F46E5; }
.faq-answer, .faq-item div[itemprop="text"] { padding: 20px; color: var(--text-secondary); line-height: 1.6; font-size: 15px; }


/* ========================================================
   ИСТИННАЯ МОБИЛЬНАЯ АДАПТАЦИЯ
   ======================================================== */
@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; }
    
    #result-card.card--sacred-geo { border-radius: 16px !important; padding: 32px 16px !important; margin-top: 16px !important; min-height: auto;}
    
    .seo-table-container { padding: 16px !important; width: 100% !important; box-sizing: border-box !important;}
    .seo-table { display: block !important; width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
    .seo-table thead, .seo-table tbody { display: table !important; width: 100% !important; min-width: 500px !important; }
    .seo-table th, .seo-table td { padding: 12px !important; font-size: 13px !important; white-space: normal !important; }
}

@media (max-width: 480px) {
    .icon-heading { font-size: 18px !important; gap: 12px !important; word-break: break-word !important; overflow-wrap: break-word !important; }
    .header-icon { width: 36px !important; height: 36px !important; flex-shrink: 0 !important; }
    .header-icon svg { width: 20px !important; height: 20px !important; }
    
    .num-split-grid { grid-template-columns: 1fr; }
}