/* ══════════════════════════════════════════════
   CrewLoyal — Shared Components
   Reusable across all pages (sections, badges,
   warning/info boxes, lists, hero, etc.)
   ══════════════════════════════════════════════ */

/* ── Page Hero ───────────────────────────────── */
.page-hero {
    text-align: center;
    padding: 120px 24px 32px;
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
}
.page-hero .hero-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: rgba(25, 118, 210, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-hero .hero-icon svg { width: 28px; height: 28px; color: #63A4FF; }
.page-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 8px;
}
.page-hero .subtitle {
    font-size: 14px;
    color: #64748B;
}

/* ── Content Container ───────────────────────── */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ── Section Cards ───────────────────────────── */
.section {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    transition: border-color 0.2s ease;
}
.section:hover { border-color: #475569; }
.section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section p, .section li {
    color: #CBD5E1;
    font-size: 15px;
    line-height: 1.8;
}
.section ul, .section ol {
    padding-left: 20px;
    margin: 12px 0;
}
.section li { margin-bottom: 8px; }
.section strong { color: #F8FAFC; }

/* ── Badges ──────────────────────────────────── */
.section h2 .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 6px;
}
.badge-red    { background: rgba(239, 68, 68, 0.15); color: #F87171; }
.badge-amber  { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.badge-blue   { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.badge-green  { background: rgba(34, 197, 94, 0.15); color: #4ADE80; }

/* ── Warning Box ─────────────────────────────── */
.warning-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.warning-box svg { flex-shrink: 0; color: #F87171; width: 20px; height: 20px; margin-top: 2px; }
.warning-box p  { color: #FCA5A5; font-size: 14px; line-height: 1.6; }

/* ── Info Box ────────────────────────────────── */
.info-box {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.info-box svg { flex-shrink: 0; color: #60A5FA; width: 20px; height: 20px; margin-top: 2px; }
.info-box p  { color: #93C5FD; font-size: 14px; line-height: 1.6; }

/* ── Rule List (numbered) ────────────────────── */
.rule-list { counter-reset: rules; list-style: none; padding-left: 0; }
.rule-list li {
    counter-increment: rules;
    padding: 12px 16px 12px 52px;
    position: relative;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid #334155;
}
.rule-list li::before {
    content: counter(rules);
    position: absolute;
    left: 16px;
    top: 12px;
    width: 24px;
    height: 24px;
    background: rgba(25, 118, 210, 0.2);
    color: #63A4FF;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Banned List ─────────────────────────────── */
.banned-list { list-style: none; padding: 0; }
.banned-list li {
    padding: 10px 16px 10px 44px;
    position: relative;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    font-size: 14px;
}
.banned-list li::before {
    content: "✕";
    position: absolute;
    left: 16px;
    top: 10px;
    color: #EF4444;
    font-weight: 700;
    font-size: 14px;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 640px) {
    .page-hero h1 { font-size: 24px; }
    .page-hero { padding-top: 88px; }
    .section { padding: 24px 20px; }
}
