/* Layout por contenido: columnas alineadas arriba, mismas cards, scroll natural de página */

.cfg-landing {
    --cfg-font-mono: "IBM Plex Mono", ui-monospace, monospace;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Texto secundario / muted un poco más legible sobre fondo oscuro */
.cfg-landing .text-muted,
.cfg-landing .text-secondary,
#cfgCs2SteamPathModal .text-muted,
#cfgCs2SteamPathModal .text-secondary {
    color: rgba(228, 228, 238, 0.88) !important;
}

[data-bs-theme="light"] .cfg-landing .text-muted,
[data-bs-theme="light"] .cfg-landing .text-secondary,
[data-bs-theme="light"] #cfgCs2SteamPathModal .text-muted,
[data-bs-theme="light"] #cfgCs2SteamPathModal .text-secondary {
    color: rgba(52, 56, 68, 0.88) !important;
}

.cfg-landing pre,
.cfg-landing code,
.cfg-landing kbd,
.cfg-landing samp,
.cfg-landing .code,
.cfg-landing .cfg-code-inline {
    font-family: var(--cfg-font-mono) !important;
}

.cfg-main {
    padding: 0;
}

.cfg-split-section {
    padding-top: 5.25rem;
    padding-bottom: 2rem;
    box-sizing: border-box;
}

.cfg-split-section--csgo {
    padding-top: 3.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="light"] .cfg-split-section--csgo {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.cfg-split-head {
    margin-bottom: 1.25rem;
}

.cfg-split-row {
    align-items: flex-start;
}

.cfg-split-col-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.cfg-split-col-title,
.cfg-split-col-title-row {
    flex-shrink: 0;
}

.cfg-split-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
}

.cfg-split-card-body {
    padding: 1rem 1.25rem;
}

.cfg-kicker {
    letter-spacing: 0.08em;
}

.cfg-code-inline {
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.06);
}

/* Estado “Copiado”: verde claro (no el btn-success estándar oscuro) */
.cfg-landing .btn.cfg-btn-copied {
    background-color: #c8f5d8 !important;
    border-color: #7dcea0 !important;
    color: #064e3b !important;
    box-shadow: 0 0 0 0.15rem rgba(125, 206, 160, 0.35);
}

.cfg-landing .btn.cfg-btn-copied:hover,
.cfg-landing .btn.cfg-btn-copied:focus {
    background-color: #b5efd0 !important;
    border-color: #6bc28a !important;
    color: #022c22 !important;
}

[data-bs-theme="light"] .cfg-landing .btn.cfg-btn-copied {
    background-color: #a7e8bf !important;
    border-color: #4ade80 !important;
    color: #14532d !important;
}

.cfg-launch-text {
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--bs-body-color);
    margin: 0;
}

/* Solo la card del CFG: como máximo ~1 viewport; el scroll va dentro del pre */
.cfg-autoexec-card {
    max-height: calc(100dvh - 15.5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.cfg-autoexec-card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cfg-autoexec-pre {
    flex: 1 1 auto;
    min-height: 0;
    padding: 1rem 1.25rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--bs-body-color);
    white-space: pre;
    margin: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    .cfg-autoexec-card {
        max-height: calc(100dvh - 13rem);
    }

    .cfg-autoexec-pre {
        font-size: 0.72rem;
    }
}

/* CS2: tarjeta sens resaltada + dos previews */
.cfg-cs2-highlight-card {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-radius: 0.75rem;
}

.cfg-cs2-dl {
    font-size: 0.9rem;
}

.cfg-cs2-dt {
    color: rgba(228, 228, 238, 0.82);
    font-weight: 500;
}

[data-bs-theme="light"] .cfg-cs2-dt {
    color: rgba(52, 56, 68, 0.82);
}

.cfg-cs2-dd {
    font-family: var(--cfg-font-mono);
    margin-bottom: 0;
}

.cfg-cs2-dd--accent {
    font-size: 1.35rem;
    font-weight: 600;
    color: #e9deff;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.35);
}

[data-bs-theme="light"] .cfg-cs2-dd--accent {
    color: #5b21b6;
    text-shadow: none;
}

.cfg-cs2-dual-pre .cfg-autoexec-card {
    max-height: calc(42dvh - 8rem);
    min-height: 0;
}

@media (max-width: 991.98px) {
    .cfg-cs2-dual-pre .cfg-autoexec-card {
        max-height: calc(38dvh - 6rem);
    }
}

.cfg-cs2-import-card pre.cfg-launch-text {
    font-size: 0.8rem;
}

.cfg-cs2-modal .modal-content {
    background: rgba(22, 22, 28, 0.97);
    color: var(--bs-body-color);
}

[data-bs-theme="light"] .cfg-cs2-modal .modal-content {
    background: rgba(255, 255, 255, 0.98);
}

.cfg-cs2-modal .modal-header,
.cfg-cs2-modal .modal-footer {
    background: transparent;
}

.cfg-cs2-modal-steps a {
    font-weight: 500;
}

.cfg-cs2-steam-input:focus,
.cfg-cs2-path-output:focus {
    box-shadow: 0 0 0 0.2rem rgba(167, 139, 250, 0.25);
}
