/*
Theme Name: BookIt
Theme URI: https://platform.laholmutangranser.net
Author: BookIt Platform
Description: Modern event booking platform
Version: 1.0.0
Text Domain: bookit
*/

:root {
  --navy:   #0f172a;
  --blue:   #1e40af;
  --mid:    #3b82f6;
  --light:  #eff6ff;
  --gold:   #f59e0b;
  --green:  #10b981;
  --red:    #ef4444;
  --white:  #ffffff;
  --gray:   #f8fafc;
  --text:   #1e293b;
  --muted:  #64748b;
  --border: #e2e8f0;
  --font-h: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
  --r:      12px;
  --shadow: 0 4px 24px rgba(15,23,42,0.10);
  --trans:  0.2s ease;
}

*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; overflow-x:hidden; }
body { font-family:var(--font-b); color:var(--text); background:var(--gray); line-height:1.7; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
img  { max-width:100%; height:auto; display:block; }
a    { color:var(--mid); text-decoration:none; transition:color var(--trans); }
a:hover { color:var(--blue); }
h1,h2,h3,h4 { font-family:var(--font-h); line-height:1.2; color:var(--navy); font-weight:700; }
p  { margin-bottom:1rem; }

/* ── LAYOUT ── */
.wrap     { max-width:1200px; margin:0 auto; padding:0 1.5rem; }
.wrap-sm  { max-width:800px; margin:0 auto; padding:0 1.5rem; }
.wrap-xs  { max-width:560px; margin:0 auto; padding:0 1.5rem; }
.section  { padding:5rem 0; }
.grid-2   { display:grid; grid-template-columns:1fr 1fr; gap:2rem; }
.grid-3   { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; }
.grid-4   { display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; }

/* ── BUTTONS ── */
.btn         { display:inline-flex; align-items:center; gap:.5rem; padding:.75rem 1.5rem; border-radius:var(--r); font-weight:600; font-size:.9rem; border:2px solid transparent; cursor:pointer; transition:all var(--trans); font-family:var(--font-b); text-decoration:none; }
.btn-primary { background:var(--mid); color:var(--white); }
.btn-primary:hover { background:var(--blue); color:var(--white); transform:translateY(-2px); box-shadow:0 8px 20px rgba(59,130,246,.3); }
.btn-navy    { background:var(--navy); color:var(--white); }
.btn-navy:hover { background:#1e293b; color:var(--white); transform:translateY(-2px); }
.btn-gold    { background:var(--gold); color:var(--navy); font-weight:700; }
.btn-gold:hover { background:#d97706; color:var(--navy); transform:translateY(-2px); }
.btn-outline { background:transparent; color:var(--mid); border-color:var(--mid); }
.btn-outline:hover { background:var(--mid); color:var(--white); }
.btn-ghost   { background:rgba(255,255,255,.1); color:var(--white); border:1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { background:rgba(255,255,255,.2); color:var(--white); }
.btn-sm      { padding:.5rem 1rem; font-size:.8rem; }
.btn-lg      { padding:1rem 2rem; font-size:1rem; }
.btn-full    { width:100%; justify-content:center; }

/* ── HEADER ── */
#header { position:sticky; top:0; z-index:999; background:var(--white); border-bottom:1px solid var(--border); box-shadow:0 1px 8px rgba(0,0,0,.05); }
.header-inner { display:flex; align-items:center; justify-content:space-between; padding:.9rem 1.5rem; max-width:1200px; margin:0 auto; gap:1rem; }
.logo { display:flex; align-items:center; gap:.5rem; text-decoration:none; }
.logo-mark { width:36px; height:36px; background:linear-gradient(135deg,var(--mid),var(--blue)); border-radius:10px; display:flex; align-items:center; justify-content:center; color:white; font-weight:800; font-size:1rem; font-family:var(--font-h); }
.logo-name { font-family:var(--font-h); font-size:1.2rem; font-weight:800; color:var(--navy); }
.logo-name span { color:var(--mid); }
.nav { display:flex; align-items:center; gap:.25rem; }
.nav a { padding:.45rem .85rem; font-size:.875rem; font-weight:600; color:var(--muted); border-radius:8px; transition:all var(--trans); }
.nav a:hover { color:var(--mid); background:var(--light); }
.nav-actions { display:flex; align-items:center; gap:.75rem; }
.burger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.burger span { display:block; width:22px; height:2px; background:var(--navy); border-radius:2px; }
.mob-menu { display:none; background:var(--white); border-top:1px solid var(--border); padding:1rem 1.5rem 1.5rem; }
.mob-menu.open { display:block; }
.mob-menu a { display:block; padding:.65rem 0; font-weight:600; color:var(--text); border-bottom:1px solid var(--border); font-size:.95rem; }

/* ── HERO ── */
.hero { background:linear-gradient(135deg, var(--navy) 0%, #1e3a8a 60%, #1e40af 100%); padding:6rem 0 5rem; position:relative; overflow:hidden; }
.hero::before { content:''; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px); background-size:28px 28px; }
.hero-glow { position:absolute; top:-300px; right:-200px; width:800px; height:800px; border-radius:50%; background:radial-gradient(ellipse,rgba(59,130,246,.2) 0%,transparent 65%); pointer-events:none; }
.hero-content { position:relative; z-index:2; max-width:680px; }
.hero-badge { display:inline-flex; align-items:center; gap:.5rem; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.15); border-radius:100px; padding:.35rem 1rem; font-size:.78rem; font-weight:700; color:var(--gold); letter-spacing:.08em; text-transform:uppercase; margin-bottom:1.5rem; }
.hero h1 { color:var(--white); font-size:clamp(2.2rem,5vw,3.5rem); line-height:1.1; margin-bottom:1.25rem; }
.hero h1 span { color:var(--gold); }
.hero p  { color:rgba(255,255,255,.75); font-size:1.1rem; max-width:520px; margin-bottom:2rem; }
.hero-btns { display:flex; gap:1rem; flex-wrap:wrap; }
.hero-stats { display:flex; gap:2.5rem; margin-top:3rem; padding-top:2.5rem; border-top:1px solid rgba(255,255,255,.1); flex-wrap:wrap; }
.hero-stat-n { display:block; font-family:var(--font-h); font-size:1.75rem; font-weight:800; color:var(--white); line-height:1; }
.hero-stat-l { display:block; font-size:.78rem; color:rgba(255,255,255,.5); margin-top:.2rem; }

/* ── EVENT CARDS ── */
.event-card { background:var(--white); border-radius:16px; overflow:hidden; border:1px solid var(--border); transition:all var(--trans); text-decoration:none; display:block; }
.event-card:hover { box-shadow:0 12px 40px rgba(0,0,0,.1); transform:translateY(-5px); }
.event-img { height:200px; background:linear-gradient(135deg,var(--blue),var(--mid)); position:relative; overflow:hidden; }
.event-img img { width:100%; height:100%; object-fit:cover; }
.event-cat { position:absolute; top:.75rem; left:.75rem; background:var(--gold); color:var(--navy); font-size:.7rem; font-weight:700; padding:.2rem .65rem; border-radius:100px; text-transform:uppercase; letter-spacing:.05em; }
.event-free { position:absolute; top:.75rem; right:.75rem; background:var(--green); color:white; font-size:.7rem; font-weight:700; padding:.2rem .65rem; border-radius:100px; }
.event-body { padding:1.4rem; }
.event-org  { display:flex; align-items:center; gap:.5rem; font-size:.75rem; color:var(--muted); margin-bottom:.65rem; }
.event-org-avatar { width:22px; height:22px; border-radius:50%; background:linear-gradient(135deg,var(--mid),var(--blue)); display:flex; align-items:center; justify-content:center; color:white; font-size:.6rem; font-weight:700; flex-shrink:0; }
.event-title { font-size:1rem; font-weight:700; color:var(--navy); margin-bottom:.65rem; line-height:1.3; }
.event-meta { display:flex; flex-direction:column; gap:.3rem; font-size:.8rem; color:var(--muted); margin-bottom:1rem; }
.event-meta-row { display:flex; align-items:center; gap:.4rem; }
.event-footer { display:flex; align-items:center; justify-content:space-between; padding-top:1rem; border-top:1px solid var(--border); }
.event-price { font-family:var(--font-h); font-size:1.1rem; font-weight:700; color:var(--navy); }
.event-price-free { color:var(--green); }
.event-spots { font-size:.75rem; color:var(--muted); }

/* ── FORM ── */
.form-card { background:var(--white); border-radius:16px; padding:2rem; border:1px solid var(--border); box-shadow:var(--shadow); }
.f-group { margin-bottom:1.25rem; }
.f-group label { display:block; font-size:.8rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; margin-bottom:.4rem; }
.f-group input,.f-group textarea,.f-group select { width:100%; padding:.75rem 1rem; border:2px solid var(--border); border-radius:var(--r); font-family:var(--font-b); font-size:.95rem; color:var(--text); background:var(--white); outline:none; transition:border-color var(--trans); }
.f-group input:focus,.f-group textarea:focus,.f-group select:focus { border-color:var(--mid); box-shadow:0 0 0 3px rgba(59,130,246,.1); }
.f-group textarea { min-height:120px; resize:vertical; }
.f-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.f-hint { font-size:.75rem; color:var(--muted); margin-top:.3rem; }

/* ── ALERTS ── */
.alert { padding:1rem 1.15rem; border-radius:var(--r); margin-bottom:1rem; font-size:.875rem; display:flex; align-items:flex-start; gap:.65rem; }
.alert-ok   { background:#f0fdf4; border:1px solid #bbf7d0; color:#166534; }
.alert-warn { background:#fffbeb; border:1px solid #fde68a; color:#92400e; }
.alert-err  { background:#fef2f2; border:1px solid #fecaca; color:#991b1b; }
.alert-info { background:#eff6ff; border:1px solid #bfdbfe; color:#1e40af; }

/* ── BADGE ── */
.badge { display:inline-flex; align-items:center; padding:.2rem .65rem; border-radius:100px; font-size:.72rem; font-weight:700; }
.badge-blue  { background:var(--light); color:var(--blue); }
.badge-green { background:#dcfce7; color:#166534; }
.badge-gold  { background:#fef3c7; color:#92400e; }
.badge-gray  { background:var(--border); color:var(--muted); }

/* ── DASHBOARD ── */
.dash-wrap { display:grid; grid-template-columns:240px 1fr; gap:0; min-height:calc(100vh - 60px); }
.sidebar { background:var(--navy); padding:1.5rem 0; }
.sidebar-logo { padding:0 1.5rem 1.5rem; border-bottom:1px solid rgba(255,255,255,.07); margin-bottom:1rem; }
.sidebar-nav a { display:flex; align-items:center; gap:.75rem; padding:.7rem 1.5rem; font-size:.875rem; font-weight:600; color:rgba(255,255,255,.55); transition:all var(--trans); }
.sidebar-nav a:hover { color:var(--white); background:rgba(255,255,255,.06); }
.sidebar-nav a.active { color:var(--white); background:rgba(59,130,246,.2); border-right:3px solid var(--mid); }
.sidebar-nav .nav-icon { font-size:1rem; width:20px; text-align:center; }
.dash-main { background:var(--gray); padding:2rem; overflow-y:auto; }
.dash-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:2rem; flex-wrap:wrap; gap:1rem; }
.dash-title { font-size:1.5rem; font-weight:700; }
.stat-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; margin-bottom:2rem; }
.stat-card { background:var(--white); border-radius:var(--r); padding:1.25rem 1.5rem; border:1px solid var(--border); }
.stat-card-n { font-family:var(--font-h); font-size:2rem; font-weight:800; color:var(--navy); line-height:1; }
.stat-card-l { font-size:.8rem; color:var(--muted); margin-top:.25rem; }
.stat-card-icon { font-size:1.5rem; margin-bottom:.5rem; }

/* ── TABLE ── */
.table-wrap { background:var(--white); border-radius:var(--r); border:1px solid var(--border); overflow:hidden; }
.table-head { padding:1rem 1.5rem; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
table.data { width:100%; border-collapse:collapse; }
table.data th { padding:.75rem 1rem; text-align:left; font-size:.75rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; background:var(--gray); border-bottom:1px solid var(--border); }
table.data td { padding:.85rem 1rem; border-bottom:1px solid var(--border); font-size:.875rem; }
table.data tr:last-child td { border:none; }
table.data tr:hover td { background:#fafafa; }

/* ── PAGE HERO ── */
.page-hero { background:linear-gradient(135deg,var(--navy),#1e3a8a); padding:3rem 0; color:white; }
.page-hero h1 { color:white; font-size:clamp(1.5rem,3vw,2.25rem); }
.breadcrumb { display:flex; gap:.5rem; margin-top:.5rem; font-size:.82rem; color:rgba(255,255,255,.5); flex-wrap:wrap; }
.breadcrumb a { color:var(--gold); }

/* ── FOOTER ── */
#footer { background:var(--navy); color:rgba(255,255,255,.5); padding:3rem 0 1.5rem; }
.footer-inner { display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:3rem; padding-bottom:2rem; border-bottom:1px solid rgba(255,255,255,.07); margin-bottom:1.5rem; }
.footer-brand p { font-size:.875rem; line-height:1.7; margin-top:.75rem; color:rgba(255,255,255,.4); }
.footer-col h5 { color:white; font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:1rem; }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:.5rem; }
.footer-col ul li a { color:rgba(255,255,255,.45); font-size:.855rem; }
.footer-col ul li a:hover { color:var(--gold); }
.footer-bottom { display:flex; justify-content:space-between; font-size:.8rem; flex-wrap:wrap; gap:.5rem; }

/* ── MISC ── */
.divider { border:none; border-top:1px solid var(--border); margin:1.5rem 0; }
.tag { display:inline-block; font-size:.75rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--mid); margin-bottom:.5rem; }
.avatar { width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,var(--mid),var(--blue)); display:flex; align-items:center; justify-content:center; color:white; font-weight:700; font-size:.9rem; flex-shrink:0; }
#scroll-top { position:fixed; bottom:1.75rem; right:1.75rem; width:42px; height:42px; background:var(--navy); color:white; border:none; border-radius:var(--r); cursor:pointer; display:flex; align-items:center; justify-content:center; opacity:0; transition:all var(--trans); z-index:998; box-shadow:var(--shadow); }
#scroll-top.show { opacity:1; }
.fade-up { opacity:0; transform:translateY(20px); transition:opacity .5s ease,transform .5s ease; }
.fade-up.in { opacity:1; transform:translateY(0); }

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  .dash-wrap { grid-template-columns:1fr; }
  .sidebar { display:none; }
  .stat-cards { grid-template-columns:1fr 1fr; }
}
@media(max-width:900px){
  .grid-3,.grid-4 { grid-template-columns:1fr 1fr; }
  .footer-inner { grid-template-columns:1fr 1fr; }
  .nav,.nav-actions .btn-outline { display:none; }
  .burger { display:flex; }
}
@media(max-width:600px){
  .wrap { padding:0 1rem; }
  .section { padding:3rem 0; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns:1fr; }
  .f-row { grid-template-columns:1fr; }
  .hero { padding:4rem 0 3rem; }
  .hero-stats { gap:1.5rem; }
  .stat-cards { grid-template-columns:1fr 1fr; }
  .footer-inner { grid-template-columns:1fr; gap:2rem; }
  .footer-bottom { flex-direction:column; }
  .header-inner { padding:.7rem 1rem; }
}
