/* =========================================================
   EXIT MODAL MOCKUP – Standalone CSS
   App color palette (from n-Back-Training-style.css vars)
   ========================================================= */

/* ---- Backdrop (Basis: gilt fuer das Mockup-<div> in exit-modal-mockup.html) ---- */
.exit-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

/* ---- Produktiv: natives <dialog> (Dialog-A11y 4/8) ----
   Das echte exit-modal in index.html ist ein <dialog>. Es bleibt Vollbild-
   Flex-Wrapper (Karte = .exit-modal-content), aber der dunkle Backdrop wandert
   nach ::backdrop; der Dialog selbst wird transparent. UA-Reset + Hide-wenn-zu. */
dialog.exit-modal {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}
dialog.exit-modal:not([open]) {
    display: none; /* author-Regel .exit-modal{display:flex} sonst auch wenn zu */
}
dialog.exit-modal::backdrop {
    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(10px);
}

/* ---- Card ---- */
.exit-modal-content {
    background: #0d1b2a;
    border: 2px solid #2b7483;
    border-radius: var(--radius-lg);
    padding: 36px 40px 32px;
    width: 420px;
    max-width: 95vw;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    animation: slideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideIn {
    from { transform: translateY(-24px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0)     scale(1);    opacity: 1; }
}

/* ---- Header ---- */
.exit-modal-header {
    margin-bottom: 24px;
}

.exit-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #e0eaf0;
    letter-spacing: 0.5px;
}

/* ---- Stats row ---- */
.exit-modal-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #162535;
    border: 1px solid #213a4f;
    border-radius: 12px;
    padding: 18px 12px;
    margin-bottom: 18px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 30px;
    font-weight: 700;
    color: #5bc8dc;
    line-height: 1;
}

.stat-unit {
    font-size: 18px;
    font-weight: 600;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #7a9ab0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #213a4f;
    flex-shrink: 0;
}

/* ---- Save status badge ---- */
.exit-modal-save-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 180, 0, 0.10);
    border: 1px solid rgba(255, 180, 0, 0.35);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin-bottom: 20px;
}

.exit-modal-save-status.saved {
    background: rgba(40, 200, 100, 0.10);
    border-color: rgba(40, 200, 100, 0.35);
}

.save-status-icon {
    font-size: var(--text-body);
    color: #f5b800;
}

.exit-modal-save-status.saved .save-status-icon {
    color: #28c864;
}

.save-status-text {
    font-size: 13px;
    font-weight: 600;
    color: #f5b800;
}

.exit-modal-save-status.saved .save-status-text {
    color: #28c864;
}

/* ---- Ad slot ---- */
.exit-modal-ad {
    position: relative;
    margin-bottom: 24px;
}

/* Namespaced: nur im Exit-Modal — verhindert Kollision mit der gleichnamigen
   .ad-label aus index_training.css auf index.html (Basisklassen 7/8). */
.exit-modal .ad-label {
    font-size: 10px;
    color: #4a6070;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.ad-placeholder {
    width: 336px;
    height: 120px;
    max-width: 100%;
    margin: 0 auto;
    background: #111e2c;
    border: 1px dashed #213a4f;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #304a5e;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ---- Action buttons ---- */
.exit-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-save,
.btn-continue,
.btn-menu {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-save {
    background: #28c864;
    color: #0a1a10;
}

.btn-save:hover {
    background: #20b057;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 200, 100, 0.35);
}

.btn-save:disabled {
    background: #1e3d2a;
    color: #3a6048;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.btn-menu {
    background: transparent;
    color: #7a9ab0;
    border: 1px solid #213a4f;
}

.btn-menu:hover {
    background: #162535;
    color: #a0c0d0;
    transform: translateY(-2px);
}

/* ---- Continue-without-saving (warning mode only) ---- */
.btn-continue {
    background: rgba(245, 184, 0, 0.12);
    color: #f5b800;
    border: 1px solid rgba(245, 184, 0, 0.40);
}

.btn-continue:hover {
    background: rgba(245, 184, 0, 0.22);
    transform: translateY(-2px);
}
