/**
 * Help Visual Cards & Interactive Components - Hanuthai Fight
 * "Esclarecimento sem Exaustão Cognitiva"
 */

/* === 1. SPLIT SLIDER COMPARATOR (BORDADO VS DTF) === */
.hnt-macro-compare-wrapper {
    background: #0d0f12;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    padding: 24px;
    margin: 28px 0;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.hnt-macro-compare-header {
    text-align: center;
    margin-bottom: 20px;
}

.hnt-macro-compare-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.85rem;
    color: #fff;
    letter-spacing: 1px;
    margin: 0 0 6px 0;
}

.hnt-macro-compare-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
}

.hnt-split-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 440px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    user-select: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.hnt-split-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hnt-split-slide.before-slide {
    z-index: 1;
}

.hnt-split-slide.after-slide {
    z-index: 2;
    width: 50%; /* Controlado via JS */
    border-right: 3px solid #D4AF37;
    box-shadow: 4px 0 20px rgba(212, 175, 55, 0.4);
}

.hnt-split-badge {
    position: absolute;
    top: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hnt-split-badge.left {
    left: 16px;
    background: rgba(212, 175, 55, 0.9);
    color: #000;
    border: 1px solid #D4AF37;
}

.hnt-split-badge.right {
    right: 16px;
    background: rgba(0, 240, 255, 0.9);
    color: #000;
    border: 1px solid #00F0FF;
}

.hnt-split-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #D4AF37;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: ew-resize;
    z-index: 5;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    transition: transform 0.15s ease;
}

.hnt-split-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* CARDS COMPARATIVOS ABAIXO DO SLIDER */
.hnt-compare-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 22px;
}

.hnt-compare-card {
    background: #141720;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
}

.hnt-compare-card.gold-theme {
    border-left: 4px solid #D4AF37;
}

.hnt-compare-card.cyan-theme {
    border-left: 4px solid #00F0FF;
}

.hnt-compare-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hnt-compare-card.gold-theme h4 { color: #D4AF37; }
.hnt-compare-card.cyan-theme h4 { color: #00F0FF; }

.hnt-compare-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hnt-compare-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

/* === 2. MANEQUIM BIOMÉTRICO INTERATIVO === */
.hnt-mannequin-wrapper {
    background: #0a0c10;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 28px 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: center;
}

.hnt-mannequin-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.hnt-mannequin-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.hnt-hotspot-btn {
    position: absolute;
    width: 28px;
    height: 28px;
    background: rgba(212, 175, 55, 0.95);
    color: #000;
    font-weight: 900;
    font-size: 0.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.9);
    transition: all 0.2s;
    z-index: 10;
}

.hnt-hotspot-btn:hover, .hnt-hotspot-btn.active {
    transform: scale(1.25);
    background: #fff;
    color: #D4AF37;
    border-color: #D4AF37;
}

.hnt-mannequin-info-panel {
    background: #12151d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}

.hnt-mannequin-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 8px;
}

.hnt-mannequin-info-title {
    color: #D4AF37;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin: 0;
}

.hnt-mannequin-info-desc {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.hnt-mannequin-real-photo-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 10px;
}

.hnt-mannequin-real-photo-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #D4AF37;
}

.hnt-mannequin-real-photo-text {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* === 3. ÁRVORE DE DECISÃO DA MATRIZ EMB === */
.hnt-emb-tree-container {
    background: #0d0f14;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 28px 0;
}

.hnt-emb-tree-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.hnt-emb-tree-card {
    background: #141620;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.hnt-emb-tree-card.green-accent {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(180deg, #121919 0%, #0e1414 100%);
}

.hnt-emb-tree-card.gold-accent {
    border-color: rgba(212, 175, 55, 0.4);
    background: linear-gradient(180deg, #1a1710 0%, #121009 100%);
}

.hnt-emb-tree-card.blue-accent {
    border-color: rgba(56, 189, 248, 0.4);
    background: linear-gradient(180deg, #101622 0%, #0b0f17 100%);
}

.hnt-emb-tree-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.badge-green { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid #10b981; }
.badge-gold-pill { background: rgba(212, 175, 55, 0.15); color: #D4AF37; border: 1px solid #D4AF37; }
.badge-blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid #38bdf8; }

.hnt-emb-tree-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
}

.hnt-emb-tree-desc {
    font-size: 0.84rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 14px;
}

.hnt-emb-tree-cost {
    font-size: 1.15rem;
    font-weight: 900;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cost-free { color: #10b981; }
.cost-regular { color: #D4AF37; }

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .hnt-split-slider-container { height: 280px; }
    .hnt-compare-details-grid { grid-template-columns: 1fr; }
    .hnt-mannequin-wrapper { grid-template-columns: 1fr; }
    .hnt-emb-tree-grid { grid-template-columns: 1fr; }
}

/* === 4. COMPONENTE RESPONSIVO: JORNADA DAS MODALIDADES (PRONTA ENTREGA, FAST & ENCOMENDA) === */
.hnt-flow-board-wrapper {
    background: #090b0e;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.hnt-flow-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 14px;
}

.hnt-flow-board-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hnt-flow-board-subtitle {
    font-size: 0.86rem;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

.hnt-toggle-view-btn {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #D4AF37;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.hnt-toggle-view-btn:hover {
    background: #D4AF37;
    color: #000;
}

/* CARDS DAS TRILHAS */
.hnt-flow-lane {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.hnt-flow-lane:hover {
    transform: translateY(-2px);
}

.hnt-flow-lane.lane-green {
    background: linear-gradient(145deg, #0a1412 0%, #070e0d 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-left: 5px solid #00ff88;
}

.hnt-flow-lane.lane-amber {
    background: linear-gradient(145deg, #17130a 0%, #0f0c06 100%);
    border: 1.5px solid rgba(255, 184, 0, 0.5);
    border-left: 5px solid #FFB800;
    box-shadow: 0 8px 30px rgba(255, 184, 0, 0.12);
}

.hnt-flow-lane.lane-cyan {
    background: linear-gradient(145deg, #09121a 0%, #060b10 100%);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-left: 5px solid #00F0FF;
}

/* HEADER DA TRILHA */
.hnt-lane-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.hnt-lane-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hnt-lane-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
}

.badge-lane-green { background: rgba(0, 255, 136, 0.15); color: #00ff88; border: 1px solid #00ff88; }
.badge-lane-amber { background: rgba(255, 184, 0, 0.18); color: #FFB800; border: 1px solid #FFB800; }
.badge-lane-cyan { background: rgba(0, 240, 255, 0.15); color: #00F0FF; border: 1px solid #00F0FF; }

.hnt-lane-time {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin: 2px 0;
}

.hnt-lane-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
}

.hnt-lane-cta {
    align-self: center;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cta-green { background: rgba(0,255,136,0.15); color: #00ff88; border: 1px solid #00ff88; }
.cta-green:hover { background: #00ff88; color: #000; }

.cta-amber { background: #FFB800; color: #000; border: 1px solid #FFB800; }
.cta-amber:hover { background: #ffa600; box-shadow: 0 0 15px rgba(255,184,0,0.6); }

.cta-cyan { background: rgba(0,240,255,0.15); color: #00F0FF; border: 1px solid #00F0FF; }
.cta-cyan:hover { background: #00F0FF; color: #000; }

/* LINHA DE ETAPAS (DESKTOP FLEX / MOBILE VERTICAL) */
.hnt-lane-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.hnt-lane-step {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hnt-step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #000;
    font-weight: 900;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.circle-green { background: #00ff88; }
.circle-amber { background: #FFB800; }
.circle-cyan { background: #00F0FF; }

.hnt-step-content {
    flex: 1;
}

.hnt-step-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 2px 0;
}

.hnt-step-desc {
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.35;
    margin: 0;
}

/* CALLOUT DA VANTAGEM */
.hnt-lane-highlight {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: 10px;
}

.highlight-green { background: rgba(0,255,136,0.06); border: 1px solid rgba(0,255,136,0.2); color: #a7f3d0; }
.highlight-amber { background: rgba(255,184,0,0.08); border: 1px solid rgba(255,184,0,0.3); color: #fde68a; }
.highlight-cyan { background: rgba(0,240,255,0.06); border: 1px solid rgba(0,240,255,0.2); color: #bae6fd; }

/* POSTER VIEW (ALTERNÁVEL VIA JS) */
.hnt-poster-view {
    display: none;
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.hnt-poster-view img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .hnt-flow-board-wrapper { padding: 16px; }
    .hnt-lane-steps-grid { grid-template-columns: 1fr; gap: 8px; }
    .hnt-lane-top { flex-direction: column; align-items: stretch; }
    .hnt-lane-cta { text-align: center; }
}

/* === 5. SIMULADOR INTERATIVO DA BARRA DE RESERVA TTL (20 MINUTOS) === */
.hnt-ttl-simulator-wrapper {
    background: #090c12;
    border: 1.5px solid rgba(255, 184, 0, 0.4);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.hnt-ttl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 184, 0, 0.2);
    padding-bottom: 12px;
}

.hnt-ttl-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    color: #fff;
    letter-spacing: 1px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hnt-ttl-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

/* BARRA PREVIEW TTL (MOCKUP LIVE) */
.hnt-ttl-preview-bar {
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.hnt-ttl-preview-bar.state-normal {
    background: linear-gradient(135deg, #1f1807 0%, #110e05 100%);
    border: 1.5px solid #FFB800;
    box-shadow: 0 6px 24px rgba(255, 184, 0, 0.25);
}

.hnt-ttl-preview-bar.state-alert {
    background: linear-gradient(135deg, #241405 0%, #160a02 100%);
    border: 1.5px solid #f97316;
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.35);
    animation: pulseAlert 1.5s infinite;
}

.hnt-ttl-preview-bar.state-danger {
    background: linear-gradient(135deg, #260a0a 0%, #170404 100%);
    border: 1.5px solid #ef4444;
    box-shadow: 0 6px 28px rgba(239, 68, 68, 0.45);
    animation: pulseDanger 0.8s infinite;
}

.hnt-ttl-preview-bar.state-expired {
    background: linear-gradient(135deg, #131418 0%, #0a0b0d 100%);
    border: 1.5px solid #64748b;
    opacity: 0.85;
}

@keyframes pulseAlert {
    0%, 100% { border-color: #f97316; box-shadow: 0 0 15px rgba(249, 115, 22, 0.3); }
    50% { border-color: #fb923c; box-shadow: 0 0 25px rgba(249, 115, 22, 0.6); }
}

@keyframes pulseDanger {
    0%, 100% { border-color: #ef4444; box-shadow: 0 0 18px rgba(239, 68, 68, 0.4); }
    50% { border-color: #f87171; box-shadow: 0 0 32px rgba(239, 68, 68, 0.8); }
}

.hnt-ttl-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 280px;
}

.hnt-ttl-lock-icon {
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.hnt-ttl-bar-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 4px;
}

.badge-ttl-normal { background: rgba(255, 184, 0, 0.2); color: #FFB800; border: 1px solid #FFB800; }
.badge-ttl-alert { background: rgba(249, 115, 22, 0.25); color: #f97316; border: 1px solid #f97316; }
.badge-ttl-danger { background: rgba(239, 68, 68, 0.25); color: #ef4444; border: 1px solid #ef4444; }
.badge-ttl-expired { background: rgba(100, 116, 139, 0.25); color: #94a3b8; border: 1px solid #64748b; }

.hnt-ttl-bar-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
}

.hnt-ttl-bar-right {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 18px;
    text-align: center;
    min-width: 130px;
}

.hnt-ttl-timer-display {
    font-family: 'Courier New', monospace;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 2px;
}

.timer-normal { color: #FFB800; text-shadow: 0 0 10px rgba(255, 184, 0, 0.5); }
.timer-alert { color: #f97316; text-shadow: 0 0 12px rgba(249, 115, 22, 0.6); }
.timer-danger { color: #ef4444; text-shadow: 0 0 15px rgba(239, 68, 68, 0.8); }
.timer-expired { color: #64748b; }

.hnt-ttl-timer-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-top: 4px;
}

/* TRACK DE PROGRESSO */
.hnt-ttl-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.4);
}

.hnt-ttl-progress-fill {
    height: 100%;
    transition: width 0.4s ease, background 0.4s ease;
}

/* PAINEL DE CONTROLE INTERATIVO */
.hnt-ttl-control-panel {
    margin-top: 18px;
    background: #11141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.hnt-ttl-control-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #fff;
    margin-bottom: 12px;
}

.hnt-ttl-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hnt-ttl-btn {
    background: #181c26;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hnt-ttl-btn:hover {
    background: rgba(255, 184, 0, 0.15);
    color: #FFB800;
    border-color: #FFB800;
}

.hnt-ttl-btn.active {
    background: #FFB800;
    color: #000;
    border-color: #FFB800;
    font-weight: 900;
}

.hnt-ttl-state-desc {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.5;
    border-left: 3px solid #FFB800;
}

