/* =========================================
   main.css v8.0 — Vizbix Global Styles
   Design: Refined editorial SaaS
   Fonts: Inter (all weights)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink:           #08090d;
  --ink-900:       #0d0f18;
  --ink-800:       #141726;
  --ink-700:       #1d2236;
  --ink-600:       #26304a;

  --slate-400:     #64748b;
  --slate-300:     #94a3b8;
  --slate-200:     #c8d4e8;
  --slate-100:     #e8edf5;
  --slate-50:      #f4f7ff;

  --white:         #ffffff;

  --indigo:        #5b5ef6;
  --indigo-hover:  #4547e0;
  --indigo-light:  #eeeeff;
  --indigo-glow:   rgba(91,94,246,0.16);

  --green:         #10b981;
  --green-bg:      #d1fae5;
  --red:           #ef4444;
  --red-bg:        #fee2e2;
  --amber:         #f59e0b;
  --amber-bg:      #fef3c7;

  /* Legacy aliases kept so existing JS doesn't break */
  --text-main:     var(--ink);
  --text-muted:    var(--slate-400);
  --bg-light:      var(--slate-50);
  --border:        var(--slate-100);
  --primary:       var(--indigo);
  --primary-hover: var(--indigo-hover);
  --dark:          var(--ink);

  --max-width:     1240px;
}

/* ─── RESET ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 { /* unified Inter */
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

p { line-height: 1.65; margin: 0; color: var(--slate-400); }
a { text-decoration: none; color: inherit; }

/* ─── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  border: none;
  padding: 11px 22px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative;
}

.btn-primary {
  background: var(--indigo);
  color: white;
  box-shadow: 0 2px 8px rgba(91,94,246,0.28), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover {
  background: var(--indigo-hover);
  box-shadow: 0 6px 20px rgba(91,94,246,0.36);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-secondary {
  background: white;
  color: var(--ink);
  border: 1.5px solid var(--slate-100);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.btn-secondary:hover {
  border-color: #c4b5fd;
  background: var(--indigo-light);
  color: var(--indigo);
}

.btn-dark {
  background: var(--ink);
  color: white;
  box-shadow: 0 4px 14px rgba(8,9,13,0.3);
}
.btn-dark:hover {
  background: var(--ink-800);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(8,9,13,0.38);
}

.btn-large {
  padding: 15px 36px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 13px;
}

/* ─── HEADER ─────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--slate-100);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.logo-dot {
  width: 7px; height: 7px;
  background: var(--indigo);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px var(--indigo-glow);
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-400);
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; gap: 8px; align-items: center; }

.menu-btn {
  width: 38px; height: 38px;
  border: 1.5px solid var(--slate-100);
  background: white;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  padding: 0;
  flex-shrink: 0;
}
.menu-btn:hover { background: var(--slate-50); border-color: var(--slate-200); }

.menu-icon { width: 15px; height: 11px; position: relative; }
.menu-icon span {
  position: absolute; left: 0; right: 0;
  height: 1.5px;
  background: var(--ink);
  border-radius: 10px;
}
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 4.75px; }
.menu-icon span:nth-child(3) { bottom: 0; }

/* ─── DRAWER ─────────────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(8,9,13,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 90;
  backdrop-filter: blur(4px);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(340px, 90vw);
  background: white;
  border-left: 1px solid var(--slate-100);
  box-shadow: -20px 0 60px rgba(8,9,13,0.1);
  transform: translateX(105%);
  transition: transform 0.26s cubic-bezier(0.4,0,0.2,1);
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  padding: 17px 20px;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.drawer-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--slate-100);
  background: var(--slate-50);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 15px;
  color: var(--slate-400);
  transition: all 0.18s;
  line-height: 1;
}
.drawer-close:hover { background: var(--slate-100); color: var(--ink); }

.drawer-body {
  padding: 16px 20px;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.drawer-links { display: flex; flex-direction: column; gap: 6px; }
.drawer-links a {
  color: var(--ink);
  border: 1.5px solid var(--slate-100);
  background: var(--slate-50);
  padding: 13px 16px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.16s;
}
.drawer-links a:hover { background: white; border-color: #c4b5fd; color: var(--indigo); }
.drawer-links a span { color: var(--slate-300); font-weight: 400; font-size: 12px; }

/* ─── LOGIN MODAL ────────────────────────── */
.modal-overlay-login {
  position: fixed; inset: 0;
  background: rgba(8,9,13,0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay-login.active { display: flex; }

.login-box {
  background: white;
  width: 90%;
  max-width: 400px;
  padding: 36px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 32px 80px rgba(8,9,13,0.28);
}

.close-modal {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--slate-50);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 15px;
  cursor: pointer;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.close-modal:hover { background: var(--slate-100); }

.login-box input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1.5px solid var(--slate-100);
  margin-bottom: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  color: var(--ink);
}
.login-box input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--indigo-glow);
}

/* ─── FOOTER ─────────────────────────────── */
footer {
  background: white;
  padding: 60px 24px 32px;
  border-top: 1px solid var(--slate-100);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--slate-400);
  margin-bottom: 10px;
  font-size: 14px;
  transition: color 0.18s;
}
.footer-col a:hover { color: var(--indigo); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-300);
  font-size: 13px;
}

.social-icons { display: flex; gap: 8px; margin-top: 20px; }
.social-icons a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--slate-50);
  color: var(--slate-400);
  transition: all 0.2s;
  margin-bottom: 0 !important;
  border: 1.5px solid var(--slate-100);
}
.social-icons a:hover {
  background: var(--indigo);
  color: white;
  border-color: var(--indigo);
  transform: translateY(-2px);
}
.social-icons svg { width: 15px; height: 15px; fill: currentColor; }
