/* ============================================================
   base.css — CSS Reset, Global Typography & Utilities (Light Mode)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover { color: var(--primary-hover); }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* === SELECTION === */
::selection {
  background: #DCFCE7;
  color: #065F46;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.flex             { display: flex; }
.flex-col         { flex-direction: column; }
.items-center     { align-items: center; }
.justify-between  { justify-content: space-between; }
.justify-center   { justify-content: center; }
.justify-end      { justify-content: flex-end; }
.flex-wrap        { flex-wrap: wrap; }
.flex-1           { flex: 1; }
.gap-1            { gap: var(--space-1); }
.gap-2            { gap: var(--space-2); }
.gap-3            { gap: var(--space-3); }
.gap-4            { gap: var(--space-4); }
.gap-6            { gap: var(--space-6); }

.grid             { display: grid; }
.grid-cols-2      { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3      { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4      { grid-template-columns: repeat(4, 1fr); }

.w-full           { width: 100%; }
.text-center      { text-align: center; }
.text-right       { text-align: right; }
.text-left        { text-align: left; }

.text-xs          { font-size: var(--text-xs); }
.text-sm          { font-size: var(--text-sm); }
.text-base        { font-size: var(--text-base); }
.text-lg          { font-size: var(--text-lg); }
.text-xl          { font-size: var(--text-xl); }
.text-2xl         { font-size: var(--text-2xl); }

.font-normal      { font-weight: var(--font-weight-normal); }
.font-medium      { font-weight: var(--font-weight-medium); }
.font-semibold    { font-weight: var(--font-weight-semibold); }
.font-bold        { font-weight: var(--font-weight-bold); }

.text-primary     { color: var(--text-primary); }
.text-secondary   { color: var(--text-secondary); }
.text-muted       { color: var(--text-muted); }
.text-success     { color: var(--success); }
.text-danger      { color: var(--danger); }
.text-warning     { color: var(--warning); }
.text-emerald     { color: var(--primary); }

.bg-surface       { background: var(--surface); }
.bg-page          { background: var(--bg-page); }

.rounded-sm       { border-radius: var(--radius-sm); }
.rounded-md       { border-radius: var(--radius-md); }
.rounded-lg       { border-radius: var(--radius-lg); }
.rounded-xl       { border-radius: var(--radius-xl); }
.rounded-full     { border-radius: var(--radius-full); }

.shadow-sm        { box-shadow: var(--shadow-sm); }
.shadow-md        { box-shadow: var(--shadow-md); }
.shadow-lg        { box-shadow: var(--shadow-lg); }

.border           { border: 1px solid var(--border); }
.border-b         { border-bottom: 1px solid var(--border); }
.border-t         { border-top: 1px solid var(--border); }

.p-2              { padding: var(--space-2); }
.p-4              { padding: var(--space-4); }
.p-6              { padding: var(--space-6); }
.mb-2             { margin-bottom: var(--space-2); }
.mb-4             { margin-bottom: var(--space-4); }
.mb-6             { margin-bottom: var(--space-6); }
