/* ==========================================================================
   Shared progression banner + reset-confirmation modal.
   Used by every betting-progression shortcode via qbw_render_progression_banner()
   and qbw_render_reset_modal() (includes/shared-components.php). Self-contained —
   does not depend on the active theme's CSS, unlike the old per-module banners.
   ========================================================================== */

/* ---- Progression banner ---- */
.qbw-progression-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #0b31056e;
    color: #fff;
    padding: 15px 30px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    margin: 20px 0;
    text-align: center;
    animation: qbw-banner-border-glow 2s infinite;
}

.qbw-progression-banner-icon {
    font-size: 24px;
    color: #ffd700;
    animation: qbw-banner-text-glow 2s infinite;
    flex: 0 0 auto;
}

.qbw-progression-banner-message {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
    animation: qbw-banner-text-glow 2s infinite;
}

.qbw-progression-banner.is-negative {
    border-color: #dc3545;
    animation-name: qbw-banner-border-glow-negative;
}

.qbw-progression-banner.is-negative .qbw-progression-banner-icon {
    color: #dc3545;
    animation-name: qbw-banner-text-glow-negative;
}

.qbw-progression-banner.is-negative .qbw-progression-banner-message {
    animation-name: qbw-banner-text-glow-negative;
}

.qbw-progression-banner.is-neutral {
    border-color: #8b93a5;
    animation-name: qbw-banner-border-glow-neutral;
}

.qbw-progression-banner.is-neutral .qbw-progression-banner-icon {
    color: #8b93a5;
    animation-name: qbw-banner-text-glow-neutral;
}

.qbw-progression-banner.is-neutral .qbw-progression-banner-message {
    animation-name: qbw-banner-text-glow-neutral;
}

@keyframes qbw-banner-border-glow {
    0%, 100% { border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { border-color: #fff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.7); }
}

@keyframes qbw-banner-text-glow {
    0%, 100% { color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    50% { color: #ffd700; text-shadow: 0 0 15px rgba(255, 215, 0, 0.7); }
}

@keyframes qbw-banner-border-glow-negative {
    0%, 100% { border-color: #dc3545; box-shadow: 0 0 10px rgba(220, 53, 69, 0.7); }
    50% { border-color: #fff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.7); }
}

@keyframes qbw-banner-text-glow-negative {
    0%, 100% { color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    50% { color: #dc3545; text-shadow: 0 0 15px rgba(220, 53, 69, 0.7); }
}

@keyframes qbw-banner-border-glow-neutral {
    0%, 100% { border-color: #8b93a5; box-shadow: 0 0 10px rgba(139, 147, 165, 0.6); }
    50% { border-color: #fff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.7); }
}

@keyframes qbw-banner-text-glow-neutral {
    0%, 100% { color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    50% { color: #8b93a5; text-shadow: 0 0 15px rgba(139, 147, 165, 0.7); }
}

/* ---- Reset-confirmation modal ---- */
.qbw-reset-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10600;
}

.qbw-reset-modal.show {
    display: flex;
}

.qbw-reset-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
}

.qbw-reset-modal-dialog {
    position: relative;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    padding: 24px;
    width: min(460px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    color: #e2e8f0;
}

.qbw-reset-modal-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.qbw-reset-modal-close-btn:hover {
    color: #fff;
}

.qbw-reset-modal-title {
    margin: 0 24px 12px 0;
    font-weight: 700;
    color: #fff;
}

.qbw-reset-modal-message {
    margin: 0 0 16px;
    color: #cbd5e1;
    line-height: 1.5;
}

.qbw-reset-modal-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    cursor: pointer;
    color: #e2e8f0;
}

.qbw-reset-modal-checkbox-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 0;
    border: 2px solid rgba(226, 232, 240, 0.7);
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.5);
    cursor: pointer;
    position: relative;
}

.qbw-reset-modal-checkbox-input:checked {
    background: #dc3545;
    border-color: #dc3545;
}

.qbw-reset-modal-checkbox-input:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.qbw-reset-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.qbw-reset-modal-btn {
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
}

.qbw-reset-modal-btn-secondary {
    background: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

.qbw-reset-modal-btn-secondary:hover {
    background: rgba(148, 163, 184, 0.4);
}

.qbw-reset-modal-btn-danger {
    background: #dc3545;
    color: #fff;
}

.qbw-reset-modal-btn-danger:hover {
    background: #c22836;
}

.qbw-reset-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

body.qbw-modal-open {
    overflow: hidden;
}

/* ---- Video tutorial icon (next to a module's title) ---- */
.qbw-tutorial-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-size: 22px;
    line-height: 1;
    color: #e63946;
    opacity: 0.85;
    vertical-align: middle;
    transition: color 0.2s, opacity 0.2s, transform 0.2s;
}

.qbw-tutorial-icon:hover,
.qbw-tutorial-icon:focus {
    color: #CD9C20;
    opacity: 1;
    transform: scale(1.1);
}
