/* ============================================================
   Film Force — "Coming Soon" overlay (shared, injected by coming-soon.js)
   Blurs the page behind a clean, centred message. The site owner can
   preview the real page with the "Preview page" toggle in Settings.
   ============================================================ */

.cs-overlay {
    position: fixed; inset: 0; z-index: 500;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
    background: rgba(8, 8, 8, 0.55);
    backdrop-filter: blur(16px) saturate(115%);
    -webkit-backdrop-filter: blur(16px) saturate(115%);
    opacity: 1; transition: opacity 0.5s ease;
}
.cs-overlay.cs-hidden { opacity: 0; pointer-events: none; }

.cs-card {
    text-align: center; max-width: 460px; width: 100%; padding: 2.5rem 2rem;
    animation: csFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes csFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.cs-badge {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 0.66rem; letter-spacing: 2.5px; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.42rem 0.95rem; border-radius: 999px; margin-bottom: 1.7rem;
}
.cs-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.cs-title {
    font-family: 'Helvetica', sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase; color: #ffffff;
    line-height: 1.1; margin-bottom: 1rem;
}
.cs-text { color: rgba(255, 255, 255, 0.7); font-size: 0.98rem; line-height: 1.7; margin-bottom: 2rem; }

.cs-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.cs-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.6rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.5px; text-decoration: none; cursor: pointer;
    border: 1px solid #ffffff; background: #ffffff; color: #000000; transition: all 0.25s ease;
}
.cs-btn:hover { transform: translateY(-2px); }
.cs-btn-ghost { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.4); }
.cs-btn-ghost:hover { border-color: #ffffff; }

/* Light theme */
[data-theme="light"] .cs-overlay { background: rgba(245, 245, 245, 0.6); }
[data-theme="light"] .cs-badge { color: rgba(0, 0, 0, 0.6); border-color: rgba(0, 0, 0, 0.2); }
[data-theme="light"] .cs-title { color: #111111; }
[data-theme="light"] .cs-text { color: #555555; }
[data-theme="light"] .cs-btn { background: #111111; color: #ffffff; border-color: #111111; }
[data-theme="light"] .cs-btn-ghost { background: transparent; color: #111111; border-color: rgba(0, 0, 0, 0.25); }
[data-theme="light"] .cs-btn-ghost:hover { border-color: #111111; }

/* Owner "Preview page" toggle (injected into the Settings panel) */
.cs-settings-divider { width: 100%; height: 1px; background: var(--border, #333); margin: 0.8rem 0; }
.cs-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cs-toggle-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted, #b0b0b0); }
.cs-switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.cs-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cs-slider { position: absolute; inset: 0; background: #333; border-radius: 20px; cursor: pointer; transition: background 0.25s ease; }
.cs-slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #888; border-radius: 50%; transition: transform 0.25s ease, background 0.25s ease; }
.cs-switch input:checked + .cs-slider { background: #2a2a2a; }
.cs-switch input:checked + .cs-slider::before { transform: translateX(16px); background: #ffffff; }

/* Password modal */
.cs-pw { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); z-index: 99500; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; transition: opacity 0.25s ease; }
.cs-pw.open { display: flex; }
.cs-pw.visible { opacity: 1; }
.cs-pw-modal { background: #0e0e0e; border: 1px solid #2a2a2a; border-radius: 10px; padding: 2.4rem 2.6rem; max-width: 380px; width: 100%; text-align: center; transform: translateY(12px); transition: transform 0.25s ease; position: relative; }
.cs-pw.visible .cs-pw-modal { transform: none; }
.cs-pw-title { font-size: 1rem; font-weight: 600; color: #ffffff; margin-bottom: 0.3rem; }
.cs-pw-hint { font-size: 0.8rem; color: #666; margin-bottom: 1.6rem; }
.cs-pw-input { width: 100%; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 6px; color: #ffffff; font-size: 0.95rem; padding: 0.75rem 1rem; font-family: inherit; outline: none; transition: border-color 0.2s ease; text-align: center; letter-spacing: 2px; }
.cs-pw-input:focus { border-color: #555; }
.cs-pw-input.error { border-color: #c0392b; animation: csShake 0.4s ease; }
@keyframes csShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.cs-pw-error { font-size: 0.76rem; color: #c0392b; margin-top: 0.5rem; min-height: 1.1em; opacity: 0; transition: opacity 0.2s ease; }
.cs-pw-error.visible { opacity: 1; }
.cs-pw-submit { width: 100%; margin-top: 1.2rem; padding: 0.78rem 1rem; background: #ffffff; color: #000000; border: none; border-radius: 6px; font-size: 0.82rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; font-family: inherit; transition: opacity 0.2s ease; }
.cs-pw-submit:hover { opacity: 0.85; }
.cs-pw-close { position: absolute; top: 0.8rem; right: 0.9rem; background: none; border: none; color: #555; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.cs-pw-close:hover { color: #ffffff; }
