/* calc/assets/css/calculators/life_path.css */

:root {
    /* Mystic Aura Palette */
    --bg-mystic-card: #1E1B4B; /* Indigo 950 */
    --bg-mystic-inner: #312E81; /* Indigo 900 */
    
    --text-mystic-main: #FDF4FF; /* Fuchsia 50 */
    --text-mystic-gold: #FDE68A; /* Amber 200 */
    --text-mystic-muted: #A5B4FC; /* Sky 300 */
    
    --accent-gold: #F59E0B; /* Amber 500 */
    --accent-gold-glow: rgba(245, 158, 11, 0.4);
    
    --border-mystic: #4338CA; /* Indigo 800 */
}

.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 6px 0; 
    text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid #E2E8F0; padding-bottom: 8px;
}
.input-hint { font-size: 12px; color: #64748B; margin-bottom: 12px; line-height: 1.4; }

/* ИНПУТ ДАТЫ */
.input-group { width: 100%; }
.date-input {
    width: 100%; padding: 16px 20px; font-size: 18px; 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; cursor: pointer;
    text-align: center; letter-spacing: 2px;
}
.date-input:focus { border-color: #8B5CF6; box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15); background: #FFF;}

.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; }


/* ========================================================
   ПРАВЫЙ БЛОК (MYSTIC AURA - КОСМИЧЕСКИЙ ФОН)
   ======================================================== */
#result-card.card--mystic-aura { 
    background-color: var(--bg-mystic-card) !important; 
    /* Мистический градиент */
    background-image: radial-gradient(circle at 50% 30%, #312E81 0%, #1E1B4B 70%) !important;
    color: var(--text-mystic-main) !important; 
    border: 1px solid var(--border-mystic) !important; 
    border-radius: 24px !important;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,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;
}
#result-card.card--mystic-aura::before, 
#result-card.card--mystic-aura::after { display: none !important; content: none !important; background: transparent !important;}

@media (min-width: 900px) { .sticky-card { position: sticky; top: 24px; } }

.mystic-title { 
    color: var(--text-mystic-gold); margin: 0 0 32px 0; 
    font-size: 12px; text-align: center; 
    font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
}

/* СОСТОЯНИЕ ДО ВВОДА (Empty State) */
.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 0; color: var(--text-mystic-muted); text-align: center;
    font-size: 15px; font-weight: 500; flex: 1; gap: 20px;
}
.aura-icon { font-size: 48px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

.result-content { width: 100%; display: flex; flex-direction: column; align-items: center; }
.hidden { display: none !important; }

/* ЗОЛОТАЯ АУРА И ЧИСЛО */
.aura-container {
    position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.aura-glow {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    opacity: 0.3; filter: blur(10px); animation: pulse-glow 2s ease-in-out infinite alternate;
}
@keyframes pulse-glow { from { transform: scale(0.9); opacity: 0.2; } to { transform: scale(1.2); opacity: 0.5; } }

.number-display {
    font-size: 72px; font-weight: 900; color: #FFF; position: relative; z-index: 2;
    text-shadow: 0 0 20px var(--accent-gold-glow), 0 4px 10px rgba(0,0,0,0.5);
    font-family: serif; /* Добавляем "книжный" стиль для мистики */
}

/* БЕЙДЖ МАСТЕР-ЧИСЛА */
.archetype-badge {
    background: linear-gradient(90deg, #F59E0B, #EF4444); color: #FFF;
    padding: 6px 16px; border-radius: 99px; font-size: 11px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 16px; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    display: none; /* Управляется JS */
}

.archetype-title { font-size: 24px; font-weight: 800; color: #FFF; text-align: center; margin-bottom: 24px; line-height: 1.3;}

/* МИНИ-СТАТИСТИКА (Планета) */
.astro-traits { display: flex; gap: 12px; margin-bottom: 32px;}
.trait-box {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px; border-radius: 12px; display: flex; flex-direction: column; align-items: center;
}
.trait-lbl { font-size: 10px; font-weight: 700; color: var(--text-mystic-muted); text-transform: uppercase;}
.trait-val { font-size: 14px; font-weight: 700; color: var(--text-mystic-gold); }

/* БЛОК ИНСАЙТОВ (Талант и Тень) */
.deep-insights {
    width: 100%; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px;
    box-sizing: border-box;
}
.insight-row { display: flex; align-items: flex-start; gap: 12px; }
.insight-icon { font-size: 20px; line-height: 1; flex-shrink: 0; margin-top: 2px;}
.insight-text { display: flex; flex-direction: column; gap: 4px;}
.insight-text strong { font-size: 12px; color: var(--text-mystic-muted); text-transform: uppercase; letter-spacing: 0.05em;}
.insight-text span { font-size: 14px; color: #FFF; line-height: 1.5; font-weight: 500;}

.insight-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.05); }

/* Окраска Теневой стороны */
.shadow-row strong { color: #F472B6; } /* Pink 400 */
.shadow-row span { color: #FDF4FF; opacity: 0.9;}

.disclaimer-text { font-size: 11px; color: rgba(255,255,255,0.4); text-align: center; line-height: 1.5; }


/* ========================================================
   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; 
    word-break: break-word; overflow-wrap: break-word;
}
.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; }
.purple-icon svg { color: #8B5CF6; }
.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-purple { background: #EDE9FE; color: #6D28D9; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.badge-dark { background: #F1F5F9; color: #334155; 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: #8B5CF6; 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: #6D28D9; background: #EDE9FE; }
.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: #6D28D9; }
.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--mystic-aura { border-radius: 16px !important; padding: 32px 16px !important; margin-top: 16px !important;}
    
    .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; }
    .header-icon { width: 36px !important; height: 36px !important; }
    .header-icon svg { width: 20px !important; height: 20px !important; }
    
    .archetype-title { font-size: 20px; }
    .number-display { font-size: 64px; }
    .insight-row { flex-direction: column; gap: 8px; }
}