/*
Theme Name: Sneaker History Dark
Theme URI: https://sneakerhistory.com
Description: Dark Premium Modern Editorial theme for Sneaker History. Infrared AM90 palette.
Author: Nick Engvall
Template: generatepress
Version: 1.0.0
Text Domain: sneaker-history-dark
*/

/* ============================================
   INFRARED AM90 PALETTE
   #111111 - primary background
   #1C1C1C - card backgrounds
   #2E2C2A - borders / subtle dividers
   #2A2826 - secondary backgrounds
   #7A7774 - muted text / labels
   #F0EDE8 - primary text (warm white)
   #FF2247 - accent (infrared)
   ============================================ */

:root {
  --sh-black:    #111111;
  --sh-card:     #1C1C1C;
  --sh-border:   #2E2C2A;
  --sh-dark:     #2A2826;
  --sh-muted:    #7A7774;
  --sh-cream:    #F0EDE8;
  --sh-infrared: #FF2247;
}

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

html, body {
  background-color: var(--sh-black) !important;
  color: var(--sh-cream) !important;
}

.site,
#page {
  background-color: var(--sh-black) !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

body,
p,
li,
td,
.entry-content,
.entry-summary {
  font-family: 'Inter', sans-serif !important;
  color: var(--sh-cream);
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.entry-title a,
.page-title,
.widget-title {
  font-family: 'Playfair Display', serif !important;
  color: var(--sh-cream) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.entry-title a:hover {
  color: var(--sh-infrared) !important;
}

/* ============================================
   LINKS
   ============================================ */

a {
  color: var(--sh-cream);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--sh-infrared);
}

/* ============================================
   HEADER
   ============================================ */

.site-header,
#masthead,
.header-widget,
.site-top-bar {
  background-color: var(--sh-black) !important;
  border-bottom: 1px solid var(--sh-border) !important;
}

.site-title a,
.site-title {
  color: var(--sh-cream) !important;
  font-family: 'Playfair Display', serif !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-description {
  color: var(--sh-muted) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.75rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-navigation,
.nav-primary,
.main-navigation ul {
  background-color: var(--sh-black) !important;
}

.main-navigation a,
.nav-primary a {
  color: var(--sh-cream) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-navigation a:hover,
.nav-primary a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
  color: var(--sh-infrared) !important;
}

.main-navigation .sub-menu,
.main-navigation .children {
  background-color: var(--sh-card) !important;
  border: 1px solid var(--sh-border) !important;
}

.main-navigation .sub-menu a {
  border-bottom: 1px solid var(--sh-border) !important;
}

.menu-toggle,
.menu-toggle:hover {
  color: var(--sh-cream) !important;
  background: transparent !important;
  border-color: var(--sh-border) !important;
}

/* ============================================
   CONTENT AREA
   ============================================ */

.site-content,
.content-area,
#primary,
#secondary,
.widget-area {
  background-color: var(--sh-black) !important;
}

/* ============================================
   POST ARCHIVE CARDS
   ============================================ */

.post,
article.post,
.type-post,
.hentry {
  background-color: transparent;
  border-bottom: 1px solid var(--sh-border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

/* ============================================
   ENTRY META
   ============================================ */

.entry-meta,
.entry-meta a,
.entry-footer,
.entry-footer a,
.posted-on,
.byline,
.cat-links a,
.post-categories a {
  color: var(--sh-muted) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cat-links a:hover,
.post-categories a:hover {
  color: var(--sh-infrared) !important;
}

/* ============================================
   FEATURED IMAGES
   ============================================ */

.post-thumbnail img,
.entry-featured-image img,
.wp-post-image {
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.9) contrast(1.05);
}

.post-thumbnail:hover img,
.entry-featured-image:hover img {
  transform: scale(1.02);
  filter: brightness(1.0) contrast(1.05);
}

/* ============================================
   BUTTONS
   ============================================ */

.button,
input[type="submit"],
.wp-block-button__link,
.generate-btn {
  background-color: var(--sh-infrared) !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border: none !important;
  border-radius: 0 !important;
  padding: 12px 28px !important;
  transition: background-color 0.2s ease;
}

.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.generate-btn:hover {
  background-color: #d4163c !important;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer,
#colophon,
.footer-widgets-container,
.footer-bar {
  background-color: #0A0A0A !important;
  border-top: 1px solid var(--sh-border) !important;
  color: var(--sh-muted) !important;
}

.site-footer a,
#colophon a {
  color: var(--sh-muted) !important;
}

.site-footer a:hover,
#colophon a:hover {
  color: var(--sh-infrared) !important;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination a,
.page-numbers {
  color: var(--sh-cream) !important;
  background-color: var(--sh-card) !important;
  border: 1px solid var(--sh-border) !important;
  font-family: 'Inter', sans-serif;
}

.pagination .current,
.page-numbers.current {
  background-color: var(--sh-infrared) !important;
  border-color: var(--sh-infrared) !important;
  color: #fff !important;
}

/* ============================================
   SINGLE POST
   ============================================ */

.single .entry-content p {
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--sh-cream);
}

.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

blockquote,
.wp-block-quote {
  border-left: 3px solid var(--sh-infrared) !important;
  background-color: var(--sh-card) !important;
  padding: 1.5rem 2rem !important;
  margin: 2rem 0 !important;
  font-family: 'Playfair Display', serif !important;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sh-cream);
}

blockquote p,
.wp-block-quote p {
  color: var(--sh-cream) !important;
}

/* ============================================
   CODE BLOCKS
   ============================================ */

code, pre, .wp-block-code {
  background-color: var(--sh-card) !important;
  color: var(--sh-cream) !important;
  border: 1px solid var(--sh-border) !important;
}

/* ============================================
   WIDGETS
   ============================================ */

.widget-title {
  color: var(--sh-cream) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--sh-infrared) !important;
  padding-bottom: 0.6rem;
  margin-bottom: 1.2rem;
}

/* ============================================
   FORMS + SEARCH
   ============================================ */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea,
.search-field {
  background-color: var(--sh-card) !important;
  border: 1px solid var(--sh-border) !important;
  color: var(--sh-cream) !important;
  font-family: 'Inter', sans-serif !important;
  border-radius: 0 !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--sh-muted) !important;
}

/* ============================================
   TABLES
   ============================================ */

table {
  border-color: var(--sh-border) !important;
}

th {
  background-color: var(--sh-card) !important;
  color: var(--sh-cream) !important;
}

td {
  color: var(--sh-cream) !important;
  border-color: var(--sh-border) !important;
}

tr:nth-child(even) td {
  background-color: var(--sh-card) !important;
}

/* ============================================
   TAGS
   ============================================ */

.tags-links a,
.post-tags a {
  background-color: var(--sh-card) !important;
  color: var(--sh-muted) !important;
  border: 1px solid var(--sh-border) !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  transition: all 0.2s ease;
}

.tags-links a:hover,
.post-tags a:hover {
  border-color: var(--sh-infrared) !important;
  color: var(--sh-infrared) !important;
  background-color: var(--sh-card) !important;
}

/* ============================================
   HR / SEPARATORS
   ============================================ */

hr {
  border-color: var(--sh-border) !important;
}

/* ============================================
   GP CONTAINER
   ============================================ */

.grid-container {
  max-width: 1280px;
}

/* ============================================
   HOMEPAGE EDITORIAL LAYOUT
   ============================================ */

/* Wrapper */
.sh-homepage {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* --- HERO SECTION --- */
.sh-hero {
  position: relative;
  width: 100%;
  min-height: 72vh;
  overflow: hidden;
  margin: 0 -2rem 4rem;
  width: calc(100% + 4rem);
}

.sh-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42);
  transition: transform 0.7s ease;
}

.sh-hero:hover .sh-hero-image {
  transform: scale(1.02);
}

.sh-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 72vh;
  padding: 3.5rem 3rem;
  background: linear-gradient(
    to top,
    rgba(17, 17, 17, 0.96) 0%,
    rgba(17, 17, 17, 0.55) 45%,
    rgba(17, 17, 17, 0.0) 100%
  );
}

.sh-hero-category {
  display: inline-block;
  background-color: var(--sh-infrared);
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 1.2rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.sh-hero-category:hover {
  background-color: #d4163c;
  color: #fff !important;
}

.sh-hero-title {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem) !important;
  font-weight: 700;
  color: #fff !important;
  line-height: 1.1;
  margin: 0 0 1.2rem;
  max-width: 820px;
  letter-spacing: -0.02em;
}

.sh-hero-title a {
  color: #fff !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sh-hero-title a:hover {
  color: var(--sh-infrared) !important;
}

.sh-hero-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: rgba(240, 237, 232, 0.78);
  max-width: 580px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.sh-hero-read-more {
  display: inline-block;
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 3px;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.sh-hero-read-more:hover {
  color: var(--sh-infrared) !important;
  border-color: var(--sh-infrared);
}

/* --- SECTION HEADER --- */
.sh-section-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.sh-section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sh-infrared);
  white-space: nowrap;
}

.sh-section-line {
  flex: 1;
  height: 1px;
  background-color: var(--sh-border);
}

/* --- EDITORIAL GRID --- */
.sh-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
  list-style: none;
  padding: 0;
}

@media (max-width: 960px) {
  .sh-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .sh-grid {
    grid-template-columns: 1fr !important;
  }
  .sh-hero-content {
    padding: 2rem 1.5rem;
  }
  .sh-hero {
    margin: 0 0 3rem;
    width: 100%;
  }
  .sh-homepage {
    padding: 0 1rem 3rem;
  }
}

/* --- CARD --- */
.sh-card {
  background-color: var(--sh-card);
  overflow: hidden;
  border: 1px solid var(--sh-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sh-card:hover {
  transform: translateY(-4px);
  border-color: #3D3B39;
}

.sh-card-image-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: block;
}

.sh-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.88);
  display: block;
}

.sh-card:hover .sh-card-image {
  transform: scale(1.05);
  filter: brightness(1.0);
}

.sh-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sh-card-category {
  display: inline-block;
  color: var(--sh-infrared);
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sh-card-category:hover {
  color: #d4163c;
}

.sh-card-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.1rem !important;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.8rem !important;
  color: var(--sh-cream) !important;
  flex: 1;
}

.sh-card-title a {
  color: var(--sh-cream) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sh-card-title a:hover {
  color: var(--sh-infrared) !important;
}

.sh-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.67rem;
  color: var(--sh-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--sh-border);
  padding-top: 0.75rem;
  margin-top: auto;
}

/* --- MORE STORIES BUTTON --- */
.sh-more-wrap {
  text-align: center;
  padding: 1rem 0 3rem;
}

.sh-more-link {
  display: inline-block;
  color: var(--sh-cream) !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 40px;
  border: 1px solid var(--sh-border);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
  background: none;
}

.sh-more-link:hover {
  border-color: var(--sh-infrared);
  color: var(--sh-infrared) !important;
}
