/* ================================
   global.css — diyolab.dev
   Shared styles for all pages
   ================================ */

:root {
  color-scheme: dark;

  --bg: #020617;
  --bg-elevated: rgba(15, 23, 42, 0.9);
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --muted-soft: rgba(148, 163, 184, 0.65);

  --accent: #38bdf8;
  --accent2: #a855f7;
  --accent3: #f97316;

  --border-subtle: rgba(148, 163, 184, 0.35);


}

/* ---- Reset-ish ---- */

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

html, body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #020617, #020617 55%, #030712 100%);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;

  /* NEW: make body a flex column */
  display: flex;
  flex-direction: column;
}

/* Make links inherit text color by default */
a {
  color: inherit;
  text-decoration: none;
}

/* Basic text selection color */
::selection {
  background: rgba(56, 189, 248, 0.35);
  color: #f9fafb;
}

/* ---- Layout shell ---- */

.page-shell {
  width: 100%;
  padding: 1.5rem 2rem 2.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
}

/* ---- Header / Nav ---- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.9rem;
}

.site-title {
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  padding-bottom: 0.1rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  transition: width 0.18s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a.active {
  color: var(--fg);
}

/* ---- Footer ---- */

.site-footer {
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---- Typography ---- */

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  line-height: 1.6;
}

/* ---- Buttons (shared with pages that use them) ---- */

.btn-primary,
.btn-ghost {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: 0.22s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0b1120;
  border: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.9);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  color: var(--fg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(248, 250, 252, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.8);
}

/* ---- Responsive tweaks ---- */

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }
}

