/*
Theme Name: Knife Fingerboards
Theme URI: https://www.knifefingerboards.com
Author: Knife Fingerboards
Description: A skate-inspired, streetwear-feel theme for the fingerboarding community. Features a marketplace, blog, and resources for all fingerboarders.
Version: 1.0.0
License: GNU General Public License v2 or later
Tags: fingerboarding, marketplace, community, skate
Text Domain: knife-fingerboards
*/

/* ===================================================
   CSS CUSTOM PROPERTIES
   =================================================== */
:root {
  --black:       #0a0a0a;
  --off-black:   #111111;
  --dark:        #1a1a1a;
  --mid:         #2a2a2a;
  --grey:        #444444;
  --light-grey:  #888888;
  --off-white:   #f0ede8;
  --white:       #ffffff;

  /* Brand accents */
  --acid:        #c8f400;   /* acid yellow-green - primary accent */
  --hot:         #ff3c00;   /* hot orange-red    - secondary accent */
  --ice:         #00d4ff;   /* ice blue          - tertiary */

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'DM Mono', 'Courier New', monospace;
  --font-ui:      'Space Mono', monospace;

  --radius:      4px;
  --radius-lg:   8px;
  --transition:  0.2s ease;
  --gutter:      clamp(1rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: crosshair;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--acid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--hot); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

p { margin-bottom: 1rem; }
ul { list-style: none; }

/* ===================================================
   LAYOUT UTILITIES
   =================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===================================================
   TYPOGRAPHY SCALE
   =================================================== */
.display-xl  { font-size: clamp(4rem, 12vw, 11rem); }
.display-lg  { font-size: clamp(3rem, 8vw,  7rem); }
.display-md  { font-size: clamp(2rem, 5vw,  4rem); }
.display-sm  { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.text-accent { color: var(--acid); }
.text-hot    { color: var(--hot); }
.text-ice    { color: var(--ice); }
.text-muted  { color: var(--light-grey); }
.text-center { text-align: center; }
.text-upper  { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-101%);
  transition: transform 0.25s ease;
  z-index: 0;
}
.btn:hover::before { transform: translateX(0); }
.btn span, .btn > * { position: relative; z-index: 1; }

.btn-primary {
  background: var(--acid);
  color: var(--black);
  border-color: var(--acid);
}
.btn-primary::before { background: var(--hot); }
.btn-primary:hover   { color: var(--white); border-color: var(--hot); }

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border-color: var(--off-white);
}
.btn-outline::before { background: var(--off-white); }
.btn-outline:hover   { color: var(--black); }

.btn-ghost {
  background: transparent;
  color: var(--acid);
  border-color: var(--acid);
}
.btn-ghost::before { background: var(--acid); }
.btn-ghost:hover   { color: var(--black); }

.btn-danger {
  background: var(--hot);
  color: var(--white);
  border-color: var(--hot);
}

/* ===================================================
   HEADER / NAVIGATION
   =================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mid);
  transition: border-color var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--acid);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--black);
  font-size: 1.1rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1;
}
.logo-text span { color: var(--acid); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light-grey);
  padding: 0.4rem 0.8rem;
  transition: color var(--transition);
}
.site-nav a:hover,
.site-nav .current-menu-item a { color: var(--acid); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-actions .btn { padding: 0.45rem 1.1rem; font-size: 0.85rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--off-white);
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .site-nav, .header-actions .btn-outline { display: none; }
  .hamburger { display: flex; }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  background: var(--off-black);
  z-index: 999;
  padding: 2rem var(--gutter);
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--off-white);
  text-transform: uppercase;
}
.mobile-nav a:hover { color: var(--acid); }

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(200,244,0,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,60,0,0.08) 0%, transparent 60%),
    var(--black);
}

/* Diagonal stripe accent */
.hero-bg::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 55%;
  height: 140%;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 40px,
    rgba(200,244,0,0.025) 40px,
    rgba(200,244,0,0.025) 41px
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--acid);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--acid);
}

.hero h1 {
  font-size: clamp(4.5rem, 13vw, 12rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.hero h1 .line-1 { color: var(--white); }
.hero h1 .line-2 { color: var(--acid); -webkit-text-stroke: 0; }
.hero h1 .line-3 {
  color: transparent;
  -webkit-text-stroke: 2px var(--off-white);
}

.hero-sub {
  font-size: 1rem;
  color: var(--light-grey);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--mid);
}

.stat-item {}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--acid);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--light-grey);
  margin-top: 0.2rem;
}

/* Scrolling ticker */
.ticker-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  background: var(--acid);
  padding: 0.5rem 0;
  z-index: 3;
}
.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker-item {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--black);
  padding: 0 2rem;
}
.ticker-item::after {
  content: '//';
  margin-left: 2rem;
  opacity: 0.4;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================================================
   SECTION DEFAULTS
   =================================================== */
.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--acid);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--acid);
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--light-grey);
  max-width: 520px;
  margin-bottom: 3rem;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--mid);
  margin: 0;
}

/* ===================================================
   FEATURED / KNIFE MFG SECTION
   =================================================== */
.knife-section {
  background: var(--off-black);
  position: relative;
  overflow: hidden;
}

.knife-section::before {
  content: 'KNIFE';
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 20rem);
  color: rgba(200,244,0,0.03);
  letter-spacing: -0.05em;
  pointer-events: none;
  line-height: 1;
}

.knife-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.knife-badge {
  display: inline-block;
  background: var(--acid);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.knife-image-stack {
  position: relative;
  height: 480px;
}

.knife-img-placeholder {
  position: absolute;
  border-radius: var(--radius);
}
.knife-img-main {
  width: 75%;
  height: 80%;
  background: var(--mid);
  top: 0;
  left: 0;
  border: 1px solid var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--grey);
  letter-spacing: 0.1em;
}
.knife-img-accent {
  width: 55%;
  height: 55%;
  background: linear-gradient(135deg, var(--acid) 0%, rgba(200,244,0,0.3) 100%);
  bottom: 0;
  right: 0;
  border: 2px solid var(--acid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--black);
}

@media (max-width: 768px) {
  .knife-grid { grid-template-columns: 1fr; }
  .knife-image-stack { height: 320px; }
}

/* ===================================================
   MARKETPLACE / LISTINGS
   =================================================== */
.listings-section { background: var(--black); }

.listing-card {
  background: var(--off-black);
  border: 1px solid var(--mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.listing-card:hover {
  transform: translateY(-4px);
  border-color: var(--acid);
}

.listing-card:hover .listing-thumb::after {
  opacity: 1;
}

.listing-thumb {
  aspect-ratio: 4/3;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.listing-card:hover .listing-thumb img { transform: scale(1.04); }

.listing-thumb::after {
  content: 'VIEW';
  position: absolute;
  inset: 0;
  background: rgba(200,244,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--black);
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.listing-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--mid);
  background: var(--dark);
}

.listing-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--hot);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.listing-badge.sold {
  background: var(--grey);
}

.listing-body {
  padding: 1.25rem;
}

.listing-category {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--acid);
  margin-bottom: 0.4rem;
}

.listing-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.1;
}

.listing-condition {
  font-size: 0.75rem;
  color: var(--light-grey);
  margin-bottom: 0.8rem;
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid var(--mid);
}

.listing-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--acid);
}
.listing-price span {
  font-size: 0.75rem;
  color: var(--light-grey);
  font-family: var(--font-ui);
}

.listing-seller {
  font-size: 0.7rem;
  color: var(--light-grey);
  font-family: var(--font-ui);
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  background: var(--off-black);
  border: 1px solid var(--mid);
  border-radius: var(--radius-lg);
}

.filter-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light-grey);
  margin-right: 0.5rem;
}

.filter-btn {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--mid);
  border-radius: 2px;
  background: transparent;
  color: var(--light-grey);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--acid);
  color: var(--acid);
  background: rgba(200,244,0,0.06);
}

.filter-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark);
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
}

.filter-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--off-white);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  width: 160px;
}
.filter-search input::placeholder { color: var(--grey); }

/* ===================================================
   BLOG
   =================================================== */
.blog-section { background: var(--off-black); }

.blog-card {
  border: 1px solid var(--mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  transition: border-color var(--transition), transform 0.25s;
}
.blog-card:hover {
  border-color: var(--acid);
  transform: translateY(-3px);
}

.blog-thumb {
  aspect-ratio: 16/9;
  background: var(--mid);
  overflow: hidden;
}
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-thumb img { transform: scale(1.05); }

.blog-body { padding: 1.5rem; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.blog-tag {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--acid);
}
.blog-date {
  font-size: 0.7rem;
  color: var(--light-grey);
  font-family: var(--font-ui);
}

.blog-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.15;
}
.blog-excerpt {
  font-size: 0.85rem;
  color: var(--light-grey);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.blog-read-more {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--acid);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.blog-read-more::after { content: '→'; }
.blog-read-more:hover::after { margin-left: 4px; }

/* ===================================================
   RESOURCES
   =================================================== */
.resources-section { background: var(--black); }

.resource-card {
  border: 1px solid var(--mid);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: var(--off-black);
  transition: border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--acid);
  transition: height 0.3s ease;
}
.resource-card:hover { border-color: var(--mid); }
.resource-card:hover::before { height: 100%; }

.resource-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,244,0,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.resource-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.resource-desc {
  font-size: 0.83rem;
  color: var(--light-grey);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.resource-link {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--acid);
}

/* ===================================================
   CTA / SIGNUP SECTION
   =================================================== */
.cta-section {
  background: var(--acid);
  color: var(--black);
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.cta-section::before {
  content: 'JOIN';
  position: absolute;
  left: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 18rem);
  color: rgba(0,0,0,0.07);
  pointer-events: none;
  letter-spacing: -0.05em;
}

.cta-section .section-label::before { background: var(--black); }
.cta-section .section-label { color: var(--black); opacity: 0.6; }
.cta-section .section-title { color: var(--black); }
.cta-section .section-intro { color: rgba(0,0,0,0.65); }

.cta-section .btn-primary {
  background: var(--black);
  color: var(--acid);
  border-color: var(--black);
}
.cta-section .btn-primary:hover { color: var(--white); }
.cta-section .btn-outline {
  border-color: var(--black);
  color: var(--black);
}
.cta-section .btn-outline::before { background: var(--black); }
.cta-section .btn-outline:hover { color: var(--acid); }

/* ===================================================
   FORMS (Login / Register / Submit Listing)
   =================================================== */
.form-wrap {
  background: var(--off-black);
  border: 1px solid var(--mid);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 520px;
  margin: 0 auto;
}

.form-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 0.4rem;
}
.form-subtitle {
  color: var(--light-grey);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light-grey);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--acid); }

.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--dark); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-grid { grid-template-columns: 1fr; } }

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--light-grey);
}
.form-footer a { color: var(--acid); }

.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--grey);
  font-size: 0.75rem;
  font-family: var(--font-ui);
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mid);
}

.form-error {
  background: rgba(255,60,0,0.12);
  border: 1px solid var(--hot);
  border-radius: var(--radius);
  color: var(--hot);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.form-success {
  background: rgba(200,244,0,0.1);
  border: 1px solid var(--acid);
  border-radius: var(--radius);
  color: var(--acid);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--off-black);
  border-top: 1px solid var(--mid);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--light-grey);
  margin-top: 1rem;
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--light-grey);
  margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--grey);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--acid); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--mid);
  font-size: 0.75rem;
  color: var(--grey);
  font-family: var(--font-ui);
}

.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { color: var(--grey); }
.footer-legal a:hover { color: var(--acid); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ===================================================
   SINGLE LISTING PAGE
   =================================================== */
.listing-single {
  padding-top: calc(64px + 3rem);
  padding-bottom: 5rem;
}

.listing-single-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

.listing-images {
  position: sticky;
  top: 84px;
}

.listing-main-img {
  aspect-ratio: 4/3;
  background: var(--off-black);
  border: 1px solid var(--mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}
.listing-main-img img { width: 100%; height: 100%; object-fit: cover; }

.listing-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.listing-thumbnail {
  aspect-ratio: 1;
  background: var(--off-black);
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition);
}
.listing-thumbnail:hover,
.listing-thumbnail.active { border-color: var(--acid); }

.listing-info-box {
  background: var(--off-black);
  border: 1px solid var(--mid);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.listing-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.listing-price-lg {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--acid);
  line-height: 1;
}
.listing-currency {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--light-grey);
}

.listing-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--mid);
  font-size: 0.82rem;
}
.listing-meta-row:last-of-type { border-bottom: none; }
.listing-meta-key {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--light-grey);
}
.listing-meta-value { color: var(--off-white); }

.contact-seller-btn {
  width: 100%;
  margin-top: 1.5rem;
  text-align: center;
  display: block;
}

.listing-description { margin-top: 2rem; }
.listing-description h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.listing-description p { font-size: 0.88rem; color: var(--light-grey); }

@media (max-width: 900px) {
  .listing-single-grid { grid-template-columns: 1fr; }
  .listing-images { position: static; }
}

/* ===================================================
   PAGE HERO (inner pages)
   =================================================== */
.page-hero {
  padding-top: calc(64px + 4rem);
  padding-bottom: 3rem;
  background: var(--off-black);
  border-bottom: 1px solid var(--mid);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(200,244,0,0.02) 20px,
    rgba(200,244,0,0.02) 21px
  );
}

/* ===================================================
   SELLER DASHBOARD
   =================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-top: calc(64px + 3rem);
  padding-bottom: 5rem;
}

.dashboard-sidebar {
  background: var(--off-black);
  border: 1px solid var(--mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 84px;
}

.dashboard-user {
  padding: 1.5rem;
  border-bottom: 1px solid var(--mid);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--acid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--black);
  flex-shrink: 0;
}

.user-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
}
.user-role {
  font-size: 0.7rem;
  color: var(--acid);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  color: var(--light-grey);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.dashboard-nav a:hover,
.dashboard-nav a.active {
  color: var(--acid);
  border-left-color: var(--acid);
  background: rgba(200,244,0,0.04);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-stat {
  background: var(--off-black);
  border: 1px solid var(--mid);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.dash-stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--acid);
  line-height: 1;
}
.dash-stat-label {
  font-size: 0.7rem;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light-grey);
  margin-top: 0.25rem;
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-up   { animation: fadeUp 0.6s ease both; }
.animate-fade-in   { animation: fadeIn 0.6s ease both; }
.animate-slide-left { animation: slideInLeft 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===================================================
   UTILITIES
   =================================================== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.w-full { width: 100%; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
