/*
Theme Name: Nick Neumann
Theme URI: https://nickneumann.com
Author: Nick Neumann
Description: Custom theme for nickneumann.com - Original Music and Guitar Gear Reviews
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;900&family=Inter:wght@400;500;600&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --off-black: #111111;
  --white: #ffffff;
  --light-bg: #f5f5f3;
  --mid-gray: #e0e0e0;
  --dark-gray: #333333;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --accent: #c8102e;
  --card-bg: #ffffff;
  --max-width: 1100px;
}

html, body { height: 100%; }

html { font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

.site-header .header-top a img.site-logo {
  height: 140px !important;
  max-height: 140px !important;
  width: auto !important;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* ── HEADER ── */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1a1a1a;
}

.header-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo-link {
  display: block;
  grid-column: 2;
}

.site-logo {
  display: block;
  height: 140px;
  width: auto;
}

.social-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  grid-column: 3;
}

.social-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: color 0.2s;
  width: 20px;
  height: 20px;
}

.social-nav a:hover { color: var(--white); }

.social-nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── PRIMARY NAV ── */
.primary-nav {
  background: var(--off-black);
  border-top: 1px solid #1e1e1e;
}

.primary-nav ul {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 0;
}

.primary-nav a {
  display: block;
  padding: 13px 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a,
.primary-nav .current-page-ancestor a {
  color: var(--white);
  border-bottom-color: var(--accent);
}

/* ── MAIN CONTENT ── */
.site-main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
  width: 100%;
}

/* ── SECTION LABELS ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mid-gray);
}

/* ── PINNED MUSIC POSTS ── */
.pinned-section {
  margin: 0 -24px 48px;
  padding: 40px 24px 8px;
  background: #faf5f6;
  border-bottom: 1px solid var(--mid-gray);
}

.pinned-post {
  display: grid;
  grid-template-columns: 1fr 300px;
  background: var(--card-bg);
  border: 1px solid var(--mid-gray);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.pinned-post:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.pinned-post-image { transition: transform 0.3s ease, filter 0.3s ease; }

.pinned-post:hover .pinned-post-image {
  transform: scale(1.03);
  filter: brightness(0.92);
}

.pinned-post-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pinned-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.pinned-meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.pinned-post h2 {
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.pinned-post p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 460px;
}

.pinned-post-image {
  width: 300px;
  object-fit: cover;
  object-position: center center;
  min-height: 200px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--text-dark);
  color: var(--text-dark);
  transition: all 0.2s;
  align-self: flex-start;
  cursor: pointer;
  background: none;
}

.btn:hover {
  background: var(--text-dark);
  color: var(--white);
}

.btn-accent {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent);
  color: var(--white);
}

/* ── POST GRID ── */
.grid-section { margin-bottom: 48px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--mid-gray);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.post-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.post-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
}

.post-card h3 {
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 9px;
  line-height: 1.2;
}

.post-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

.post-card-meta {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 12px;
}

.read-more {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s, padding-right 0.2s;
}

.read-more::after {
  content: '→';
  margin-left: 5px;
  display: inline-block;
  transition: margin-left 0.2s;
}

.read-more:hover {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.read-more:hover::after {
  margin-left: 9px;
}

/* ── LOAD MORE ── */
.load-more-wrap {
  text-align: center;
  margin-top: 36px;
}

.load-more-btn {
  padding: 12px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid var(--mid-gray);
  color: var(--text-muted);
  background: none;
  cursor: pointer;
  transition: all 0.2s;
}

.load-more-btn:hover {
  border-color: var(--text-dark);
  color: var(--text-dark);
}

/* ── SINGLE POST ── */
.single-post-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.single-post-header { margin-bottom: 28px; }

.single-post-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.single-post-title {
  font-size: 38px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.single-post-meta {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.single-post-featured {
  width: 100%;
  margin-bottom: 32px;
  border: 1px solid var(--mid-gray);
}

.single-post-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
}

.single-post-content p { margin-bottom: 20px; }

.single-post-content h2 {
  font-size: 22px;
  margin: 36px 0 14px;
  color: var(--text-dark);
}

.single-post-content h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}

.single-post-content ul,
.single-post-content ol {
  margin: 0 0 20px 24px;
  list-style: disc;
}

.single-post-content li { margin-bottom: 6px; }

.single-post-content .wp-block-embed {
  margin: 28px 0;
}

.single-post-content .wp-block-embed iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

/* ── CATEGORY / ARCHIVE PAGE ── */
.archive-header { margin-bottom: 32px; }

.archive-title {
  font-size: 32px;
  color: var(--text-dark);
}

/* ── STATIC PAGES ── */
.page-content-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.page-title {
  font-size: 36px;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.page-content {
  font-size: 15px;
  line-height: 1.8;
}

.page-content p { margin-bottom: 18px; }

/* ── RELATED POSTS ── */
.related-posts {
  max-width: 780px;
  margin: 48px auto 0;
  padding-top: 40px;
  border-top: 2px solid var(--mid-gray);
}

/* ── CARD IMAGE HOVER ── */
.post-card {
  position: relative;
}

.post-card a:first-child {
  overflow: hidden;
  display: block;
}

.post-card a:first-child img,
.post-card a:first-child .post-card-thumb-placeholder {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.post-card:hover a:first-child img {
  transform: scale(1.03);
  filter: brightness(0.9);
}

/* ── SECTION LABEL ACCENT ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

/* ── STICKY HEADER SHRINK ── */
.site-header {
  transition: padding 0.3s ease;
}

.site-header.scrolled .header-top {
  padding: 10px 24px;
}

.site-header.scrolled .site-logo {
  height: 60px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  color: #555;
  text-align: center;
  padding: 28px 24px;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-top: 40px;
}

.site-footer a { color: #666; transition: color 0.2s; }
.site-footer a:hover { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .pinned-post { grid-template-columns: 1fr; }
  .pinned-post-image { width: 100%; min-height: 200px; }
}

@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .header-top { grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: center; padding: 16px; gap: 8px; }
  .logo-link { grid-column: 1; }
  .social-nav { grid-column: 1; justify-content: center; }
  .primary-nav a { padding: 11px 12px; font-size: 10px; letter-spacing: 0.1em; }
  .site-logo { height: 64px; }
  .single-post-title { font-size: 28px; }
}