/*
Theme Name: TrainUp University Premium
Description: Mobile-first AI lead theme. v1.3.7: Fix critical error; valid admin export buttons; 5-column CSV; form on top of posts.
Version: 1.3.7
Text Domain: trainup-premium
Requires at least: 5.0
Requires PHP: 7.0
*/
:root{--tu-primary:#0E1B2E;--tu-accent:#22C55E;--tu-accent-2:#10B981;--tu-text:#0f172a;--tu-muted:#64748b;--tu-bg:#F8FAFC;--radius:18px}
*{box-sizing:border-box}html,body{width:100%;overflow-x:hidden}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial;color:var(--tu-text);background:var(--tu-bg);line-height:1.6;margin:0}
a{color:var(--tu-accent);text-decoration:none}a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.site-header{background:linear-gradient(180deg,#0E1B2E 0%,#142744 100%);color:#fff;position:sticky;top:0;z-index:20}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.site-title a{color:#fff;font-weight:800;font-size:20px}
.nav-primary{display:flex;gap:14px;flex-wrap:wrap}.nav-primary a{color:#dbeafe;font-weight:600}
.hero{background:#0E1B2E;color:#fff;padding:28px 0}
.hero-grid{display:grid;grid-template-columns:1.1fr 0.9fr;gap:20px}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr}}
.hero h1{margin:0 0 8px;font-size:28px}
.badge{display:inline-block;background:#38bdf8;color:#001;padding:6px 10px;border-radius:999px;font-weight:800}
.card{background:#fff;border-radius:18px;box-shadow:0 10px 28px rgba(2,6,23,.10);padding:18px}
/* AI widget */
.tu-ai-widget{max-width:560px;width:100%;margin:0 auto;background:#fff;border-radius:24px;box-shadow:0 10px 28px rgba(2,6,23,.10);padding:16px}
.tu-ai-title{font-weight:900;font-size:18px;margin-bottom:6px;display:flex;align-items:center;gap:8px}
.tu-ai-title .spark{color:#F59E0B}
.tu-ai-sub{color:#64748b;font-size:13px;margin-bottom:10px}
.tu-ai-form{display:flex;flex-direction:column;gap:10px}
.tu-ai-form input, .tu-ai-form textarea{width:100%;padding:14px 14px;border:1px solid #e5e7eb;border-radius:14px;font-size:16px}
.tu-ai-form textarea{min-height:74px;resize:vertical}
.tu-ai-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.tu-btn{display:inline-block;padding:12px 16px;border:none;border-radius:14px;background:linear-gradient(90deg,var(--tu-accent),var(--tu-accent-2));color:#fff;font-weight:900;cursor:pointer}
.tu-btn.secondary{background:#CBD5E1;color:#0f172a;font-weight:700}
.tu-hint{font-size:12px;color:#6B7280;margin-top:2px}
.tu-result{margin-top:12px}
.tu-result .btn{display:inline-block;margin-top:6px;padding:12px 16px;background:#111827;color:#fff;border-radius:12px}
/* Inline form on single posts */
.tu-inline-lead{margin-bottom:18px}
