/* ═══════════════════════════════════════════════════════════════════════════
   regimen-detail.css — extracted from inline <style> (G2 refactor)
   :root tokens MUST match page_theme_map.php['regimen-detail.php'] exactly
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --amber: #f59e0b;
    --bg-amber-soft: #fffbeb;
    --bg-card: #ffffff;
    --bg-primary: #f8fafc;
    --bg-violet-soft: #f5f3ff;
    --border-color: #e2e8f0;
    --teal: #0d9488;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --violet: #8b5cf6;
}

/* ─── Hero ──────────────────────────────────────────────────────── */
.reg-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, var(--teal) 100%);
    padding: 50px 0 40px;
    color: white;
    position: relative;
    overflow: hidden;
}
.reg-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.reg-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 8px; }
.reg-hero .subtitle { opacity: 0.85; font-size: 1.1rem; margin-bottom: 15px; }

/* Hero badges row — replaces inline style="position:relative; z-index:2;" */
.reg-hero-badges { position: relative; z-index: 2; }

.reg-breadcrumb { font-size: .85rem; margin-bottom: 15px; position: relative; z-index: 2; }
.reg-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.reg-breadcrumb a:hover { color: white; }

.badge-line { display: inline-block; padding: 4px 14px; border-radius: 8px; font-size: .85rem; font-weight: 600; margin-right: 8px; margin-bottom: 6px; }
.badge-line-primary { background: rgba(16,185,129,0.2); color: #6ee7b7; border: 1px solid rgba(110,231,183,0.3); }
.badge-line-cycle { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.2); }
.badge-line-trials { background: rgba(139,92,246,0.3); color: #c4b5fd; border: 1px solid rgba(196,181,253,0.3); }

/* ─── Component cards ──────────────────────────────────────────── */
.component-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}
.component-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(13,148,136,0.15); color: var(--text-primary); }
.component-card .drug-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.component-card .drug-cat { font-size: .8rem; color: var(--text-secondary); }
.component-card .drug-role { font-size: .85rem; margin-top: 8px; color: var(--text-primary); line-height: 1.5; }

/* ─── Content cards ────────────────────────────────────────────── */
.detail-card { background: var(--bg-card); border: 2px solid var(--border-color); border-radius: 20px; padding: 30px; margin-bottom: 25px; }
.detail-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.detail-card p, .detail-card li { color: var(--text-primary); line-height: 1.8; }

/* ─── Info table ───────────────────────────────────────────────── */
.info-table { width: 100%; }
.info-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.info-table td:first-child { font-weight: 600; color: var(--text-secondary); width: 160px; white-space: nowrap; }
.info-table td.info-table-ref { font-size: .85rem; }
[data-theme="dark"] .info-table td:first-child { color: #94a3b8; }

/* ─── Side effects ─────────────────────────────────────────────── */
.side-effect-item { display: inline-block; background: var(--bg-primary); border: 1px solid var(--border-color); padding: 5px 12px; border-radius: 8px; margin: 3px; font-size: .9rem; }
.side-effects-note { font-size: .85rem; }

/* ─── Administration timeline ──────────────────────────────────── */
.admin-box { background: linear-gradient(135deg, var(--bg-violet-soft), #e0e7ff); border: 2px solid #c7d2fe; border-radius: 16px; padding: 25px; }
[data-theme="dark"] .admin-box { background: linear-gradient(135deg, #1e1b4b, #312e81); border-color: #4338ca; }
.admin-box h4 { font-weight: 700; color: var(--violet); margin-bottom: 10px; }
[data-theme="dark"] .admin-box h4 { color: #c4b5fd; }
.admin-box p { margin: 0; line-height: 1.8; }

/* ─── Related regimen cards ────────────────────────────────────── */
.related-reg {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}
.related-reg:hover { border-color: var(--violet); background: var(--bg-primary); color: var(--text-primary); }
.related-reg-body { flex: 1; }
.related-reg .reg-name { font-weight: 700; font-size: .95rem; }
.related-reg .reg-info { font-size: .8rem; color: var(--text-secondary); }

/* ─── Disclaimer ───────────────────────────────────────────────── */
.disclaimer-card { border-color: var(--amber) !important; background: linear-gradient(135deg, #fffbeb, var(--bg-amber-soft)); }
.disclaimer-card h3 { font-size: 1rem; }
.disclaimer-card p { color: #92400e; font-size: .85rem; margin: 0; }
[data-theme="dark"] .disclaimer-card { background: linear-gradient(135deg, #451a03, #78350f); }
[data-theme="dark"] .disclaimer-card p { color: #fcd34d; }

/* ─── Icon utilities (extracted from inline color:var(--XXX)) ─── */
.icon-violet { color: var(--violet); }
.icon-teal   { color: var(--teal); }
.icon-amber  { color: var(--amber); }

/* ─── Button utilities ─────────────────────────────────────────── */
.btn-radius-12 { border-radius: 12px; }

@media (min-width: 992px) {
    .sidebar-sticky { position: sticky; top: 20px; }
}
@media (max-width: 768px) {
    .reg-hero h1 { font-size: 1.8rem; }
    .detail-card { padding: 20px; }
}
