/* MIKE IS MAKING STUFF — Lovable "Maker Hub" reskin
   Design system extracted from Lovable project 2026-10-06.
   Reskin only: existing PHP/HTML structure untouched. */

@import url('../fonts/fonts.css');

:root {
  --background: #090807;
  --surface-deep: #040403;
  --card: #131110;
  --surface-lift: #191715;
  --surface-muted: #1E1B1A;
  --secondary: #2A2523;
  --foreground: #EEEAE5;
  --primary-foreground: #FAFAFA;
  --muted-foreground: #95918D;
  --border: #383532;
  --line-soft: rgba(58, 55, 53, 0.6);
  --primary: #DF312F;
  --primary-hover: rgba(223, 49, 47, 0.85);
  --accent-brick: #422521;
  --font-display: "Barlow Condensed", Impact, sans-serif;
  --font-body: "Barlow", Arial, sans-serif;
  --radius: 2px;
  --content-width: 1320px;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
::selection { background: var(--primary); color: var(--primary-foreground); }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }

/* ---------- ANNOUNCEMENT BAR ---------- */
.announcement-bar {
  background: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 16px;
}
.announcement-bar a {
  color: var(--primary-foreground);
  text-decoration: none;
}
.announcement-bar a:hover { text-decoration: underline; }

/* ---------- HEADER ---------- */
header.site-header {
  background: var(--surface-deep);
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  padding: 0;
  position: relative;
  z-index: 10;
}
.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--foreground);
}
.main-nav {
  display: flex;
  gap: 34px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--foreground);
  text-decoration: none;
  position: relative;
  padding-block: 6px;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a[data-status="active"] { color: var(--primary); }
.main-nav a[data-status="active"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -18px;
  height: 3px;
  background: var(--primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-shop {
  font-size: 16px;
  padding: 10px 20px;
}
/* Legacy classes kept for compatibility */
.header-branding { display: none; }
.header-avatar { display: none; }
.site-title { display: none; }
.site-subtitle { display: none; }

/* Hamburger */
.hamburger {
  display: block;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--foreground);
  cursor: pointer;
  padding: 8px;
}
.hamburger:hover { color: var(--primary); }

/* ---------- NAV OVERLAY ---------- */
.mobile-nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--surface-deep);
  color: var(--foreground);
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-100vw);
  transition: transform 0.5s cubic-bezier(.77,0,.18,1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.mobile-nav-overlay.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-content { text-align: center; max-width: 420px; padding: 24px; }
.close-overlay {
  background: none; border: none; color: var(--foreground);
  font-size: 2.4rem; cursor: pointer; position: absolute; top: 18px; right: 26px;
}
.close-overlay:hover { color: var(--primary); }
.overlay-profile {
  width: 98px; height: 98px; border-radius: 50%; object-fit: cover;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.mobile-nav-links a {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; text-transform: uppercase;
  color: var(--foreground); text-decoration: none; padding: 8px;
}
.mobile-nav-links a:hover, .mobile-nav-links a.active { color: var(--primary); }
.menu-footer-info { margin-top: 22px; color: var(--muted-foreground); font-size: 14px; }
.menu-footer-info a { color: var(--primary); }

/* ---------- CONTENT ---------- */
main, .content, .page-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 24px 83px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--foreground);
  font-weight: 800;
}
h1 { font-size: clamp(48px, 6vw, 84px); }
h2 { font-size: clamp(36px, 4vw, 56px); }
h3 { font-size: 28px; }
p { color: var(--foreground); }
.muted, .text-muted { color: var(--muted-foreground); }

/* Eyebrow label */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: var(--primary); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- BUTTONS ---------- */
.btn, button.btn, a.btn,
input[type="submit"], input[type="button"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius);
  background: var(--primary);
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; text-transform: uppercase;
  color: var(--primary-foreground);
  border: none; cursor: pointer;
  padding: 12px 24px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn:hover, a.btn:hover,
input[type="submit"]:hover, input[type="button"]:hover {
  background: var(--primary-hover);
  color: var(--primary-foreground);
}
.btn-outline, a.btn-outline {
  background: transparent;
  border: 1px solid var(--foreground);
  color: var(--foreground);
}
.btn-outline:hover, a.btn-outline:hover {
  background: var(--foreground);
  color: var(--background);
}

/* ---------- CARDS ---------- */
.card, .project-card, .resource-card, .blog-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
.card img, .project-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.card-body, .project-card-body { padding: 22px 24px 26px; }
.card-kicker {
  display: flex; justify-content: space-between;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  text-transform: uppercase; color: var(--primary);
}
.card h3, .project-card h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
  text-transform: uppercase; margin: 10px 0 8px; line-height: 1;
}
.card p, .project-card p { margin: 0; color: var(--muted-foreground); font-size: 16px; line-height: 1.55; }

/* ---------- GRIDS ---------- */
.project-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.resource-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}

/* ---------- ARTICLE / RESOURCE VIEW ---------- */
.article-content, .resource-content { max-width: 860px; }
.article-content img, .resource-content img {
  border-radius: 0;
  border: 1px solid var(--line-soft);
}
.article-content h2, .resource-content h2 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
}

/* ---------- FORMS ---------- */
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], textarea, select {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 10px 14px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
label { color: var(--foreground); font-weight: 600; }

/* ---------- TABLES ---------- */
table { border-collapse: collapse; width: 100%; }
th {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 700;
  background: var(--surface-muted); color: var(--foreground);
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border);
}
td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); color: var(--foreground); }
tr:hover td { background: var(--surface-lift); }

/* ---------- FOOTER ---------- */
footer.footer {
  background: var(--surface-deep);
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  padding: 40px 24px 22px;
  text-align: center;
  font-size: 14px;
}
footer.footer a { color: var(--primary); }
footer.footer a:hover { color: var(--primary-hover); }

/* ---------- CRIMSON BAND ---------- */
.crimson-band {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 64px 24px;
}
.crimson-band h2 { color: var(--primary-foreground); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 720px;
  overflow: hidden;
  background: var(--surface-deep);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,8,7,0.91) 0%, rgba(9,8,7,0.75) 33%, rgba(9,8,7,0.24) 70%, rgba(9,8,7,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 110px;
  width: min(100% - 48px, var(--content-width));
  margin-inline: auto;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 84px);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
  color: var(--foreground);
  max-width: 640px;
}
.hero h1 em {
  color: var(--primary);
  font-style: normal;
}
.hero-copy {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--foreground);
  margin: 26px 0 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- SECTION HEADINGS ---------- */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 34px;
}
.section-heading h2 {
  margin: 14px 0 0;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  color: var(--foreground);
  text-decoration: none;
  white-space: nowrap;
}
.text-link:hover { color: var(--primary); }

/* ---------- UTILITIES ---------- */
.container-site { width: min(100% - 48px, var(--content-width)); margin-inline: auto; }
.section { padding-block: 83px 94px; }

/* ---------- MERCH ---------- */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 2rem;
}
.merch-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease;
  display: block;
}
.merch-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.merch-image { aspect-ratio: 1; overflow: hidden; background: #040403; }
.merch-image img { width: 100%; height: 100%; object-fit: cover; }
.merch-info { padding: 1.25rem; }
.merch-info h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; margin: 0 0 .5rem; }
.merch-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin: 0 0 .5rem; }
.merch-shop { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.merch-note { text-align: center; color: var(--muted); font-size: .9rem; }
.merch-empty { text-align: center; color: var(--muted); padding: 3rem 0; grid-column: 1 / -1; }
.merch-empty a { color: var(--primary); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .project-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  h1 { font-size: 44px; }
  .main-nav { display: none; }
  .btn-shop { display: none; }
  .hero { min-height: 620px; }
  .hero-content { padding-block: 84px; }
}
@media (max-width: 640px) {
  main, .content, .page-content { padding: 32px 16px 64px; }
  .header-branding { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
