/*
Theme: Purely Hobby - Hobby Blog Theme

Performance rules for this file:
- No web fonts: all typography uses the system font stacks below.
- Transitions/animations only touch transform and opacity (compositor-only),
  never layout properties (width, height, margin, padding, top, ...).
- No backdrop-filter / filter effects.
*/

/* ===== DESIGN TOKENS ===== */
:root {
  --purelyhobby-primary: #C1562E;
  --purelyhobby-primary-dark: #A1431F;
  --purelyhobby-primary-light: #D97B52;
  /* #C1562E is only ~2.8:1 against white, below the 4.5:1 WCAG AA
     minimum for normal-size text — fine for buttons/icons/borders, but
     not for body-size link text. Used wherever the brand orange needs to
     be legible as text on a light background (the default `a` color,
     etc.); ~4.9:1 against white. */
  --purelyhobby-primary-text: #A1431F;
  --purelyhobby-accent: #5C6E46;
  --purelyhobby-accent-light: #6B7D52;
  --purelyhobby-dark: #3B2E26;
  --purelyhobby-light: #f8f9fa;
  --purelyhobby-gray-100: #f5f7fa;
  --purelyhobby-gray-200: #e9ecf3;
  --purelyhobby-gray-300: #d3dae6;
  --purelyhobby-gray-400: #9aa5b1;
  --purelyhobby-gray-500: #7b8794;
  --purelyhobby-gray-600: #616e7c;
  --purelyhobby-gray-700: #52606d;
  --purelyhobby-gray-800: #3e4c59;
  --purelyhobby-gray-900: #323f4b;
  --purelyhobby-white: #ffffff;
  --purelyhobby-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --purelyhobby-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --purelyhobby-border-radius: 12px;
  --purelyhobby-transition: transform 0.3s ease, opacity 0.3s ease;

  /* System font stacks — zero network requests, no font swap. */
  --purelyhobby-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --purelyhobby-font-serif: Georgia, Baskerville, "Times New Roman", serif;
  --purelyhobby-font-brand: "Playfair Display", Georgia, "Times New Roman", serif;
  --purelyhobby-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* Visually-hidden text for screen readers (skip link, page-level H1s, etc.) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--purelyhobby-white);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--purelyhobby-dark);
  display: block;
  font-size: 1rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Font Awesome loads asynchronously; reserve each icon's box so the icon
   font arriving later can't shift surrounding layout. */
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
  display: inline-block;
  width: 1.25em;
  height: 1em;
  line-height: 1;
  text-align: center;
}

/* ===== TYPOGRAPHY ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--purelyhobby-font-serif);
  color: var(--purelyhobby-gray-800);
  line-height: 1.6;
  font-weight: 400;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px; /* Offset for the fixed header */
}

@media (max-width: 991.98px) {
  body { padding-top: 70px; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--purelyhobby-font-sans);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--purelyhobby-dark);
  margin-bottom: 1rem;
}

.brand-text {
  font-family: var(--purelyhobby-font-brand);
  font-weight: 700;
}

/* Sans-serif for UI elements */
.btn, .nav-link, .form-control, .card-text, .small, .meta-item {
  font-family: var(--purelyhobby-font-sans);
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 600; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }
}

p {
  color: var(--purelyhobby-gray-700);
  margin-bottom: 1.25rem;
}

a {
  color: var(--purelyhobby-primary-text);
  text-decoration: none;
}

a:hover, a:focus {
  color: var(--purelyhobby-primary-dark);
  text-decoration: none;
}

/* helper for background images */
.bg-cover { background-size: cover; background-position: center; background-repeat: no-repeat; }

.text-shadow { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry-content img { max-width: 100%; height: auto; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1500px !important;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  .container {
    max-width: 90% !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) { .container { max-width: 95% !important; } }
@media (min-width: 992px) { .container { max-width: 100% !important; } }
@media (min-width: 1200px) { .container { max-width: 1140px !important; } }
@media (min-width: 1400px) { .container { max-width: 1320px !important; } }

.section-spacing { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 576px) { .section-spacing { padding-top: 2.5rem; padding-bottom: 2.5rem; } }
@media (min-width: 768px) { .section-spacing { padding-top: 3rem; padding-bottom: 3rem; } }
@media (min-width: 992px) { .section-spacing { padding-top: 4rem; padding-bottom: 4rem; } }

/*
Z-INDEX HIERARCHY:
- Header (fixed): 1070 (highest - always on top)
- Back to top button: 1050
- Dropdowns/Modals: 1060
- Sidebar widgets (sticky): 1020 (below header)
*/

/* ===== LOGO ===== */
.purelyhobby-logo:focus,
.navbar-brand:focus {
  outline: 2px solid var(--purelyhobby-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.purelyhobby-logo.text-center { justify-content: center; }

/* Logo box: fits within --logo-max-w × --logo-max-h (from the Customizer)
   and never upscales. When header.php knows the image's intrinsic size it
   passes --logo-w / --logo-ratio, so the final width is resolved before the
   file loads and the header never shifts. */
.purelyhobby-custom-logo {
  --logo-max-w: var(--purelyhobby-logo-width, 240px);
  --logo-max-h: var(--purelyhobby-logo-height, 80px);
  display: block;
  width: auto;
  height: auto;
  max-width: var(--logo-max-w);
  max-height: var(--logo-max-h);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.purelyhobby-custom-logo[width][height] {
  width: min(var(--logo-max-w), var(--logo-w), calc(var(--logo-max-h) * var(--logo-ratio)));
}

.purelyhobby-custom-logo:hover {
  transform: scale(1.02);
}

.purelyhobby-text-logo {
  font-family: var(--purelyhobby-font-brand);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--purelyhobby-primary-dark);
  text-decoration: none;
  margin: 0;
  display: inline-block;
  transition: transform 0.3s ease;
}

.purelyhobby-text-logo:hover {
  color: var(--purelyhobby-primary-dark);
  transform: scale(1.02);
}

/* Built-in emblem shown beside the text logo */
.purelyhobby-logo { gap: 0.65rem; }

.purelyhobby-logo-mark {
  display: block;
  flex: none;
  width: 56px;
  height: 56px;
  transition: transform 0.3s ease;
}

.purelyhobby-logo:hover .purelyhobby-logo-mark { transform: rotate(-8deg); }

@media (max-width: 767.98px) {
  .purelyhobby-logo-mark { width: 46px; height: 46px; }
}

@media (max-width: 575.98px) {
  .purelyhobby-logo { gap: 0.5rem; }
  .purelyhobby-logo-mark { width: 40px; height: 40px; }
}

@media (min-width: 1200px) {
  .purelyhobby-logo-mark { width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .purelyhobby-logo:hover .purelyhobby-logo-mark { transform: none; }
}

@media (max-width: 767.98px) {
  .purelyhobby-custom-logo {
    --logo-max-w: var(--purelyhobby-logo-mobile-width, 180px);
    --logo-max-h: var(--purelyhobby-logo-mobile-height, 60px);
  }
  .purelyhobby-text-logo { font-size: 1.8rem; }
}

@media (max-width: 575.98px) {
  .purelyhobby-custom-logo {
    --logo-max-w: calc(var(--purelyhobby-logo-mobile-width, 180px) * 0.9);
    --logo-max-h: calc(var(--purelyhobby-logo-mobile-height, 60px) * 0.9);
  }
  .purelyhobby-text-logo { font-size: 1.6rem; }
}

@media (min-width: 1200px) {
  .purelyhobby-custom-logo {
    --logo-max-w: calc(var(--purelyhobby-logo-width, 240px) * 1.1);
    --logo-max-h: calc(var(--purelyhobby-logo-height, 80px) * 1.1);
  }
  .purelyhobby-text-logo { font-size: 2.4rem; }
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
  background: var(--purelyhobby-white);
  z-index: 1060;
}

.sticky-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1070;
}

.admin-bar .sticky-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sticky-header { top: 46px; } }

/* Scrolled-state shadow lives on a pseudo-element so it can fade in with
   opacity alone instead of repainting box-shadow on the bar itself. */
.sticky-header::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.site-header.scrolled .sticky-header::after {
  opacity: 1;
}

.site-header .navbar {
  border-bottom: 1px solid var(--purelyhobby-gray-200);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-header .navbar-brand {
  font-family: var(--purelyhobby-font-brand);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--purelyhobby-primary-dark);
  text-decoration: none;
}

.site-header .nav-link {
  padding: 0.75rem 1rem;
  color: var(--purelyhobby-gray-700);
  font-weight: 500;
  position: relative;
  border-radius: 0;
  margin: 0 0.25rem;
  background: transparent !important;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active,
.site-header .nav-item.current-menu-item > .nav-link {
  color: var(--purelyhobby-primary);
}

.navbar-nav .nav-link,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active,
.navbar-nav .nav-item.current-menu-item > .nav-link,
.navbar-light .navbar-nav .show > .nav-link {
  background-color: transparent !important;
}

/* Underline indicator: a fixed-size bar scaled with transform rather than
   animating its width. */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--purelyhobby-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-item.current-menu-item > .nav-link::after {
  transform: scaleX(1);
}

@media (max-width: 991.98px) {
  .navbar-nav .nav-link::after {
    bottom: 0;
    left: 1rem;
    right: 1rem;
    width: auto;
    transform-origin: left center;
  }
}

.site-header .dropdown-menu {
  border-radius: var(--purelyhobby-border-radius);
  border: 1px solid var(--purelyhobby-gray-200);
  box-shadow: var(--purelyhobby-shadow-lg);
  padding: 0.75rem 0;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.site-header .dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  color: var(--purelyhobby-gray-700);
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
  color: var(--purelyhobby-white);
  background: linear-gradient(135deg, var(--purelyhobby-primary), var(--purelyhobby-primary-dark));
}

/* Dropdown arrow indicator */
.site-header .dropdown-toggle::after {
  display: none !important; /* Hide Bootstrap's default caret */
}

.site-header .dropdown-arrow {
  font-size: 0.75rem;
  margin-left: 0.5rem;
  color: currentColor;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header .dropdown-toggle:hover .dropdown-arrow,
.site-header .dropdown-toggle:focus .dropdown-arrow {
  opacity: 1;
}

.site-header .dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown hover functionality - Desktop only */
@media (min-width: 992px) {
  .site-header .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-header .dropdown:hover .dropdown-toggle .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
  }
}

/* Mobile dropdown functionality */
@media (max-width: 991.98px) {
  .site-header .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: rgba(248, 249, 250, 0.95);
    border: none;
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: opacity 0.3s ease, visibility 0.3s;
  }

  .site-header .dropdown.show .dropdown-menu,
  .site-header .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
    display: block;
  }

  .site-header .dropdown-item {
    padding: 0.75rem 2rem;
    color: var(--purelyhobby-gray-700);
    background: transparent;
  }

  .site-header .dropdown-item:hover,
  .site-header .dropdown-item:focus {
    background: rgba(193, 86, 46, 0.1);
    color: var(--purelyhobby-primary);
  }

  .site-header .dropdown.show .dropdown-toggle .dropdown-arrow {
    transform: rotate(180deg);
  }

  .sidebar-search {
    display: none !important;
  }
}

/* Mobile menu toggle */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
  background: rgba(193, 86, 46, 0.1);
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ff6b35' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Header Search Form */
.header-search-form {
  position: relative;
  width: 100%;
  max-width: 280px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  overflow: hidden;
}

.search-input-wrapper:hover {
  border-color: #ced4da;
}

.search-input-wrapper:focus-within {
  border-color: var(--purelyhobby-primary);
  box-shadow: 0 0 0 3px rgba(193, 86, 46, 0.1);
  background: #fff;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--purelyhobby-dark);
  outline: none;
  min-height: 36px;
}

.search-input::placeholder {
  color: #6c757d;
  opacity: 1;
}

.search-input:focus {
  outline: none;
  box-shadow: none;
}

.search-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
}

.search-btn:hover {
  color: var(--purelyhobby-primary);
  background: rgba(193, 86, 46, 0.1);
}

.search-btn:focus {
  outline: none;
  color: var(--purelyhobby-primary);
}

.search-btn svg {
  transition: transform 0.2s ease;
}

.search-btn:hover svg {
  transform: scale(1.1);
}

@media (max-width: 991.98px) {
  .header-search-form {
    max-width: 100%;
    margin-top: 1rem;
  }
  .search-input-wrapper { border-radius: 18px; }
  .search-input {
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
    min-height: 40px;
  }
  .search-btn {
    padding: 0.6rem 0.75rem;
    min-height: 40px;
  }
}

@media (max-width: 575.98px) {
  .header-search-form { margin-top: 0.75rem; }
  .search-input {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Header Social Media */
.header-social {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-social .social-media-icons {
  gap: 0.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.header-social .social-icon {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-social .social-icon:hover {
  transform: translateY(-2px);
}

@media (min-width: 992px) {
  .header-social,
  .header-social .social-media-icons {
    justify-content: flex-start;
  }
}

@media (max-width: 991.98px) {
  .header-social {
    padding: 0.75rem 0;
    border-top: 1px solid var(--purelyhobby-gray-200);
    border-bottom: 1px solid var(--purelyhobby-gray-200);
    margin: 0.5rem 0;
  }
  .header-social .social-media-icons { gap: 0.75rem; }
  .header-social .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--purelyhobby-border-radius);
  transition: var(--purelyhobby-transition);
  box-shadow: none;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purelyhobby-primary) 0%, var(--purelyhobby-primary-dark) 100%);
  border-color: var(--purelyhobby-primary);
  color: var(--purelyhobby-white);
  box-shadow: 0 4px 12px rgba(193, 86, 46, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--purelyhobby-primary-dark) 0%, #d4481f 100%);
  border-color: var(--purelyhobby-primary-dark);
  color: var(--purelyhobby-white);
  transform: translateY(-2px);
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background: var(--purelyhobby-primary);
  border-color: var(--purelyhobby-primary);
  color: var(--purelyhobby-white);
  transform: translateY(-2px);
}

.btn-show-more {
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--purelyhobby-accent) 0%, #26a69a 100%);
  border: none;
  color: var(--purelyhobby-white);
  box-shadow: 0 4px 12px rgba(92, 110, 70, 0.3);
}

.btn-show-more:hover {
  background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Ensure minimum touch target sizes (44px) */
.btn,
.nav-link,
.pagination .page-link,
.form-control,
.form-select {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== HERO & CARDS ===== */
.purelyhobby-hero .hero-main .ratio, .purelyhobby-hero .hero-side .ratio { background: #f5f5f5; }
.purelyhobby-hero .hero-main h2 a, .purelyhobby-hero .hero-side h3 a { color: #000; }

.purelyhobby-popular h2 { margin-top: 0; }
.purelyhobby-popular .card h3 a { color: #000; }
.purelyhobby-popular .card h3 a:hover { color: var(--purelyhobby-primary); }

/* Hover zoom on card images (transform only) */
.card .ratio, .purelyhobby-hero .ratio { overflow: hidden; }
.card .ratio img, .purelyhobby-hero .ratio img { transition: transform 0.45s ease; }
.card .ratio:hover img, .card .ratio:focus img,
.purelyhobby-hero .ratio:hover img, .purelyhobby-hero .ratio:focus img { transform: scale(1.05); }

/* Browse By Categories avatars */
.category-avatar-small {
  width: 150px;
  height: 150px;
  background: #f5f5f5;
  border: 2px solid transparent;
  transition: transform 0.3s ease;
}

.category-link:hover .category-avatar-small {
  transform: scale(1.1);
  border-color: var(--purelyhobby-primary);
}

@media (max-width: 768px) {
  .category-avatar-small { width: 120px; height: 120px; }
}
@media (max-width: 576px) {
  .category-avatar-small { width: 100px; height: 100px; }
}

/* Uniform Section Title Styling */
.section-title,
.purelyhobby-latest-mosaic h2,
.purelyhobby-popular h2,
.purelyhobby-browse-categories h2 {
  font-family: var(--purelyhobby-font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--purelyhobby-dark);
  margin-bottom: 2.5rem;
  text-align: left;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after,
.purelyhobby-latest-mosaic h2::after,
.purelyhobby-popular h2::after,
.purelyhobby-browse-categories h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--purelyhobby-primary), var(--purelyhobby-accent));
  border-radius: 2px;
}

@media (max-width: 767.98px) {
  .purelyhobby-latest-mosaic h2,
  .purelyhobby-popular h2,
  .purelyhobby-browse-categories h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  .section-title {
    font-size: 1.875rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .purelyhobby-latest-mosaic h2,
  .purelyhobby-popular h2,
  .purelyhobby-browse-categories h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .section-title { margin-bottom: 1.5rem; }

  .section-title::after,
  .purelyhobby-latest-mosaic h2::after,
  .purelyhobby-popular h2::after,
  .purelyhobby-browse-categories h2::after {
    width: 40px;
    height: 2px;
  }
}

/* Latest Posts Mosaic */
.purelyhobby-latest-mosaic {
  border-radius: var(--purelyhobby-border-radius);
  padding: 3rem 0;
  margin: 2rem 0;
}

.bg-cover .mosaic-img {
  transition: transform 0.45s ease;
}

.bg-cover:hover .mosaic-img,
.bg-cover:focus .mosaic-img {
  transform: scale(1.05);
}

.bg-cover .image-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.7) 100%);
}

.bg-cover:hover .image-gradient {
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.6) 65%, rgba(0,0,0,0.7) 100%);
}

.bg-cover .image-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

/* Force bottom placement inside Bootstrap .ratio */
.ratio .image-text { top: auto !important; }
.ratio > .image-text { height: auto !important; }

/* Meta line */
.meta-line {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-line .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-line .icon {
  display: inline-block;
  opacity: 0.9;
  width: 14px;
  height: 14px;
}

.meta-line .meta-item:first-child {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.image-text .small {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Horizontal post list cards */
.post-list-card {
  border: 1px solid var(--purelyhobby-gray-200);
  border-radius: var(--purelyhobby-border-radius);
  overflow: hidden;
  box-shadow: var(--purelyhobby-shadow);
  transition: transform 0.3s ease;
}

.post-list-card:hover {
  transform: translateY(-2px);
}

.post-list-card .post-list-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-list-card:hover .post-list-thumb {
  transform: scale(1.05);
}

.post-list-card .row {
  height: 300px;
  max-height: 300px;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .post-list-card .row {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .post-list-card .col-12:first-child {
    height: 180px;
    max-height: 180px;
  }

  .post-list-card .post-list-thumb {
    height: 180px;
    width: 100%;
    border-radius: var(--purelyhobby-border-radius) var(--purelyhobby-border-radius) 0 0 !important;
  }
}

@media (min-width: 768px) {
  .post-list-card .col-md-5 {
    display: flex;
    height: 300px;
  }

  .post-list-card .col-md-5 a {
    flex: 1;
    overflow: hidden;
    border-radius: var(--purelyhobby-border-radius) 0 0 var(--purelyhobby-border-radius);
  }

  .post-list-card .col-md-7 {
    height: 300px;
    overflow: hidden;
  }

  .post-list-card .post-list-thumb {
    height: 300px;
    width: 100%;
  }
}

.post-list-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-list-card .card-text { flex-grow: 1; }
.post-list-card .d-flex.justify-content-between { margin-top: auto; }
.post-list-card .card-title a:hover { color: var(--purelyhobby-primary); }

/* Recent widget */
.recent-widget {
  background: var(--purelyhobby-gray-100);
  border-radius: var(--purelyhobby-border-radius);
  box-shadow: var(--purelyhobby-shadow);
  overflow: hidden;
}

.recent-widget .card-body { padding: 2rem; }

.recent-widget h3 {
  color: var(--purelyhobby-dark);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--purelyhobby-primary);
}

.recent-thumb {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.recent-thumb:hover { transform: scale(1.05); }

.recent-meta {
  flex: 1;
  min-width: 0;
}

.recent-meta a {
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--purelyhobby-dark);
  display: block;
  margin-bottom: 0.75rem;
}

.recent-meta a:hover { color: var(--purelyhobby-primary); }

.recent-meta .meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.recent-meta .post-date,
.recent-meta .read-time {
  font-size: 0.9rem;
  color: var(--purelyhobby-gray-500);
  font-weight: 500;
  flex-shrink: 0;
}

.recent-meta .read-time { white-space: nowrap; }

.recent-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--purelyhobby-gray-200);
}

.recent-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Sticky recent widget only on home/blog; not sticky on single or posts pages */
.home .recent-widget, .blog .recent-widget { position: sticky; top: 90px; z-index: 1020; }
@media (min-width: 782px) { body.admin-bar.home .recent-widget, body.admin-bar.blog .recent-widget { top: 122px; } }
@media (max-width: 781.98px) { body.admin-bar.home .recent-widget, body.admin-bar.blog .recent-widget { top: 136px; } }
@media (max-width: 991.98px) { .home .recent-widget, .blog .recent-widget { position: static; } }
.single .recent-widget,
.posts-page .recent-widget { position: static !important; top: auto !important; }

/* More Posts thumbnails */
.more-post-thumb { width: 100%; height: 200px; object-fit: cover; }
@media (min-width: 1200px) { .more-post-thumb { height: 215px; } }

/* Card titles */
.section-spacing .card h3 a,
.card h2 a {
  color: var(--purelyhobby-dark) !important;
}

.section-spacing .card h3 a:hover,
.card h2 a:hover {
  color: var(--purelyhobby-primary) !important;
}

/* Most Popular grid sizing */
@media (min-width: 768px) {
  .purelyhobby-popular .card .ratio { --bs-aspect-ratio: 50%; }
  .purelyhobby-popular .card .mt-3 { margin-top: 0.75rem !important; }
  .purelyhobby-popular .card h3 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }
  .purelyhobby-popular .card .d-flex.align-items-center,
  .purelyhobby-popular .card .d-flex.align-items-center span {
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .purelyhobby-browse-categories .col-lg-2 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .purelyhobby-popular .card .ratio { --bs-aspect-ratio: 55%; }
  .purelyhobby-popular .card h3 {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  .purelyhobby-popular .card .d-flex.align-items-center { font-size: 0.8rem; }
}

@media (min-width: 992px) {
  .purelyhobby-popular .card .ratio { --bs-aspect-ratio: 60%; }
  .purelyhobby-popular .card h3 {
    font-size: 0.8rem;
    line-height: 1.1;
  }
  .purelyhobby-popular .card .mt-3 { margin-top: 0.5rem !important; }
  .purelyhobby-popular .col-lg-4 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .purelyhobby-popular .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
}

@media (min-width: 1200px) {
  .purelyhobby-popular .card .ratio { --bs-aspect-ratio: 55%; }
}

@media (max-width: 575.98px) {
  .purelyhobby-hero .col-lg-8,
  .purelyhobby-hero .col-lg-4 {
    margin-bottom: 1.5rem;
  }
  .hero-main .h3 { font-size: 1.25rem; }
  .hero-side .h5 { font-size: 1.1rem; }
  .card-body { padding: 1rem; }
  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

/* ===== CATEGORY HERO ===== */
.category-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.category-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(193, 86, 46, 0.1) 0%, rgba(92, 110, 70, 0.1) 100%);
  z-index: 1;
}

.category-hero .container { z-index: 2; }

.category-hero h1 {
  font-family: var(--purelyhobby-font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.category-hero .lead {
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

.category-hero .badge {
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 25px;
}

@media (min-width: 576px) { .category-hero h1 { font-size: 2.5rem !important; } }
@media (min-width: 768px) { .category-hero h1 { font-size: 3rem !important; } }

@media (max-width: 767.98px) {
  .category-hero { margin-bottom: 2rem; }
  .category-hero .lead { font-size: 1.1rem; }
}

@media (max-width: 575.98px) {
  .category-hero {
    min-height: 200px !important;
    height: 30vh !important;
  }
  .category-hero h1 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }
  .category-hero .lead { font-size: 0.95rem; }
}

/* ===== BREADCRUMBS ===== */
.breadcrumb-nav { margin-top: 1rem; }

.breadcrumb {
  font-size: 0.875rem;
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item { color: var(--purelyhobby-gray-600); }

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--purelyhobby-gray-400);
  margin: 0 0.5rem;
}

.breadcrumb-item a {
  color: var(--purelyhobby-primary-text);
  text-decoration: none;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
  color: var(--purelyhobby-primary-dark);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--purelyhobby-gray-700);
  font-weight: 500;
}

/* ===== PAGINATION ===== */
.purelyhobby-pagination,
.purelyhobby-circular-pagination,
.purelyhobby-prev-next-pagination,
.purelyhobby-pagination-arrows {
  display: flex;
  justify-content: center;
  width: 100%;
}

.purelyhobby-pagination .pagination {
  margin: 0;
  gap: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.purelyhobby-pagination .page-item {
  border: none;
  margin: 0;
}

.purelyhobby-pagination .page-link {
  border: 2px solid var(--purelyhobby-gray-200);
  border-radius: 50px;
  color: var(--purelyhobby-gray-700);
  font-weight: 600;
  padding: 0.6rem 1rem;
  margin: 0;
  transition: transform 0.3s ease;
  font-family: var(--purelyhobby-font-sans);
  text-decoration: none;
  min-width: 44px;
  height: 44px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purelyhobby-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.purelyhobby-pagination .page-link:hover {
  border-color: var(--purelyhobby-primary);
  background: var(--purelyhobby-primary);
  color: var(--purelyhobby-white);
  transform: translateY(-2px);
}

.purelyhobby-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--purelyhobby-primary) 0%, var(--purelyhobby-primary-dark) 100%);
  border-color: var(--purelyhobby-primary);
  color: var(--purelyhobby-white);
  box-shadow: 0 4px 12px rgba(193, 86, 46, 0.3);
}

.purelyhobby-pagination .page-item.active .page-link:hover {
  background: linear-gradient(135deg, var(--purelyhobby-primary-dark) 0%, #d4481f 100%);
  transform: translateY(-2px);
}

/* Circular Pagination */
.purelyhobby-circular-pagination .circular-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.purelyhobby-circular-pagination .circular-btn,
.purelyhobby-circular-pagination .circular-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  font-family: var(--purelyhobby-font-sans);
  cursor: pointer;
}

.purelyhobby-circular-pagination .circular-btn {
  background: var(--purelyhobby-white);
  border: 1px solid #e5e7eb;
  color: var(--purelyhobby-gray-700);
  font-size: 0.875rem;
  font-weight: 600;
}

.purelyhobby-circular-pagination .circular-btn:hover {
  border-color: #14b8a6;
  color: #14b8a6;
  transform: translateY(-1px);
}

.purelyhobby-circular-pagination .circular-btn.active {
  background: #14b8a6;
  border-color: #14b8a6;
  color: var(--purelyhobby-white);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.purelyhobby-circular-pagination .circular-arrow-btn {
  background: #14b8a6;
  border: 1px solid #14b8a6;
  color: var(--purelyhobby-white);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0.25rem;
  line-height: 1;
  text-align: center;
}

.purelyhobby-circular-pagination .circular-arrow-btn:hover {
  background: #0f766e;
  border-color: #0f766e;
  transform: translateY(-2px);
}

.purelyhobby-circular-pagination .pagination-dots {
  color: var(--purelyhobby-gray-400);
  font-weight: 600;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  font-family: var(--purelyhobby-font-sans);
}

/* Prev/Next Square Pagination */
.purelyhobby-prev-next-pagination .prev-next-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.purelyhobby-prev-next-pagination .prev-next-btn {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  font-family: var(--purelyhobby-font-sans);
  cursor: pointer;
  line-height: 1;
  text-align: center;
  border: none;
  position: relative;
}

.purelyhobby-prev-next-pagination .prev-btn.active {
  background: #9ca3af;
  color: var(--purelyhobby-white);
}

.purelyhobby-prev-next-pagination .prev-btn.active:hover {
  background: #6b7280;
  transform: translateY(-2px);
}

.purelyhobby-prev-next-pagination .next-btn.active {
  background: #1e293b;
  color: var(--purelyhobby-white);
}

.purelyhobby-prev-next-pagination .next-btn.active:hover {
  background: #0f172a;
  transform: translateY(-2px);
}

.purelyhobby-prev-next-pagination .prev-btn.disabled,
.purelyhobby-prev-next-pagination .next-btn.disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}

.purelyhobby-prev-next-pagination .prev-btn.disabled:hover,
.purelyhobby-prev-next-pagination .next-btn.disabled:hover {
  transform: none;
}

/* Simple Arrow Navigation */
.purelyhobby-pagination-arrows .arrow-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.purelyhobby-pagination-arrows .arrow-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--purelyhobby-white);
  border: 2px solid var(--purelyhobby-gray-200);
  color: var(--purelyhobby-gray-700);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-family: var(--purelyhobby-font-sans);
}

.purelyhobby-pagination-arrows .arrow-btn:hover {
  background: var(--purelyhobby-primary);
  border-color: var(--purelyhobby-primary);
  color: var(--purelyhobby-white);
  transform: translateY(-3px);
}

.purelyhobby-pagination-arrows .arrow-btn.disabled,
.purelyhobby-pagination-arrows .arrow-btn.disabled:hover {
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--purelyhobby-gray-100);
  border-color: var(--purelyhobby-gray-200);
  color: var(--purelyhobby-gray-400);
  transform: none;
}

.purelyhobby-pagination-arrows .page-counter {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--purelyhobby-gray-700);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--purelyhobby-gray-200);
  font-family: var(--purelyhobby-font-sans);
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767.98px) {
  .purelyhobby-pagination .pagination {
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: center;
  }
  .purelyhobby-circular-pagination .circular-nav-container {
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  .purelyhobby-circular-pagination .circular-btn {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  .purelyhobby-circular-pagination .circular-arrow-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }
  .purelyhobby-prev-next-pagination .prev-next-container { gap: 0.75rem; }
  .purelyhobby-prev-next-pagination .prev-next-btn {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }
  .purelyhobby-pagination .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    min-width: 38px;
    height: 38px;
  }
  .purelyhobby-pagination-arrows .arrow-navigation { gap: 1.5rem; }
  .purelyhobby-pagination-arrows .arrow-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  .purelyhobby-pagination-arrows .page-counter {
    font-size: 1rem;
    padding: 0.65rem 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .purelyhobby-pagination .pagination { gap: 0.15rem; }
  .purelyhobby-circular-pagination .circular-nav-container { gap: 0.3rem; }
  .purelyhobby-circular-pagination .circular-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  .purelyhobby-circular-pagination .circular-arrow-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    margin: 0 0.15rem;
  }
  .purelyhobby-prev-next-pagination .prev-next-container { gap: 0.5rem; }
  .purelyhobby-prev-next-pagination .prev-next-btn {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  .purelyhobby-pagination .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
  .purelyhobby-pagination-arrows .arrow-navigation { gap: 1rem; }
  .purelyhobby-pagination-arrows .arrow-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .purelyhobby-pagination-arrows .page-counter {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}

/* Sidebar "More Posts" pagination */
.card-body .purelyhobby-pagination {
  margin-top: 1rem;
  margin-bottom: 0;
}

.card-body .purelyhobby-pagination .pagination { gap: 0.2rem; }

.card-body .purelyhobby-pagination .page-link {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  min-width: 32px;
  height: 32px;
}

.card-body .purelyhobby-circular-pagination .circular-btn {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.card-body .purelyhobby-circular-pagination .circular-arrow-btn {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
  margin: 0 0.15rem;
}

.card-body .purelyhobby-prev-next-pagination .prev-next-btn {
  width: 36px;
  height: 36px;
  font-size: 0.8rem;
}

.card-body .purelyhobby-prev-next-pagination .prev-next-container { gap: 0.5rem; }

.card-body .purelyhobby-pagination-arrows .arrow-btn {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.card-body .purelyhobby-pagination-arrows .page-counter {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* ===== FOCUS & ACCESSIBILITY ===== */
*:focus { outline: 2px solid var(--purelyhobby-primary); outline-offset: 2px; }

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  border-radius: 2px;
}

.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus,
a:focus {
  outline: 2px solid var(--purelyhobby-primary) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(193, 86, 46, 0.25) !important;
}

.form-control:focus { border-color: var(--purelyhobby-primary); }

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.skip-link {
  position: absolute !important;
  top: -40px !important;
  left: 6px !important;
  background: var(--purelyhobby-dark) !important;
  color: var(--purelyhobby-white) !important;
  padding: 12px 16px !important;
  border-radius: 4px !important;
  z-index: 99999 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.skip-link:focus {
  top: 6px !important;
}

/* ===== CONTENT: TABLES & BLOCKS ===== */
table {
  border-collapse: collapse;
  width: 100%;
}

th {
  background-color: var(--purelyhobby-gray-100);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem;
  border: 1px solid var(--purelyhobby-gray-300);
}

td {
  padding: 0.75rem;
  border: 1px solid var(--purelyhobby-gray-300);
}

.wp-block-button__link {
  background: var(--purelyhobby-primary);
  color: var(--purelyhobby-white);
  border-radius: var(--purelyhobby-border-radius);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
}

.wp-block-button__link:hover {
  background: var(--purelyhobby-primary-dark);
  color: var(--purelyhobby-white);
}

.wp-block-quote {
  border-left: 4px solid var(--purelyhobby-primary);
  background: var(--purelyhobby-gray-100);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
}

.wp-block-pullquote {
  border-top: 4px solid var(--purelyhobby-primary);
  border-bottom: 4px solid var(--purelyhobby-primary);
  padding: 2rem 0;
  text-align: center;
}

.wp-block-code {
  background: var(--purelyhobby-gray-100);
  border: 1px solid var(--purelyhobby-gray-300);
  border-radius: 4px;
  padding: 1rem;
  font-family: var(--purelyhobby-font-mono);
  overflow-x: auto;
}

.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--purelyhobby-gray-300);
  padding: 0.75rem;
  text-align: left;
}

.wp-block-table th {
  background: var(--purelyhobby-gray-100);
  font-weight: 600;
}

/* Search widget form (get_search_form) */
.search-form {
  position: relative;
  max-width: 400px;
}

.search-form input[type="search"] {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid var(--purelyhobby-gray-300);
  border-radius: 25px;
  font-size: 1rem;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--purelyhobby-primary);
}

.search-form button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--purelyhobby-primary);
  color: var(--purelyhobby-white);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--purelyhobby-primary-dark);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--purelyhobby-primary) 0%, var(--purelyhobby-primary-dark) 100%);
  color: var(--purelyhobby-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1050;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  box-shadow: 0 4px 16px rgba(193, 86, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  text-decoration: none;
  overflow: hidden;
}

.back-to-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purelyhobby-accent) 0%, var(--purelyhobby-accent-light) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.back-to-top:hover::before { opacity: 1; }

.back-to-top .icon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.back-to-top:hover .icon { transform: translateY(-2px); }

.back-to-top.visible,
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { transform: translateY(-6px); }

.back-to-top:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

.back-to-top.clicked { animation: click-bounce 0.4s ease-out; }
.back-to-top.pulse { animation: pulse-scale 0.6s ease-out; }

@keyframes click-bounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  60% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

@keyframes pulse-scale {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, var(--purelyhobby-dark) 0%, #2A2018 100%);
  color: var(--purelyhobby-white);
}

.modern-footer {
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 48, 56, 0.85);
  z-index: 1;
}

.footer-main {
  position: relative;
  z-index: 2;
  padding: 4rem 0 2rem;
}

.footer-widget { margin-bottom: 2rem; }

.footer-widget-title {
  font-family: var(--purelyhobby-font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purelyhobby-white);
  margin-bottom: 1.5rem;
  position: relative;
  text-align: center;
  padding-bottom: 0.75rem;
}

.site-footer .footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
}

/* Newsletter */
.footer-newsletter,
.newsletter-signup {
  text-align: center;
}

.newsletter-signup {
  max-width: 100%;
  margin: 0 auto;
}

.newsletter-title {
  font-family: var(--purelyhobby-font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purelyhobby-white);
  margin-bottom: 1rem;
  text-align: center;
}

.newsletter-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: center;
}

.newsletter-form .input-group {
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
}

.newsletter-form .form-control {
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  background: var(--purelyhobby-white);
  color: var(--purelyhobby-gray-800);
  border-radius: 8px 0 0 8px;
  flex: 1;
  min-width: 0;
}

.newsletter-form .form-control::placeholder {
  color: var(--purelyhobby-gray-500);
  opacity: 1;
}

.newsletter-form .form-control:focus {
  box-shadow: none;
  border-color: transparent;
  outline: none;
  background: var(--purelyhobby-white);
}

.newsletter-form .btn {
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: none;
  background: linear-gradient(135deg, var(--purelyhobby-primary) 0%, var(--purelyhobby-primary-dark) 100%);
  font-size: 0.9rem;
  color: var(--purelyhobby-white);
  white-space: nowrap;
  flex-shrink: 0;
}

.newsletter-form .btn:hover {
  background: linear-gradient(135deg, var(--purelyhobby-primary-dark) 0%, #d4481f 100%);
  transform: translateY(-1px);
  color: var(--purelyhobby-white);
}

/* Footer connect */
.footer-connect { text-align: center; }

.connect-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-connect .social-media-icons {
  justify-content: center;
  gap: 1rem;
}

.footer-connect .social-icon {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}

/* Footer bottom */
.footer-bottom {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.site-footer .copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

.footer-bottom-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom-menu a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-bottom-menu a:hover,
.footer-bottom-menu a:focus {
  color: var(--purelyhobby-white);
  text-decoration: underline;
}

@media (min-width: 992px) {
  .footer-main .row { align-items: flex-start; }
  .footer-widget { height: 100%; }
}

@media (max-width: 991.98px) {
  .footer-main { padding: 3rem 0 1.5rem; }
  .footer-bottom-nav { margin-top: 1rem; }
  .footer-bottom-menu { justify-content: center; }
  .footer-widget { margin-bottom: 2.5rem; }

  .newsletter-title { font-size: 1.2rem; }
  .newsletter-description {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  .newsletter-form .input-group {
    flex-direction: column;
    border-radius: 8px;
    max-width: 280px;
    margin: 0 auto;
  }
  .newsletter-form .form-control {
    border-radius: 8px;
    margin-bottom: 0.75rem;
    text-align: center;
    width: 100%;
  }
  .newsletter-form .btn {
    border-radius: 8px;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .footer-main { padding: 2rem 0 1rem; }
  .footer-widget {
    margin-bottom: 2.5rem;
    text-align: center;
  }
  .footer-widget-title { font-size: 1.2rem; }
  .footer-about .footer-description {
    text-align: center;
    max-width: 300px;
    margin: 0 auto 1.5rem;
  }
  .connect-description {
    max-width: 280px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
  }
  .footer-connect .social-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .sharing-icons { gap: 0.75rem; }
  .share-button {
    min-width: 100px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  .footer-bottom { text-align: center; }
  .footer-bottom .row {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-bottom-menu {
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 575.98px) {
  .footer-main { padding: 1.5rem 0 1rem; }
  .newsletter-title { font-size: 1.1rem; }
  .newsletter-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  .newsletter-form .input-group {
    max-width: 260px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .newsletter-form .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }
  .newsletter-form .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }
  .footer-widget { margin-bottom: 2rem; }
  .footer-widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  .footer-about .footer-description {
    font-size: 0.9rem;
    max-width: 280px;
    line-height: 1.5;
  }
  .connect-description {
    font-size: 0.9rem;
    max-width: 260px;
    margin-bottom: 1rem;
  }
  .footer-connect .social-media-icons { gap: 0.75rem; }
  .footer-connect .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .footer-bottom { padding: 1rem 0; }
  .site-footer .copyright { margin-bottom: 0.5rem; }
  .footer-bottom-menu { gap: 0.75rem; }
  .footer-bottom-menu a { font-size: 0.8rem; }
  .share-button {
    min-width: 90px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  .share-button span { display: none; }
  .share-button i { font-size: 1.1rem; }
}

/* ===== SOCIAL ICONS ===== */
.social-media-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-icon-sm { width: 32px; height: 32px; font-size: 0.875rem; }
.social-icon-md { width: 40px; height: 40px; font-size: 1rem; }
.social-icon-lg { width: 48px; height: 48px; font-size: 1.25rem; }

.social-style-colored .social-icon {
  color: var(--purelyhobby-white);
  background: var(--purelyhobby-gray-600);
}

.social-style-colored .social-facebook { background: #1877f2; }
.social-style-colored .social-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-style-colored .social-twitter { background: #000000; }
.social-style-colored .social-pinterest { background: #bd081c; }
.social-style-colored .social-youtube { background: #ff0000; }
.social-style-colored .social-tiktok { background: #000000; }
.social-style-colored .social-linkedin { background: #0077b5; }
.social-style-colored .social-whatsapp { background: #25d366; }

.social-style-colored .social-icon:hover {
  transform: translateY(-2px) scale(1.1);
}

.social-style-monochrome .social-icon {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-style-monochrome .social-icon:hover {
  background: var(--purelyhobby-white);
  color: var(--purelyhobby-dark);
  transform: translateY(-2px);
}

.social-style-outlined .social-icon {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-style-outlined .social-icon:hover {
  background: var(--purelyhobby-white);
  color: var(--purelyhobby-dark);
  border-color: var(--purelyhobby-white);
  transform: translateY(-2px);
}

/* ===== SOCIAL SHARING ===== */
.social-sharing-buttons { padding: 2rem 0; }

.sharing-title {
  font-family: var(--purelyhobby-font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--purelyhobby-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.sharing-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--purelyhobby-border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  color: var(--purelyhobby-white);
  min-width: 120px;
  justify-content: center;
}

.share-button:hover {
  transform: translateY(-2px);
  color: var(--purelyhobby-white);
  text-decoration: none;
}

.share-facebook { background: #1877f2; }
.share-facebook:hover { background: #166fe5; }
.share-twitter { background: #000000; }
.share-twitter:hover { background: #333333; }
.share-pinterest { background: #bd081c; }
.share-pinterest:hover { background: #a0070f; }
.share-linkedin { background: #0077b5; }
.share-linkedin:hover { background: #006396; }
.share-whatsapp { background: #25d366; }
.share-whatsapp:hover { background: #20b954; }

.social-icon:focus,
.share-button:focus {
  outline: 2px solid var(--purelyhobby-primary);
  outline-offset: 2px;
}

/* ===== POST RATING ===== */
.post-rating-section.simple-rating {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #e9ecf3;
}

.rating-title {
  color: var(--purelyhobby-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.rating-summary { margin-bottom: 1.5rem; }

.average-rating,
.no-ratings {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rating-details {
  color: var(--purelyhobby-text);
  font-size: 0.9rem;
}

.rating-details strong {
  font-size: 1rem;
  color: var(--purelyhobby-dark);
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1.2rem;
  line-height: 1;
}

.rating-stars .star {
  color: #ddd;
  cursor: default;
}

.rating-stars .star.filled { color: #ffc107; }

.rating-stars .star.half {
  background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-stars.interactive { cursor: pointer; }

.rating-stars.interactive .star {
  cursor: pointer;
  display: inline-block;
  transition: transform 0.15s ease;
  color: #ddd;
  font-size: 1.5rem;
  padding: 0.2rem;
  margin: 0 0.1rem;
  user-select: none;
}

.rating-stars.interactive .star:hover,
.rating-stars.interactive .star.hover {
  color: #ffb400;
  transform: scale(1.1);
}

.rating-stars.interactive .star.filled { color: #ffc107; }

.rating-stars.interactive .star:focus {
  outline: 2px solid var(--purelyhobby-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.rating-form {
  background: #fff;
  border-radius: 6px;
  padding: 1rem;
  border: 1px solid #e9ecf3;
  margin-top: 1rem;
}

.rating-form:hover { border-color: #ccc; }

.rating-input { margin-bottom: 1rem; }

.rating-input .form-label {
  font-weight: 500;
  color: var(--purelyhobby-dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  display: block;
}

.interactive-rating { margin: 0.5rem 0; }

.form-actions { margin-top: 1rem; }

.form-actions .btn {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
}

.rating-limit-message {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  margin-top: 1rem;
}

.rating-limit-message p {
  margin: 0;
  color: #856404;
}

.rating-messages { margin-top: 1rem; }

.rating-messages .alert {
  border-radius: 4px;
  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
  border: none;
}

.alert-success {
  background: #d4edda;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
}

.compact-rating { margin: 0.25rem 0; }
.card .compact-rating { margin-top: 0.5rem; }

.compact-rating .rating-stars {
  font-size: 1rem;
  gap: 0.15rem;
}

.compact-rating .rating-count {
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

@media (max-width: 768px) {
  .post-rating-section.simple-rating {
    padding: 1rem;
    margin: 1rem 0;
  }
  .rating-title { font-size: 1rem; }
  .average-rating,
  .no-ratings {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .rating-stars { font-size: 1.1rem; }
  .rating-form { padding: 0.8rem; }
}

@media (max-width: 480px) {
  .post-rating-section.simple-rating {
    padding: 0.8rem;
    border-radius: 6px;
  }
  .rating-stars {
    font-size: 1rem;
    gap: 0.15rem;
  }
  .rating-title { font-size: 0.95rem; }
  .form-actions .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }

  /* The interactive rating stars are real tap targets (select a rating),
     not decoration — give them more hit area on touch screens without
     changing the glyph size, rather than relying on font-size + 3.2px
     padding alone (that combination measures ~26x30px, under the ~44px
     comfortable minimum for a touch target). */
  .rating-stars.interactive .star {
    padding: 0.5rem 0.35rem;
    margin: 0;
  }
}

/* ===== USER PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .back-to-top,
  .back-to-top.visible,
  .back-to-top:hover,
  .back-to-top:active,
  .back-to-top:hover .icon,
  .social-icon:hover,
  .share-button:hover,
  .newsletter-form .btn:hover {
    transform: none !important;
  }

  .back-to-top.pulse,
  .back-to-top.clicked {
    animation: none !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --purelyhobby-primary: #d63200;
    --purelyhobby-accent: #006b5d;
    --purelyhobby-gray-500: #000000;
    --purelyhobby-gray-600: #000000;
    --purelyhobby-gray-700: #000000;
    --purelyhobby-gray-800: #000000;
  }

  .btn-primary {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
  }

  .btn-outline-primary {
    border-color: #000000 !important;
    color: #000000 !important;
  }

  .text-muted { color: #000000 !important; }
  .border { border-color: #000000 !important; }
  .card { border: 1px solid #ccc !important; }

  .back-to-top {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
  }

  .back-to-top::before { background: #333333 !important; }

  .modern-footer {
    background: #000000 !important;
    color: #ffffff !important;
  }

  .footer-widget-title,
  .newsletter-title {
    color: #ffffff !important;
  }

  .social-icon,
  .share-button {
    border: 2px solid #ffffff !important;
  }
}

/* ===== PRINT ===== */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .pagination,
  .btn,
  .skip-link,
  .rating-form,
  .form-actions,
  .rating-messages {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
    padding-top: 0;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  .entry-content { max-width: none; }

  img {
    max-width: 100% !important;
    height: auto !important;
  }

  .post-rating-section {
    background: none !important;
    border: 1px solid #000 !important;
    page-break-inside: avoid;
  }

  .rating-stars .star { color: #000 !important; }
}
