/**
 * Graceful Rate-Limiter Visual Stylesheet — 16 Hotel Security
 */

:root {
    --rl-bg-overlay: rgba(10, 14, 23, 0.65);
    --rl-card-bg: rgba(22, 28, 41, 0.8);
    --rl-card-border: rgba(255, 255, 255, 0.08);
    --rl-text-primary: #f8fafc;
    --rl-text-secondary: #94a3b8;
    --rl-warn-color: hsl(35, 90%, 55%);
}

/* ── 1. Modal dialog layout & Glassmorphism ───────────────────────────────── */
.hotel-rl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--rl-bg-overlay);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.hotel-rl-modal-card {
    background: var(--rl-card-bg);
    border: 1px solid var(--rl-card-border);
    border-radius: 24px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
    animation: rlCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rlCardIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hotel-rl-icon-container {
    width: 64px;
    height: 64px;
    background: rgba(230, 126, 34, 0.1);
    border: 1px solid var(--rl-warn-color);
    color: var(--rl-warn-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.hotel-rl-modal-card h2 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--rl-text-primary);
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.hotel-rl-modal-card p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--rl-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

/* ── 2. SVG Circular countdown timer ─────────────────────────────────────── */
.hotel-rl-timer-container {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
}

.hotel-rl-timer-svg {
    transform: rotate(-90deg);
}

.hotel-rl-timer-progress {
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.hotel-rl-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--rl-text-primary);
}

.hotel-rl-countdown-label {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rl-text-secondary);
    font-weight: 600;
}

/* ── 3. Debouncing Button Loading states ──────────────────────────────────── */
.hotel-btn-loading {
    pointer-events: none !important;
    opacity: 0.75 !important;
    position: relative !important;
}

.hotel-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: hotelSpin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes hotelSpin {
    to {
        transform: rotate(360deg);
    }
}
