/* Apollo — Frontend Styles
 * Extracted from inline <style> blocks in lmv-rental.php
 * Split into: frontend.css (shared), dashboard.css, membership-card.css
 */

:root {
    --apollo-primary:  #1e40af;
    --apollo-accent:   #6366f1;
    --apollo-success:  #16a34a;
    --apollo-warning:  #f59e0b;
    --apollo-danger:   #ef4444;
    --apollo-muted:    #94a3b8;
    --apollo-surface:  #ffffff;
    --apollo-bg:       #f8fafc;
    --apollo-border:   #e2e8f0;
    --apollo-radius:   12px;
    --apollo-radius-sm:8px;
    --apollo-shadow:   0 4px 24px rgba(0,0,0,.07);
    --apollo-shadow-lg:0 12px 48px rgba(0,0,0,.14);
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
.apollo-wrap { font-family: system-ui, -apple-system, sans-serif; color: #1f2937; }
.apollo-wrap * { box-sizing: border-box; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.apollo-card {
    background: var(--apollo-surface);
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius);
    padding: 24px;
    box-shadow: var(--apollo-shadow);
    margin-bottom: 20px;
}

/* ── Badges / Status pills ───────────────────────────────────────────────── */
.apollo-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.apollo-badge--onboarding  { background: #dcfce7; color: #166534; }
.apollo-badge--offboarding { background: #fee2e2; color: #991b1b; }
.apollo-badge--paused      { background: #ede9fe; color: #5b21b6; }
.apollo-badge--maintenance { background: #f1f5f9; color: #475569; }
.apollo-badge--overdue     { background: #fef3c7; color: #92400e; }

/* ── Notice banners ──────────────────────────────────────────────────────── */
.apollo-notice {
    border-left: 4px solid var(--apollo-primary);
    background: #eff6ff;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 12px;
}
.apollo-notice--critical    { border-color: var(--apollo-danger); background: #fef2f2; }
.apollo-notice--maintenance { border-color: var(--apollo-muted);  background: #f8fafc; }

/* ── CTA Buttons ─────────────────────────────────────────────────────────── */
.apollo-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--apollo-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
}
.apollo-btn:hover  { opacity: .88; transform: translateY(-1px); }
.apollo-btn:active { transform: none; }
.apollo-btn--primary  { background: var(--apollo-accent);  color: #fff; }
.apollo-btn--danger   { background: var(--apollo-danger);  color: #fff; }
.apollo-btn--secondary{ background: var(--apollo-surface); color: var(--apollo-primary); border: 1px solid var(--apollo-border); }

/* ── Stats grid ──────────────────────────────────────────────────────────── */
.apollo-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.apollo-stat {
    background: var(--apollo-surface);
    border: 1px solid var(--apollo-border);
    border-radius: var(--apollo-radius);
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}
.apollo-stat::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--apollo-accent);
}
.apollo-stat__value { font-size: 28px; font-weight: 700; color: var(--apollo-primary); }
.apollo-stat__label { font-size: 12px; color: var(--apollo-muted); margin-top: 2px; }

/* ── Block notice (master block) ─────────────────────────────────────────── */
.apollo-block-notice {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--apollo-radius);
    padding: 20px 24px;
    color: #991b1b;
    font-weight: 500;
    text-align: center;
}

/* ── Checkin button ──────────────────────────────────────────────────────── */
.apollo-checkin-btn {
    width: 100%;
    padding: 18px;
    border-radius: var(--apollo-radius);
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 6px 20px rgba(99,102,241,.35);
}
.apollo-checkin-btn:hover  { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(99,102,241,.45); }
.apollo-checkin-btn:active { transform: none; }
.apollo-checkin-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Queue position ──────────────────────────────────────────────────────── */
.apollo-queue {
    text-align: center;
    padding: 32px;
}
.apollo-queue__number {
    font-size: 64px;
    font-weight: 800;
    color: var(--apollo-primary);
    line-height: 1;
}
.apollo-queue__label {
    font-size: 16px;
    color: var(--apollo-muted);
    margin-top: 8px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .apollo-card   { padding: 16px; }
    .apollo-stats  { grid-template-columns: 1fr 1fr; }
    .apollo-btn    { width: 100%; text-align: center; display: block; }
}
