/*
Theme Name: Hobby Haul
Theme URI: https://hobbyhaul.com
Author: Your Name
Author URI: https://hobbyhaul.com
Description: A vibrant comic-style theme for action figure, comic, and audiobook collectors
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hobby-haul
*/

/* ============================================
   COLOR VARIABLES
   ============================================ */
:root {
  --paper: #f2ede1;
  --card: #fffdf7;
  --card-alt: #fffdf3;
  --ink: #161311;
  --ink-soft: #2a241c;
  --red: #e33b2e;
  --red-dark: #b82d22;
  --blue: #2f7cd1;
  --blue-dark: #2456c9;
  --blue-light: #3d86e0;
  --yellow: #ffcf33;
  --green: #2f9e5b;
  --orange: #f5a01f;
  --muted: #6a6350;
  --muted-2: #8a7f6c;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  color: var(--ink-soft);
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(17,17,17,.045) 1.3px, transparent 1.5px);
  background-size: 14px 14px;
  line-height: 1.5;
  font-size: 15px;
}

a {
  text-decoration: none;
  color: var(--red);
}
a:hover {
  color: var(--red-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: 'Archivo', sans-serif;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--ink);
  border-bottom: 2px solid #111;
  box-shadow: 0 3px 0 rgba(0,0,0,.25);
}

.header-bar {
  height: 5px;
  background: var(--red);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 12px) clamp(14px, 4vw, 24px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-logo {
  flex: none;
  display: flex;
  align-items: center;
}

.site-logo img,
.site-logo a img {
  height: clamp(38px, 7vw, 50px);
  width: auto;
  display: block;
}

.site-tagline {
  display: none;
}

/* ============================================
   NAVIGATION (combined menu + category pills)
   ============================================ */
.main-navigation {
  flex: 1 1 auto;
  min-width: 0;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-menu li {
  margin: 0;
}

.main-menu a {
  display: inline-block;
  transform: skew(-7deg);
  border: 1.5px solid #000;
  box-shadow: 2px 2px 0 #000;
  padding: 5px 13px;
  font-family: 'Anton', sans-serif !important;
  font-size: 13px;
  letter-spacing: .4px;
  color: #fff;
  background: var(--blue);
  text-shadow: -1px -1px 0 #111, 1px -1px 0 #111, -1px 1px 0 #111, 1px 1px 0 #111;
  transition: transform .12s ease;
}
.main-menu a:hover {
  color: #fff;
  transform: skew(-7deg) translateY(-2px);
}
.main-menu li:nth-child(5n+1) a { background: var(--blue); }
.main-menu li:nth-child(5n+2) a { background: var(--red); }
.main-menu li:nth-child(5n+3) a { background: var(--yellow); color: #111; text-shadow: none; }
.main-menu li:nth-child(5n+4) a { background: var(--green); }
.main-menu li:nth-child(5n+5) a { background: var(--card); color: var(--ink); text-shadow: none; }

/* ============================================
   HEADER SEARCH
   ============================================ */
.search-form { margin: 0; }
.search-wrapper {
  margin-left: auto;
  flex: 0 1 220px;
  min-width: 150px;
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1.5px solid #000;
  border-radius: 6px;
  overflow: hidden;
}
.search-field {
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 13px;
  width: 100%;
  min-width: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: 'Archivo', sans-serif;
}
.search-submit {
  border: none;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  flex: none;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 3.5vw, 26px) clamp(14px, 4vw, 24px) 8px;
}

.hero-slider {
  border: 2px solid #111;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 4px 4px 0 #111;
  background: var(--card);
}

.hero-slide-viewport {
  position: relative;
  height: clamp(250px, 42vw, 460px);
  background: #e9e3d4;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease;
  z-index: 1;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-link {
  display: block;
  height: 100%;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-cat-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  transform: skew(-7deg);
  padding: 5px 14px;
  border: 1.5px solid #111;
  font-family: 'Anton', sans-serif !important;
  font-size: 14px;
  letter-spacing: .5px;
  box-shadow: 2px 2px 0 #111;
  background: var(--blue);
  color: #fff;
}
.hero-cat-badge.cat-news { background: var(--red); color: #fff; }
.hero-cat-badge.cat-audio { background: var(--yellow); color: #111; }
.hero-cat-badge.cat-omnibus { background: var(--green); color: #fff; }

.hero-featured-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--yellow);
  border: 1.5px solid #111;
  transform: rotate(4deg);
  padding: 5px 14px;
  font-family: 'Anton', sans-serif !important;
  font-size: 14px;
  color: #111;
  box-shadow: 2px 2px 0 #111;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 2px solid #111;
  background: var(--card);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  z-index: 2;
}
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

.hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(40px, 9vw, 90px) clamp(16px, 4vw, 34px) clamp(16px, 3vw, 26px);
  background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.25), transparent);
  pointer-events: none;
}
.hero-date {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #f3ead4;
  font-weight: 600;
  font-size: 13px;
}
.hero-date .icon { color: var(--yellow); }
.hero-title {
  font-family: 'Anton', sans-serif !important;
  font-size: clamp(21px, 4.4vw, 40px);
  line-height: 1.04;
  letter-spacing: 1.5px;
  color: #fff;
  text-shadow: 2px 2px 0 #111;
  margin: 0 0 12px;
  max-width: 760px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-excerpt {
  font-weight: 500;
  font-size: clamp(12.5px, 2vw, 15px);
  line-height: 1.5;
  color: #e9e2d3;
  margin: 0 0 16px;
  max-width: 640px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: 1.5px solid #111;
  box-shadow: 2px 2px 0 #111;
  font-family: 'Anton', sans-serif !important;
  font-size: 15px;
  letter-spacing: .4px;
  padding: 10px 20px;
}
.hero-cta:hover { color: #fff; }

.hero-dots {
  position: absolute;
  bottom: 18px;
  right: 20px;
  display: flex;
  gap: 9px;
  align-items: center;
  z-index: 2;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
  background: rgba(255,255,255,.45);
  transition: transform .12s ease;
}
.hero-dot.is-active {
  background: var(--red);
  transform: scale(1.25);
}

/* ============================================
   BODY LAYOUT: MAIN + SIDEBAR
   ============================================ */
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(18px, 3.5vw, 26px) clamp(14px, 4vw, 24px) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}

.main-content {
  flex: 3 1 460px;
  min-width: 0;
}

.sidebar {
  flex: 1 1 280px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ============================================
   RECENT HAULS SECTION
   ============================================ */
.section-title-wrap {
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Bangers', sans-serif !important;
  font-size: 26px;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: -1.5px -1.5px 0 #111, 1.5px -1.5px 0 #111, -1.5px 1.5px 0 #111, 1.5px 1.5px 0 #111, 3px 3px 0 rgba(0,0,0,.45);
  margin: 0;
  display: inline-block;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-light));
  border: 2px solid #111;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #111;
  padding: 7px 22px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .posts-grid { grid-template-columns: 1fr; }
}

.post-card {
  background: var(--card);
  border: 2px solid #111;
  border-radius: 6px;
  box-shadow: 4px 4px 0 #111;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, outline .18s ease;
  outline: 3px solid transparent;
  outline-offset: 1px;
}
.post-card:hover {
  transform: translateY(-4px) scale(1.02);
  outline-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(47,124,209,.23), 4px 4px 0 #111;
}

.post-card-image {
  position: relative;
  display: block;
}
.post-card-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center 22%;
  border-bottom: 2px solid #111;
}
.post-card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  transform: skew(-7deg);
  background: var(--blue);
  color: #fff;
  border: 1.5px solid #111;
  box-shadow: 2px 2px 0 #111;
  padding: 3px 9px;
  font-family: 'Anton', sans-serif !important;
  font-size: 11px;
}
.post-card-category.cat-news { background: var(--red); }

.post-card-content {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 8px;
}
.post-card-title {
  font-family: 'Anton', sans-serif !important;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 8px;
}
.post-card-title a { color: inherit; }
.post-card-excerpt {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  color: #5a5142;
  margin: 0 0 14px;
  flex: 1;
}
.read-more {
  font-family: 'Anton', sans-serif !important;
  font-size: 13px;
  letter-spacing: .4px;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   SIDEBAR WIDGETS (shared shell)
   ============================================ */
.widget {
  background: #fff;
  border: 2px solid #111;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #111;
  overflow: hidden;
}
.widget-title {
  margin: 0;
  padding: 11px 15px;
  font-family: 'Anton', sans-serif !important;
  font-size: 17px;
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 1.5px 1.5px 0 #111;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-icon { font-size: 16px; text-shadow: none; }

/* Categories widget */
.widget-categories a,
.widget-recent-posts a,
.recent-post-date {
  font-family: 'Archivo', sans-serif !important;
}
.widget-categories .widget-title { background: var(--orange); border-bottom: 2px solid #111; }
.widget-categories ul { list-style: none; margin: 0; padding: 8px 12px 12px; }
.widget-categories li { margin: 0; }
.widget-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 8px;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  border-radius: 5px;
}
.widget-categories a:hover { color: var(--blue); }
.category-count {
  background: var(--blue);
  color: #fff;
  border: 1.5px solid #111;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
}

/* Recent Posts (fallback widget) */
.widget-recent-posts .widget-title { background: var(--blue); border-bottom: 2px solid #111; }
.widget-recent-posts ul { list-style: none; margin: 0; padding: 8px 12px 12px; }
.widget-recent-posts li { padding: 8px 0; border-bottom: 1px dashed #d9d2bc; }
.widget-recent-posts li:last-child { border-bottom: none; }
.widget-recent-posts a { font-weight: 700; font-size: 13.5px; color: var(--ink); display: block; }
.recent-post-date { font-size: 11px; color: var(--muted-2); }

/* My Current Haul + Recommended Pickups (dashed-list widgets) */
.widget-current-haul,
.widget-pickups {
  background: var(--card-alt);
  border: 2px solid #111;
  border-radius: 6px;
  box-shadow: 3px 3px 0 #111;
}
.widget-current-haul .widget-title,
.widget-pickups .widget-title {
  position: relative;
  border-bottom: 2px solid #111;
  background-image: radial-gradient(circle, rgba(0,0,0,.18) 1.4px, transparent 1.6px);
  background-size: 9px 9px;
  font-size: 18px;
}
.widget-current-haul .widget-title { background-color: var(--red); }
.widget-pickups .widget-title { background-color: var(--green); font-size: 17px; }

.current-haul-items,
.pickups-items {
  padding: 14px 14px 4px;
  background-image: radial-gradient(circle, rgba(17,17,17,.09) 1.3px, transparent 1.5px);
  background-size: 11px 11px;
}

.current-haul-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 13px;
  margin-bottom: 13px;
  border-bottom: 2px dashed #d9d2bc;
  color: inherit;
  transition: transform .12s ease;
}
.current-haul-item:last-child { padding-bottom: 14px; margin-bottom: 0; border-bottom: none; }
.current-haul-item:hover { transform: translateX(2px); }
.current-haul-item:hover .current-haul-title { text-decoration: underline; }

.current-haul-image {
  width: 60px;
  height: 60px;
  flex: none;
  object-fit: cover;
  border: 2px solid #111;
  box-shadow: 2px 2px 0 #111;
  background: repeating-linear-gradient(45deg, #eae6d8, #eae6d8 5px, #f6f2e5 5px, #f6f2e5 10px);
}
.current-haul-text { min-width: 0; }
.current-haul-tag {
  display: inline-block;
  transform: skew(-7deg);
  border: 1.5px solid #111;
  padding: 2px 7px;
  margin-bottom: 4px;
  font-family: 'Anton', sans-serif !important;
  font-size: 10px;
  letter-spacing: .5px;
  line-height: 1.4;
}
.current-haul-tag.tag-listening { background: var(--yellow); color: #111; }
.current-haul-tag.tag-posing    { background: var(--blue); color: #fff; }
.current-haul-tag.tag-reading   { background: var(--red); color: #fff; }
.current-haul-title {
  display: block;
  font-family: 'Archivo', sans-serif !important;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.08;
  color: #111;
}
.current-haul-sub {
  display: block;
  font-family: 'Archivo', sans-serif !important;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* Recommended Pickups items */
.pickup-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 13px;
  margin-bottom: 13px;
  border-bottom: 2px dashed #d9d2bc;
}
.pickup-item:last-child { padding-bottom: 14px; margin-bottom: 0; border-bottom: none; }
.pickup-image {
  flex: none;
  line-height: 0;
}
.pickup-image img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid #111;
  box-shadow: 2px 2px 0 #111;
}
.pickup-text { min-width: 0; flex: 1; }
.pickup-title {
  display: block;
  font-family: 'Archivo', sans-serif !important;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 3px;
}
.pickup-sub {
  display: block;
  font-family: 'Archivo', sans-serif !important;
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 8px;
}
.pickup-buy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transform: skew(-7deg);
  background: var(--red);
  color: #fff;
  border: 1.5px solid #111;
  box-shadow: 2px 2px 0 #111;
  padding: 3px 11px;
  font-family: 'Anton', sans-serif !important;
  font-size: 11px;
  letter-spacing: .4px;
}
.pickup-buy:hover { color: #fff; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  border-top: 5px solid var(--red);
  color: #d8d2c7;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 40px) clamp(14px, 4vw, 24px) 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.footer-about img { height: 64px; width: auto; margin-bottom: 12px; }
.footer-about p {
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.6;
  color: #b7b0a4;
  margin: 0;
  max-width: 280px;
}
.footer-heading {
  font-family: 'Anton', sans-serif !important;
  font-size: 16px;
  color: var(--yellow);
  margin: 0 0 14px;
  letter-spacing: .5px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: #d8d2c7; font-weight: 600; font-size: 13.5px; font-family: 'Archivo', sans-serif !important; }
.footer-links a:hover { color: #fff; }

.footer-social-btn,
.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--blue);
  color: #fff;
  border: 1.5px solid #000;
  box-shadow: 2px 2px 0 #000;
  font-family: 'Anton', sans-serif !important;
  font-size: 13px;
  letter-spacing: .4px;
  padding: 8px 14px;
}
.footer-social-btn:hover,
.footer-contact-btn:hover { color: #fff; }
.footer-social-btn img { width: 20px; height: 20px; display: block; flex: none; }
.footer-contact-email {
  font-weight: 500;
  font-size: 12px;
  color: #8a8377;
  margin: 12px 0 0;
  font-family: 'Archivo', sans-serif !important;
}
.footer-bottom {
  border-top: 1px solid #2c2721;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 12px;
  color: #8a8377;
}

/* ============================================
   UTILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   RESPONSIVE (belt-and-suspenders on top of the
   fluid clamp()/flex-wrap/grid auto-fit above)
   ============================================ */
@media (max-width: 900px) {
  .sidebar { max-width: 100%; flex-basis: 100%; }
}

@media (max-width: 640px) {
  .main-menu a { font-size: 12px; padding: 4px 10px; }
  .hero-arrow { width: 38px; height: 38px; font-size: 19px; }
  .post-card-title { font-size: 17px; }
}
