/* Tactical simulator selects should match the ship search select style exactly */
.wows-contenedor-simulador {
    max-width: 1180px;
    margin: 0 auto 42px auto;
    color: #d7e3f0;
}

body:has(.wows-contenedor-simulador) .entry-title {
    max-width: 980px;
    margin: 0 auto 18px auto !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #ffffff 0%, #dff7ff 48%, #8edcff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.08;
    text-shadow: 0 0 22px rgba(0, 210, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.42);
}

.wows-contenedor-simulador h2 {
    max-width: 980px;
    margin: 0 auto 18px auto !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #ffffff 0%, #dff7ff 48%, #8edcff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.08;
    text-shadow: 0 0 22px rgba(0, 210, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.42);
}

.wows-contenedor-simulador h2::after {
    content: "";
    display: block;
    width: 260px;
    max-width: 44vw;
    height: 3px;
    margin: 16px auto 0 auto;
    background:
        linear-gradient(90deg, #00d2ff 0%, rgba(241, 196, 15, 0.86) 58%, transparent 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.62), transparent);
    box-shadow: 0 0 18px rgba(0, 210, 255, 0.34), 0 0 28px rgba(241, 196, 15, 0.14);
}

.wows-contenedor-simulador .wows-subtitulo-guia {
    max-width: 840px;
    margin: 0 auto 26px auto !important;
    color: #d7e3f0 !important;
    font-size: 15px !important;
    font-style: italic;
    line-height: 1.7;
    text-align: center;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.34);
}

.wows-sim-selector-panel {
    position: relative;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px !important;
    max-width: 920px !important;
    padding: 18px 20px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.58));
    border: 1px solid rgba(51, 65, 85, 0.82);
    border-left: 3px solid rgba(0, 210, 255, 0.58);
    border-radius: 4px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wows-sim-selector-group {
    padding: 16px;
    background: rgba(8, 15, 24, 0.58);
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 4px;
}

.wows-sim-selector-tools {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.wows-sim-filter-row {
    display: grid;
    grid-template-columns: minmax(92px, 0.8fr) minmax(136px, 1.2fr);
    gap: 10px;
}

.wows-sim-selector-group label,
.wows-contenedor-simulador label {
    letter-spacing: 0 !important;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
}

.wows-contenedor-simulador input[type="search"] {
    text-align: center;
}

.wows-contenedor-simulador input[type="search"]::placeholder {
    color: #9fb6cc;
    opacity: 1;
}

.wows-contenedor-simulador select {
    text-align-last: center;
    min-width: 180px;
    flex: 1 0 180px;
}

#wows-sim-panel {
    align-items: stretch;
}

.wows-sim-info-card,
.wows-sim-model-card,
.wows-sim-result-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.72)) !important;
    border: 1px solid rgba(51, 65, 85, 0.82) !important;
    border-top: 1px solid rgba(125, 211, 252, 0.42) !important;
    border-left: 3px solid rgba(51, 65, 85, 0.95) !important;
    border-radius: 4px !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.wows-sim-info-card {
    padding: 24px !important;
}

.wows-sim-model-card {
    justify-content: flex-start !important;
}

#wows-sim-nombre-buque,
.wows-sim-model-card h4 {
    color: #f7fbff !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 1.18rem !important;
    font-style: normal !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    text-transform: uppercase;
    text-shadow:
        0 0 8px rgba(0, 210, 255, 0.24),
        0 0 18px rgba(0, 210, 255, 0.12),
        0 2px 0 rgba(2, 6, 23, 0.72),
        0 8px 18px rgba(0, 0, 0, 0.38);
}

#wows-sim-nombre-buque::after,
.wows-sim-model-card h4::after {
    content: "";
    display: block;
    width: 74%;
    height: 2px;
    margin-top: 9px;
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.86), rgba(241, 196, 15, 0.58), transparent);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}

.wows-sim-info-card p,
.wows-sim-model-card p,
.wows-sim-stats-box p,
.wows-sim-stats-box label {
    color: #d7e3f0 !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    font-style: italic;
    line-height: 1.65;
}

.wows-sim-stats-box {
    background: rgba(15, 23, 42, 0.78) !important;
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 4px !important;
    padding: 16px !important;
}

.wows-sim-ammo-buttons {
    gap: 12px !important;
}

.wows-sim-ammo-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 11px 16px !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.16), rgba(2, 6, 23, 0.94)) !important;
    border: 1px solid rgba(0, 210, 255, 0.44) !important;
    border-radius: 4px !important;
    color: #cbd5e1 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 18px rgba(0, 0, 0, 0.28) !important;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.wows-sim-ammo-button.is-active,
.wows-sim-ammo-button:hover,
.wows-sim-ammo-button:focus {
    transform: translateY(-1px) !important;
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.34), rgba(14, 116, 144, 0.42)) !important;
    border-color: #7dd3fc !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 18px rgba(0, 210, 255, 0.26) !important;
    outline: none !important;
}

#btn-mun-he.is-active {
    background: linear-gradient(180deg, rgba(241, 196, 15, 0.42), rgba(180, 83, 9, 0.6)) !important;
    border-color: rgba(250, 204, 21, 0.82) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 18px rgba(241, 196, 15, 0.22) !important;
}

#wows-canvas-container {
    background: radial-gradient(circle at 50% 44%, rgba(0, 210, 255, 0.07), #050910 62%) !important;
    border-color: rgba(0, 210, 255, 0.32) !important;
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.58), 0 16px 30px rgba(0, 0, 0, 0.38);
}

.wows-sim-result-card {
    min-height: 96px;
}

.wows-sim-result-card span:first-child {
    color: #9fb6cc !important;
    letter-spacing: 0 !important;
}

#wows-sim-resultado-daño {
    color: #ffffff !important;
    text-shadow: 0 0 18px rgba(0, 210, 255, 0.22);
}

.wows-sim-hp-container {
    background: rgba(15, 23, 42, 0.86) !important;
    border: 1px solid rgba(0, 210, 255, 0.38) !important;
    border-radius: 4px !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.wows-sim-actions {
    display: none;
    justify-content: flex-end;
    margin: 10px 0 16px 0;
}

.wows-sim-hp-container[style*="block"] ~ .wows-sim-actions {
    display: flex;
}

#wows-sim-reset-hp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.2), rgba(2, 6, 23, 0.94));
    border: 1px solid rgba(0, 210, 255, 0.56);
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 18px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

#wows-sim-reset-hp:hover,
#wows-sim-reset-hp:focus {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.34), rgba(14, 116, 144, 0.42));
    border-color: #7dd3fc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 18px rgba(0, 210, 255, 0.26);
    outline: none;
}

#wows-sim-reset-hp:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.wows-sim-impact-log {
    display: none;
    margin-top: 16px;
    padding: 18px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.72));
    border: 1px solid rgba(51, 65, 85, 0.82);
    border-left: 3px solid rgba(0, 210, 255, 0.58);
    border-radius: 4px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wows-sim-hp-container[style*="block"] ~ .wows-sim-impact-log {
    display: block;
}

.wows-sim-impact-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.wows-sim-impact-log h3 {
    margin: 0 !important;
    color: #f7fbff !important;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.18);
}

#wows-sim-impact-count {
    color: #facc15;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

#wows-sim-impact-list {
    display: grid;
    gap: 8px;
    max-height: 280px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.wows-sim-impact-row,
.wows-sim-impact-empty {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    padding: 11px 12px;
    background: rgba(8, 15, 24, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 4px;
    color: #d7e3f0;
    font-size: 13px;
}

.wows-sim-impact-empty {
    display: block;
    color: #9fb6cc;
    font-style: italic;
}

.wows-sim-impact-index {
    grid-row: span 3;
    color: #00d2ff;
    font-weight: 800;
}

.wows-sim-impact-main {
    color: #ffffff;
    font-weight: 700;
}

.wows-sim-impact-meta,
.wows-sim-impact-note {
    color: #9fb6cc;
    font-size: 12px;
    line-height: 1.45;
}

.wows-sim-impact-note {
    color: #d7e3f0;
    font-style: italic;
}

@media (max-width: 900px) {
    .wows-sim-selector-panel,
    #wows-sim-panel {
        grid-template-columns: 1fr !important;
    }

    .wows-sim-selector-panel {
        max-width: 100% !important;
    }

    .wows-sim-actions {
        justify-content: stretch;
    }

    #wows-sim-reset-hp {
        width: 100%;
    }
}

/* Hide HP container by default, only show when panel is visible */
.wows-sim-hp-container {
    display: none;
}

