/* ========================================
   Gradify Web – Base / Reset Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');
@import './variables.css';

/* ── Reset ─────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-main-bg);
  color: var(--color-text-icons);
  line-height: var(--line-height-normal);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar styling ─────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-divider); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-icons); opacity: 0.6; }

/* ── Links ─────────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover { color: var(--color-primary); }

/* ── Images ────────────────────────────── */
img, video, svg {
  max-width: 100%;
  display: block;
}

/* ── Inputs ────────────────────────────── */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* ── Typography ────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-icons);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

p { margin-bottom: 0; }

/* ── Page layout wrapper ───────────────── */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: var(--nav-height) 0 0;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

@media (max-width: 768px) {
  .main-content {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }
}

/* ── Utility helpers ───────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-icons); opacity: 0.55; }
.text-accent { color: var(--color-glow); }
.text-small { font-size: var(--font-size-sm); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }

.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Selection ─────────────────────────── */
::selection {
  background: var(--color-hero-cards);
  color: var(--color-text-icons);
}

/* ── Focus ring ────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-glow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
