/* ===================================================================
   ПРОМО ЭКРАН ЭКЗАМЕНА (AfterScreen) — lesson/exam.css
   Полностью заменяет старый файл
   =================================================================== */


/* --- 1. AFTER EXAM — ОСНОВНОЙ КОНТЕЙНЕР --- */

.after_exam_main {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-align: center;
}


/* --- 2. ОБЁРТКА ПОЯСА (иконка + аура) --- */

.promo_belt_wrapper {
    position: relative;
    width: 160px;
    height: 140px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 8px;
}

.promo_belt_icon {
    font-size: 100px;
    position: relative;
    z-index: 2;
    -webkit-filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
    opacity: 0;
    -webkit-animation: beltReveal 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation: beltReveal 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.promo_belt_aura {
    position: absolute;
    width: 100px;
    height: 50px;
    border-radius: 50%;
    -webkit-filter: blur(35px);
    filter: blur(35px);
    opacity: 0.3;
    z-index: 1;
    -webkit-animation: beltPulse 3s infinite ease-in-out;
    animation: beltPulse 3s infinite ease-in-out;
}

@-webkit-keyframes beltReveal {
    0%   { opacity: 0; -webkit-transform: scale(0.5) translateY(20px); transform: scale(0.5) translateY(20px); }
    60%  { -webkit-transform: scale(1.08); transform: scale(1.08); }
    100% { opacity: 1; -webkit-transform: scale(1) translateY(0); transform: scale(1) translateY(0); }
}
@keyframes beltReveal {
    0%   { opacity: 0; transform: scale(0.5) translateY(20px); }
    60%  { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@-webkit-keyframes beltPulse {
    0%   { -webkit-transform: scale(1); transform: scale(1); opacity: 0.25; }
    50%  { -webkit-transform: scale(1.6); transform: scale(1.6); opacity: 0.45; }
    100% { -webkit-transform: scale(1); transform: scale(1); opacity: 0.25; }
}
@keyframes beltPulse {
    0%   { transform: scale(1); opacity: 0.25; }
    50%  { transform: scale(1.6); opacity: 0.45; }
    100% { transform: scale(1); opacity: 0.25; }
}


/* --- 3. ЗАГОЛОВОК + ПОДЗАГОЛОВОК --- */

.after_exam_title {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
    text-align: center;
    opacity: 0;
    -webkit-animation: slideUpFade 0.5s ease-out 0.3s forwards;
    animation: slideUpFade 0.5s ease-out 0.3s forwards;
}

.after_exam_subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-muted);
    line-height: 1.5;
    margin: 0 0 28px 0;
    text-align: center;
    max-width: 320px;
    opacity: 0;
    -webkit-animation: slideUpFade 0.5s ease-out 0.45s forwards;
    animation: slideUpFade 0.5s ease-out 0.45s forwards;
}


/* --- 4. ПРОМО КАРТОЧКА --- */

.promo_card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    background: var(--c-bg-card);
    border: 2px solid var(--c-border);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    -webkit-animation: slideUpFade 0.5s ease-out 0.6s forwards;
    animation: slideUpFade 0.5s ease-out 0.6s forwards;
}

.promo_card_content {
    padding: 24px 24px 20px;
}

.promo_card_text {
    color: var(--c-text-main);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.promo_tip {
    background: rgba(0, 0, 0, 0.15);
    padding: 12px 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.promo_tip_icon {
    width: 16px;
    height: 16px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-right: 8px;
}

.promo_tip_text {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* --- 5. КНОПКА «Я СДЕЛАЮ ЭТО ПОЗЖЕ» --- */

.btn_skip {
    margin-top: 24px;
    background: transparent;
    border: none;
    color: var(--c-text-muted);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
    padding: 10px 20px;
    opacity: 0;
    -webkit-animation: slideUpFade 0.5s ease-out 0.75s forwards;
    animation: slideUpFade 0.5s ease-out 0.75s forwards;
}

.btn_skip:hover {
    color: var(--c-text-main);
}

.btn_skip:active {
    opacity: 0.6;
}


/* --- 6. SCROLLABLE HELPER (переиспользуемый) --- */

.is_scrollable {
    overflow-y: auto;
    -webkit-box-pack: start !important;
    -ms-flex-pack: start !important;
    justify-content: flex-start !important;
}


/* ===================================================================
   ЭКРАН РЕЗУЛЬТАТОВ ЭКЗАМЕНА (ExamComplete)
   =================================================================== */

.complete_exam_screen {
    background: radial-gradient(circle at center, #1a1a1a 0%, #131415 100%) !important;
}

/* Контейнер иконки */
.exam_icon_container {
    position: relative;
    width: 200px;
    height: 160px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 20px auto 32px;
}

.exam_main_svg {
    font-size: 100px;
    position: relative;
    z-index: 2;
}

.exam_glow {
    position: absolute;
    width: 200px;
    height: 200px;
    z-index: 1;
    border-radius: 50%;
}

/* Анимации иконок */
.exam_anim_belt {
    -webkit-animation: beltJump 0.8s ease-out;
    animation: beltJump 0.8s ease-out;
}
.exam_anim_heart {
    -webkit-animation: heartShake 0.5s ease-in-out;
    animation: heartShake 0.5s ease-in-out;
}

@-webkit-keyframes beltJump {
    0%   { -webkit-transform: scale(0.5) translateY(50px); opacity: 0; }
    60%  { -webkit-transform: scale(1.1) translateY(-10px); }
    100% { -webkit-transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes beltJump {
    0%   { transform: scale(0.5) translateY(50px); opacity: 0; }
    60%  { transform: scale(1.1) translateY(-10px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@-webkit-keyframes pulseGlow {
    0%   { -webkit-transform: scale(1); opacity: 0.4; }
    50%  { -webkit-transform: scale(1.1); opacity: 0.7; }
    100% { -webkit-transform: scale(1); opacity: 0.4; }
}
@keyframes pulseGlow {
    0%   { transform: scale(1); opacity: 0.4; }
    50%  { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.4; }
}

/* Текстовые блоки */
.exam_title {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-align: center;
}

.exam_info_box {
    text-align: center;
    max-width: 340px;
    margin: 0 auto;
}

.exam_fade_text {
    font-size: 16px;
    color: white;
    line-height: 1.5;
    opacity: 0;
    -webkit-animation: fadeIn 0.6s ease-in-out forwards;
    animation: fadeIn 0.6s ease-in-out forwards;
}

.exam_rank_name {
    display: block;
    font-size: 22px;
    margin-top: 10px;
    text-transform: uppercase;
}

.exam_small_text {
    display: block;
    opacity: 0.5;
    font-size: 13px;
    margin-top: 12px;
}

/* Прогресс шагов */
.exam_stars_row {
    margin-top: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.exam_step_counter {
    margin-top: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Карточка кулдауна */
.exam_cooldown_card {
    background: rgba(235, 87, 87, 0.05);
    border: 2px solid rgba(235, 87, 87, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-top: 28px;
    width: 100%;
    max-width: 260px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.exam_cooldown_label {
    color: var(--c-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.exam_cooldown_time {
    color: white;
    font-size: 28px;
    font-weight: 900;
}


/* --- SHARED KEYFRAMES --- */

@-webkit-keyframes slideUpFade {
    from { opacity: 0; -webkit-transform: translateY(16px); }
    to   { opacity: 1; -webkit-transform: translateY(0); }
}
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; -webkit-transform: translateY(10px); }
    to   { opacity: 1; -webkit-transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
