/*
 * Theme Name:  Hitt Records v1
 * Theme URI:   https://hittrecords.com
 * Description: Custom WordPress/WooCommerce theme for Hitt Records — a brick-and-mortar
 *              record shop owned by Kyle Cook and Taylor Bacon. Vintage maximalism meets
 *              neon-soaked crate-digging culture.
 * Version:     1.5.9
 * Author:      Hitt Records
 * Author URI:  https://hittrecords.com
 * Text Domain: hittrexxx_v1
 * Requires at least: 6.0
 * Requires PHP: 8.0
 * WC requires at least: 8.0
 * WC tested up to: 9.0
 */

/* =============================================================================
   CUSTOM PROPERTIES (CSS Variables)
   All design tokens live here so the palette and type scale can be
   updated globally from one place.
   ============================================================================= */

:root {

  /* ---------------------------------------------------------------------------
     Colors — TBD. Placeholder names are set; swap values when palette is locked.
     Design direction: vibrant neons against dark/textured backgrounds.
     --------------------------------------------------------------------------- */

  --color-bg:             #111111;   /* Site background — deep, near-black */
  --color-bg-alt:         #1a1a1a;   /* Slightly lighter bg for cards, panels */
  --color-surface:        #222222;   /* Surface / elevated element bg */

  --color-text:           #f0f0f0;   /* Primary body text */
  --color-text-muted:     #888888;   /* Secondary / muted text */
  --color-text-inverse:   #111111;   /* Text on light backgrounds */

  --color-primary:        #ff3c00;   /* TBD — neon/accent primary (placeholder: hot orange-red) */
  --color-primary-hover:  #e03000;   /* Hover state for primary */

  --color-secondary:      #00e5ff;   /* TBD — neon secondary (placeholder: electric cyan) */
  --color-secondary-hover:#00c8e0;

  --color-accent-1:       #ffe600;   /* TBD — accent (placeholder: neon yellow) */
  --color-accent-2:       #cc00ff;   /* TBD — accent (placeholder: electric violet) */

  --color-border:         #333333;   /* Subtle borders and dividers */
  --color-border-strong:  #555555;

  --color-error:          #ff4444;
  --color-success:        #44cc44;
  --color-warning:        #ffcc00;

  /* ---------------------------------------------------------------------------
     Typography — TBD. Font families are placeholders; update when fonts are chosen.
     Likely direction: bold display fonts, vintage/punk character.
     --------------------------------------------------------------------------- */

  --font-display:         'Impact', 'Arial Black', sans-serif;   /* Headlines — TBD */
  --font-body:            'Arial', Helvetica, sans-serif;         /* Body copy — TBD */
  --font-mono:            'Courier New', Courier, monospace;      /* Code, labels */

  /* Type scale — mobile-first base, scaled up at breakpoints */
  --font-size-xs:         0.75rem;   /*  12px */
  --font-size-sm:         0.875rem;  /*  14px */
  --font-size-base:       1rem;      /*  16px */
  --font-size-md:         1.125rem;  /*  18px */
  --font-size-lg:         1.25rem;   /*  20px */
  --font-size-xl:         1.5rem;    /*  24px */
  --font-size-2xl:        2rem;      /*  32px */
  --font-size-3xl:        2.5rem;    /*  40px */
  --font-size-4xl:        3rem;      /*  48px */
  --font-size-5xl:        4rem;      /*  64px */

  --font-weight-normal:   400;
  --font-weight-bold:     700;
  --font-weight-black:    900;

  --line-height-tight:    1.1;
  --line-height-normal:   1.5;
  --line-height-relaxed:  1.75;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide:  0.05em;
  --letter-spacing-wider: 0.1em;

  /* ---------------------------------------------------------------------------
     Spacing scale
     --------------------------------------------------------------------------- */

  --space-1:   0.25rem;   /*  4px */
  --space-2:   0.5rem;    /*  8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */

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

  --max-width-content:    720px;    /* Comfortable reading width */
  --max-width-default:    1100px;   /* Standard content container */
  --max-width-wide:       1400px;   /* Wide/full-bleed sections */

  --gutter:               var(--space-4);   /* Default horizontal page padding */

  /* ---------------------------------------------------------------------------
     Borders & Radii
     --------------------------------------------------------------------------- */

  --radius-sm:     2px;
  --radius-md:     4px;
  --radius-lg:     8px;
  --radius-full:   9999px;

  --border-width:  1px;
  --border-width-thick: 3px;

  /* ---------------------------------------------------------------------------
     Transitions
     --------------------------------------------------------------------------- */

  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;

  /* ---------------------------------------------------------------------------
     Z-index scale
     --------------------------------------------------------------------------- */

  --z-base:      0;
  --z-raised:    10;
  --z-overlay:   100;
  --z-sticky:    200;
  --z-modal:     300;
  --z-toast:     400;
}


/* =============================================================================
   RESET / BASE
   ============================================================================= */

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

html {
  font-size: 100%; /* Respect user browser settings */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  /* overflow-x: hidden removed — breaks position:sticky on ticker/header.
     Horizontal overflow is already clamped by html { overflow-x: hidden } above. */
  line-height: var(--line-height-normal);
  min-height: 100vh;
}

/* Remove list styling when lists are used for navigation */
ul,
ol {
  list-style: none;
}

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

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

/* Images */
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form elements inherit font */
input,
button,
select,
textarea {
  font: inherit;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text);
}

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

p {
  line-height: var(--line-height-normal);
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
}

/* HR */
hr {
  border: none;
  border-top: var(--border-width) solid var(--color-border);
  margin: var(--space-8) 0;
}


/* =============================================================================
   LAYOUT UTILITIES
   ============================================================================= */

/* Main content wrapper — centers content with horizontal gutter */
.container {
  width: 100%;
  max-width: var(--max-width-default);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.container--narrow {
  max-width: var(--max-width-content);
}

/* WordPress core alignment classes */
.alignleft  { float: left; margin-right: var(--space-6); }
.alignright { float: right; margin-left: var(--space-6); }
.aligncenter {
  display: block;
  margin-inline: auto;
}


/* =============================================================================
   SKIP LINK (Accessibility)
   ============================================================================= */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: var(--font-weight-bold);
  z-index: var(--z-toast);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}


/* =============================================================================
   SITE HEADER  (.site-header)
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-bg);
  border-bottom: var(--border-width-thick) solid var(--color-primary);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

/* Site branding */
.site-header__branding {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-header__logo img {
  max-height: 60px;
  width: auto;
}

.site-header__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-black);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1;
}

.site-header__title a {
  color: inherit;
}

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

.site-header__tagline {
  display: none; /* Hidden on mobile, shown at larger breakpoints */
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
}


/* =============================================================================
   NAVIGATION  (.nav-primary)
   ============================================================================= */

.nav-primary {
  display: block; /* Drawer is always rendered; visibility controlled by transform */
}

.nav-primary__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav-primary__item {}

.nav-primary__link {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-text);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-primary__link:hover,
.nav-primary__link:focus,
.nav-primary__item--current > .nav-primary__link {
  color: var(--color-primary);
}

/* Nav toggle button — lives in the nav-bar flow (not fixed) */
.nav-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: var(--space-2);
  background: none;
  border: var(--border-width) solid var(--color-border);
  cursor: pointer;
  min-width: 44px; /* WCAG touch target */
  min-height: 44px;
  position: static;
  z-index: auto;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Open state — bars animate into an × */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav panel — collapsible full-width strip on mobile */
.nav-primary {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.nav-primary--open {
  max-height: 600px;
}

/* Overlay backdrop — no longer used, kept for safety */
.nav-overlay {
  display: none !important;
}


/* =============================================================================
   SITE MAIN  (.site-main)
   ============================================================================= */

.site-main {
  min-height: 60vh;
  padding-block: var(--space-12);
}


/* =============================================================================
   SITE FOOTER  (.site-footer)
   ============================================================================= */

.site-footer {
  background-color: var(--color-surface);
  border-top: var(--border-width-thick) solid var(--color-primary);
  padding-block: var(--space-12);
}

.site-footer__widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.site-footer__colophon {
  border-top: var(--border-width) solid var(--color-border);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-align: center;
}


/* =============================================================================
   BUTTONS  (.btn)
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  border: var(--border-width-thick) solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
  min-height: 44px; /* WCAG touch target */
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-text-inverse);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn--ghost:hover,
.btn--ghost:focus {
  border-color: var(--color-text);
  color: var(--color-text);
}


/* =============================================================================
   ENTRY / POST  (.entry)
   ============================================================================= */

.entry {
  margin-bottom: var(--space-12);
}

.entry__header {
  margin-bottom: var(--space-6);
}

.entry__title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-3);
}

.entry__title a {
  color: inherit;
}

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

.entry__meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  letter-spacing: var(--letter-spacing-wide);
}

.entry__content {
  line-height: var(--line-height-relaxed);
}

/* Prose styles for entry content */
.entry__content p,
.entry__content ul,
.entry__content ol,
.entry__content blockquote,
.entry__content pre,
.entry__content table {
  margin-bottom: var(--space-6);
}

.entry__content ul,
.entry__content ol {
  padding-left: var(--space-6);
}

.entry__content ul { list-style: disc; }
.entry__content ol { list-style: decimal; }

.entry__content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry__content blockquote {
  border-left: var(--border-width-thick) solid var(--color-primary);
  padding-left: var(--space-6);
  color: var(--color-text-muted);
  font-style: italic;
}

.entry__content pre {
  background: var(--color-surface);
  padding: var(--space-4);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
}

.entry__footer {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: var(--border-width) solid var(--color-border);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}


/* =============================================================================
   PAGE HERO  (.page-hero)
   ============================================================================= */

.page-hero {
  padding-block: var(--space-16);
  border-bottom: var(--border-width) solid var(--color-border);
}

.page-hero__title {
  font-size: var(--font-size-4xl);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-tight);
}


/* =============================================================================
   404 PAGE  (.error-404)
   ============================================================================= */

.error-404 {
  text-align: center;
  padding-block: var(--space-24);
}

.error-404__code {
  font-family: var(--font-display);
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
  color: var(--color-primary);
  line-height: 1;
}

.error-404__message {
  font-size: var(--font-size-2xl);
  margin-block: var(--space-4) var(--space-8);
}


/* =============================================================================
   SEARCH FORM  (.search-form)
   ============================================================================= */

.search-form {
  display: flex;
  gap: var(--space-2);
}

.search-form__input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  color: var(--color-text);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
}

.search-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.search-form__input::placeholder {
  color: var(--color-text-muted);
}

.search-form__submit {
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.search-form__submit:hover {
  background: var(--color-primary-hover);
}


/* =============================================================================
   PAGINATION  (.pagination)
   ============================================================================= */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
  flex-wrap: wrap;
}

.pagination__item a,
.pagination__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-2);
  border: var(--border-width) solid var(--color-border);
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.pagination__item a:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination__item--current span {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}


/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* Medium — tablet portrait and up */
@media (min-width: 640px) {
  :root {
    --gutter: var(--space-8);
  }

  .site-footer__widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large — desktop and up */
@media (min-width: 1024px) {
  :root {
    --gutter: var(--space-12);
  }

  /* Show full nav, hide toggle */
  .nav-toggle {
    display: none;
  }

  .nav-primary {
    max-height: none !important;
    overflow: visible !important;
    transition: none !important;
  }

  .nav-primary__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
  }

  .site-header__tagline {
    display: block;
  }

  .site-footer__widgets {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__colophon {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Extra large */
@media (min-width: 1280px) {
  :root {
    --gutter: var(--space-16);
  }
}
