/* =========================================
   CONTENT WARNING OVERLAY
   ========================================= */


#content-warning {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;

    display: block;
    overflow-y: auto; /* Enables vertical scrolling if needed */
    padding: 2rem 1rem; /* Creates safe space around the box on mobile */
    color: #ffffff;
}

/* Inner box: Now centers itself using margins instead of flexbox */
.warning-container {
    width: 100%;
    max-width: 420px;
    /* margin: auto centers it horizontally and creates breathing room */
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.warning-icon {
    margin-bottom: 1rem;
}

.warning-container h2 {
    color: #ffffff;
    border-bottom: none;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.lang-primary {
    display: block;
    line-height: 1.2;
}

.lang-sub {
    display: block;
    font-size: 0.85em;
    opacity: 0.75;
    margin-top: 4px;
    line-height: 1.2;
}

/* Warning Text Block */
.warning-text {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
}

.warning-text p {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.warning-text p:last-child {
    margin-bottom: 0;
}

/* Smaller, secondary Checkbox Alignment */
.checkbox-group {
    margin-top: 1.5rem; /* Adds space above it, separating it from the buttons */
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem; /* Tighter spacing */
    text-align: left;
    opacity: 0.85; /* Makes it visually secondary */
}

.checkbox-group input[type="checkbox"] {
    margin: 3px 0 0 0;
    width: 1rem; /* Smaller checkbox (was 1.2rem) */
    height: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    user-select: none;
    color: #94a3b8; /* Dimmer slate color */
    font-size: 0.9em; /* Smaller base font */
}

/* Button Formatting */
.warning-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.multiline-btn {
    height: auto !important;
    padding: 12px !important;
    margin-bottom: 0;
    width: 100%;
    white-space: normal !important; /* Overrides Skeleton's nowrap */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-leave {
    background: transparent !important;
    color: #94a3b8 !important;
    border-color: #475569 !important;
}

.btn-leave:hover {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Noscript Fallback Styling */
.noscript-warning {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 2px solid #ef4444;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    text-align: left;
}

.noscript-title {
    color: #ef4444;
    margin: 0 0 0.5rem 0;
}

.noscript-text-primary {
    margin: 0 0 0.5rem 0;
    font-size: 0.9em;
    color: #ffffff;
}

.noscript-text-sub {
    margin: 0;
    font-size: 0.9em;
    color: #ffffff;
    opacity: 0.8;
}