/******************************************************************************
 *
 * File...........: help.css
 * Project........: EnigmaJS
 * Description....: Estilos para los modales de Ayuda e Información Técnica
 *
 ******************************************************************************/

/* ============================================================
   OVERLAY BASE (compartido por ambos modales de Ayuda)
   ============================================================ */

.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.help-modal-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* ============================================================
   MODAL BASE
   ============================================================ */

.help-modal {
    background: linear-gradient(145deg, #221f1c 0%, #171513 100%);
    border: 1px solid #3d3a36;
    border-radius: 18px;
    width: 92%;
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04);
    transform: scale(0.92) translateY(24px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.help-modal-overlay.visible .help-modal {
    transform: scale(1) translateY(0);
}

/* Accent line superior */
.help-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), #d4a24a, var(--color-gold));
}

/* ============================================================
   HEADER DEL MODAL
   ============================================================ */

.help-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 28px 20px;
    border-bottom: 1px solid #2e2b27;
    flex-shrink: 0;
}

.help-modal-icon {
    font-size: 32px;
    line-height: 1;
}

.help-modal-title-block {
    flex: 1;
}

.help-modal-title {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-title);
    margin: 0 0 3px;
}

.help-modal-subtitle {
    font-size: 13px;
    color: var(--color-text-dim);
    margin: 0;
}

.help-modal-close {
    background: rgba(255,255,255,0.05);
    border: 1px solid #3d3a36;
    border-radius: 8px;
    color: var(--color-text-dim);
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.help-modal-close:hover {
    background: rgba(195, 154, 73, 0.15);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* ============================================================
   BODY CON SCROLL
   ============================================================ */

.help-modal-body {
    padding: 24px 28px 28px;
    overflow-y: auto;
    flex: 1;
}

.help-modal-body::-webkit-scrollbar {
    width: 6px;
}

.help-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.help-modal-body::-webkit-scrollbar-thumb {
    background: #3d3a36;
    border-radius: 3px;
}


/* ============================================================
   GUÍA DEL EMULADOR — Pasos
   ============================================================ */

.guide-section {
    margin-bottom: 28px;
}

.guide-section-title {
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2e2b27;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255,255,255,0.02);
    border: 1px solid #2e2b27;
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.2s;
}

.guide-step:hover {
    border-color: #3d3a36;
}

.guide-step-num {
    background: var(--color-gold);
    color: #111;
    font-weight: 800;
    font-size: 13px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

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

.guide-step-title {
    font-size: 14px;
    font-weight: 600;
    color: #e8e0d0;
    margin: 0 0 4px;
}

.guide-step-desc {
    font-size: 13px;
    color: var(--color-text-dim);
    line-height: 1.5;
    margin: 0;
}

.guide-tip {
    background: rgba(195, 154, 73, 0.08);
    border: 1px solid rgba(195, 154, 73, 0.25);
    border-left: 3px solid var(--color-gold);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #c3a855;
    line-height: 1.5;
    margin-top: 20px;
}

/* ============================================================
   INFORMACIÓN TÉCNICA — Tablas de permutaciones
   ============================================================ */

.tech-section {
    margin-bottom: 28px;
}

.tech-section-title {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2e2b27;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-table-wrapper {
    overflow-x: auto;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.tech-table th {
    background: #1c1a17;
    color: var(--color-gold);
    font-weight: 600;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #3d3a36;
    white-space: nowrap;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tech-table td {
    padding: 8px 12px;
    color: var(--color-text);
    border-bottom: 1px solid #1e1c19;
    vertical-align: middle;
}

.tech-table tr:last-child td {
    border-bottom: none;
}

.tech-table tr:hover td {
    background: rgba(255,255,255,0.025);
}

.tech-table .col-name {
    font-weight: 700;
    color: #e8e0d0;
    white-space: nowrap;
    font-family: monospace;
    font-size: 13px;
}

.tech-table .col-wiring {
    font-family: 'Courier New', monospace;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: #a89a7a;
}

.tech-table .col-notch {
    font-family: monospace;
    font-weight: 700;
    color: #e67e4a;
    text-align: center;
    font-size: 13px;
}

.tech-table .col-badge {
    text-align: center;
}

.tech-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tech-badge.naval { background: rgba(100, 160, 220, 0.15); color: #78b4e0; border: 1px solid rgba(100,160,220,0.25); }
.tech-badge.luftwaffe { background: rgba(100, 200, 120, 0.15); color: #78c884; border: 1px solid rgba(100,200,120,0.25); }
.tech-badge.k-model { background: rgba(220, 140, 70, 0.15); color: #dc8c46; border: 1px solid rgba(220,140,70,0.25); }
.tech-badge.extra { background: rgba(180, 100, 220, 0.15); color: #c07ae0; border: 1px solid rgba(180,100,220,0.25); }

.tech-wiring-alphabet {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #4a4743;
    letter-spacing: 0.08em;
    padding: 6px 12px 0;
    margin-bottom: -4px;
}
