/**
 * Reisflex Design Tokens — Centraal CSS bestand
 * Versie: 1.0.0
 * Bron: design-system.md (Night Transit thema)
 *
 * Gebruik: alle shortcodes en mu-plugins refereren deze tokens via var(--rf-xxx).
 * Geladen via reisflex-enqueue.php.
 */

/* ══════════════════════════════════════════════════
   1. CUSTOM PROPERTIES (CSS Variables)
   ══════════════════════════════════════════════════ */

:root {
    /* ── Achtergrond ── */
    --rf-bg-dark:       #0b1520;
    --rf-bg-gradient:   linear-gradient(180deg, #0a1628, #1a2d52);
    --rf-bg-card:       rgba(255, 255, 255, 0.07);
    --rf-bg-card-hover: rgba(255, 255, 255, 0.10);
    --rf-bg-input:      rgba(0, 0, 0, 0.35);
    --rf-bg-inset:      rgba(0, 0, 0, 0.25);

    /* ── Borders ── */
    --rf-border:        rgba(255, 255, 255, 0.10);
    --rf-border-subtle: rgba(255, 255, 255, 0.06);

    /* ── Tekst ── */
    --rf-text-strong:      #f0f4ff;
    --rf-text-body:        #b0bfd0;
    --rf-text-muted:       #9cb0c8;
    --rf-text-placeholder: #556680;

    /* ── Accent kleuren ── */
    --rf-blue:             #1E90FF;
    --rf-blue-gradient:    linear-gradient(135deg, #1E90FF, #1570cc);
    --rf-blue-glow:        0 4px 20px rgba(30, 144, 255, 0.25);
    --rf-yellow:           #FFD700;
    --rf-yellow-gradient:  linear-gradient(135deg, #FFD700, #e6c200);
    --rf-red:              #DC143C;
    --rf-red-gradient:     linear-gradient(135deg, #DC143C, #b01030);
    --rf-amber:            #F59E0B;

    /* ── Status kleuren ── */
    --rf-status-confirmed: #22C55E;
    --rf-status-waitlist:  #F59E0B;
    --rf-status-checkedin: #22C55E;
    --rf-status-cancelled: #EF4444;
    --rf-status-noshow:    #EF4444;

    /* ── Typografie ── */
    --rf-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --rf-font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    /* ── Spacing ── */
    --rf-radius-sm:  8px;
    --rf-radius-md:  12px;
    --rf-radius-lg:  16px;
    --rf-radius-xl:  20px;
    --rf-radius-pill: 999px;

    /* ── Shadows ── */
    --rf-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
    --rf-shadow-glow-blue:  0 0 20px rgba(30, 144, 255, 0.15);
    --rf-shadow-glow-green: 0 0 20px rgba(34, 197, 94, 0.15);
    --rf-shadow-glow-amber: 0 0 20px rgba(245, 158, 11, 0.15);
    --rf-shadow-glow-red:   0 0 20px rgba(220, 20, 60, 0.15);

    /* ── Transitions ── */
    --rf-transition: all 0.25s ease;
    --rf-transition-fast: all 0.15s ease;
}

/* ══════════════════════════════════════════════════
   2. BASE COMPONENT STYLES
   ══════════════════════════════════════════════════ */

/* ── Glass Card ── */
.rf-card {
    background: var(--rf-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    padding: 24px;
    box-shadow: var(--rf-shadow-card);
}

/* ── Inset Box ── */
.rf-inset {
    background: var(--rf-bg-inset);
    border: 1px solid var(--rf-border-subtle);
    border-radius: var(--rf-radius-md);
    padding: 16px;
}

/* ── Typography ── */
.rf-h1 {
    font-family: var(--rf-font-heading);
    font-weight: 700;
    font-style: italic;
    font-size: 1.8rem;
    color: var(--rf-text-strong);
    margin-bottom: 0.5em;
}

.rf-h2 {
    font-family: var(--rf-font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--rf-text-strong);
    margin-bottom: 0.4em;
}

.rf-h3 {
    font-family: var(--rf-font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--rf-text-strong);
}

.rf-label {
    font-family: var(--rf-font-body);
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--rf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rf-body {
    font-family: var(--rf-font-body);
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--rf-text-body);
    line-height: 1.6;
}

/* ── Buttons ── */
.rf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--rf-font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--rf-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--rf-transition);
    text-decoration: none;
    line-height: 1;
}

.rf-btn-primary {
    background: var(--rf-blue-gradient);
    color: #fff;
    box-shadow: var(--rf-blue-glow);
}
.rf-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(30, 144, 255, 0.35);
}

.rf-btn-danger {
    background: var(--rf-red-gradient);
    color: #fff;
}
.rf-btn-danger:hover {
    box-shadow: var(--rf-shadow-glow-red);
}

.rf-btn-outline {
    background: transparent;
    color: var(--rf-blue);
    border: 1px solid var(--rf-blue);
}
.rf-btn-outline:hover {
    background: rgba(30, 144, 255, 0.1);
}

.rf-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--rf-text-body);
    border: 1px solid var(--rf-border);
}
.rf-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--rf-text-strong);
}

/* ── Status Badges ── */
.rf-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--rf-font-body);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: var(--rf-radius-pill);
    line-height: 1.4;
}

.rf-badge-confirmed {
    background: rgba(34, 197, 94, 0.15);
    color: var(--rf-status-confirmed);
}
.rf-badge-waitlist {
    background: rgba(245, 158, 11, 0.15);
    color: var(--rf-status-waitlist);
}
.rf-badge-checkedin {
    background: rgba(34, 197, 94, 0.15);
    color: var(--rf-status-checkedin);
}
.rf-badge-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--rf-status-cancelled);
}
.rf-badge-noshow {
    background: rgba(239, 68, 68, 0.15);
    color: var(--rf-status-noshow);
}

/* ── Inputs ── */
.rf-input {
    font-family: var(--rf-font-body);
    font-size: 0.95rem;
    color: var(--rf-text-strong);
    background: var(--rf-bg-input);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    padding: 12px 16px;
    width: 100%;
    outline: none;
    transition: var(--rf-transition);
}
.rf-input:focus {
    border-color: var(--rf-blue);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.15);
}
.rf-input::placeholder {
    color: var(--rf-text-placeholder);
}

/* ── Links ── */
.rf-link {
    color: var(--rf-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--rf-transition-fast);
}
.rf-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ── Empty State ── */
.rf-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--rf-text-muted);
}

/* ── Toast Notifications ── */
.rf-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    background: var(--rf-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-md);
    padding: 14px 24px;
    font-family: var(--rf-font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--rf-text-strong);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    transform: translateX(120%);
    transition: transform 0.3s ease;
}
.rf-toast.show {
    transform: translateX(0);
}
.rf-toast-success { border-left: 3px solid var(--rf-status-confirmed); }
.rf-toast-error   { border-left: 3px solid var(--rf-status-cancelled); }
.rf-toast-warning { border-left: 3px solid var(--rf-status-waitlist); }

/* ══════════════════════════════════════════════════
   3. RESPONSIVE
   ══════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .rf-h1 { font-size: 1.5rem; }
    .rf-h2 { font-size: 1.1rem; }
    .rf-card { padding: 16px; }
    .rf-btn { padding: 10px 20px; font-size: 0.9rem; }
}
