/*
Theme Name: Play Piano
Theme URI: https://play-piano.info
Author: play-piano.info
Author URI: https://play-piano.info
Description: A modern, clean theme for piano learning and music education.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: playpiano
*/

/* =========================================================
   ROOT VARIABLES
   ========================================================= */
:root {
  --black: #0d0d0d;
  --dark: #1a1a2e;
  --dark-mid: #16213e;
  --blue: #1e40af;
  --blue-light: #3b82f6;
  --gold: #d97706;
  --gold-light: #fbbf24;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --content-width: 780px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-light); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 0.75em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.25em; color: var(--text); }
ul, ol { margin: 0 0 1.25em 1.5em; }
li { margin-bottom: 0.5em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 65px;
}

.site-branding { display: flex; align-items: center; gap: 12px; }

.site-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  line-height: 1.2;
}
.site-title:hover { color: var(--gold-light); }

.site-tagline {
  font-size: 0.7rem;
  color: var(--gray-300);
  display: block;
  font-weight: 400;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.main-nav a {
  color: var(--gray-300);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav .current-menu-item a {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; width: 100%; }
  .main-nav a { display: block; padding: 12px; width: 100%; }
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 50%, #0e3460 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--white) 0px, var(--white) 40px,
    var(--black) 40px, var(--black) 56px
  );
  opacity: 0.3;
}

.hero-content { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 span { color: var(--gold-light); }

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: var(--font-heading);
}
.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================================
   SEARCH BAR
   ========================================================= */
.search-bar-section {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px;
}

.search-bar-inner {
  max-width: 700px;
  margin: 0 auto;
}

.search-bar-inner h2 {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
  color: var(--text);
}
.search-form input[type="search"]:focus { border-color: var(--blue); }

.search-form button {
  padding: 14px 28px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.search-form button:hover { background: var(--blue-light); }

/* =========================================================
   MAIN LAYOUT
   ========================================================= */
.main-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .main-wrapper { grid-template-columns: 1fr; }
}

/* =========================================================
   POST CARDS
   ========================================================= */
.posts-grid {
  display: grid;
  gap: 20px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.post-card-video {
  position: relative;
  background: var(--dark);
  aspect-ratio: 16/9;
}
.post-card-video iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  border: none;
}
.post-card-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  transition: opacity 0.3s;
}
.post-card-video-thumb:hover { opacity: 0.85; }

.post-card-body { padding: 20px; flex: 1; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-card-category {
  background: var(--gold);
  color: var(--dark);
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.post-card h3 a { color: var(--dark); }
.post-card h3 a:hover { color: var(--blue); }

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-header {
  background: linear-gradient(to right, var(--dark), var(--dark-mid));
  color: var(--white);
  padding: 50px 20px 40px;
}

.single-header-inner { max-width: var(--max-width); margin: 0 auto; }

.single-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.single-meta {
  display: flex;
  gap: 20px;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.video-wrapper {
  max-width: 780px;
  margin: 0 auto 30px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--black);
  box-shadow: var(--shadow-lg);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* =========================================================
   CONTENT / PAGES
   ========================================================= */
.content-area {
  font-size: 1.05rem;
  line-height: 1.8;
}

.entry-content h2 { margin-top: 2em; padding-top: 2em; border-top: 2px solid var(--border); }
.entry-content h3 { margin-top: 1.5em; color: var(--blue); }

.entry-content blockquote {
  border-left: 4px solid var(--gold);
  background: var(--gray-100);
  padding: 16px 20px;
  margin: 1.5em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-700);
}

/* =========================================================
   AFFILIATE PRODUCT CARDS
   ========================================================= */
.product-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 2em 0;
  background: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.product-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.product-badge {
  background: var(--gold);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--dark);
  border: none;
  padding: 0;
}

.product-rating {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--font-heading);
  margin-bottom: 12px;
}

.product-pros {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.product-pros li {
  padding: 4px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
  margin: 0;
}
.product-pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
}

.btn-affiliate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-decoration: none;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(217,119,6,0.3);
}
.btn-affiliate:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217,119,6,0.4);
  color: var(--dark);
}

.btn-affiliate-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--white);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-decoration: none;
  margin: 4px 0 0 8px;
}
.btn-affiliate-secondary:hover { background: var(--dark-mid); color: var(--white); }

.affiliate-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* =========================================================
   COMPARISON TABLE
   ========================================================= */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5em 0;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table th {
  background: var(--dark);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-body);
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table tr:nth-child(even) td { background: var(--gray-100); }
.comparison-table tr:hover td { background: #eff6ff; }

.check { color: #059669; font-weight: 700; }
.cross { color: #dc2626; font-weight: 700; }
.star { color: var(--gold); }

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar { position: sticky; top: 85px; }

.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  font-family: var(--font-body);
}

/* Recommended Pianos Widget */
.widget-affiliate { background: var(--dark); color: var(--white); }
.widget-affiliate .widget-title { color: var(--gold-light); border-color: var(--gold); }
.widget-affiliate p { color: rgba(255,255,255,0.8); font-size: 0.875rem; }

.sidebar-product {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-product:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-product-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.sidebar-product-price { color: var(--gold-light); font-size: 0.85rem; margin-bottom: 8px; }
.sidebar-product-link {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
}
.sidebar-product-link:hover { background: var(--gold-light); color: var(--dark); }

/* Popular posts widget */
.popular-post {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.popular-post:last-child { border-bottom: none; }
.popular-post-num {
  min-width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.popular-post a {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.4;
}
.popular-post a:hover { color: var(--blue); }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s;
}
.tag-cloud a:hover {
  background: var(--blue);
  color: var(--white);
}

/* =========================================================
   CATEGORIES SECTION (homepage)
   ========================================================= */
.category-section {
  background: var(--gray-100);
  padding: 60px 20px;
  margin: 0;
}

.category-section h2 {
  text-align: center;
  margin-bottom: 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.category-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.category-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.category-card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.category-card h3 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 6px;
}
.category-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* =========================================================
   AFFILIATE BANNER (full-width)
   ========================================================= */
.affiliate-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  padding: 50px 20px;
  text-align: center;
}

.affiliate-banner h2 { color: var(--white); margin-bottom: 8px; }
.affiliate-banner p { color: rgba(255,255,255,0.8); margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }

.affiliate-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); color: var(--dark); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.1); }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.page-numbers:hover, .page-numbers.current {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 20px 30px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { }
.footer-brand .site-title { font-size: 1.3rem; display: block; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 16px; }

.footer-title {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-light); }

/* =========================================================
   NOTICE / INFO BOXES
   ========================================================= */
.notice {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 1.5em 0;
  border-left: 4px solid;
  font-size: 0.9rem;
}
.notice-info { background: #eff6ff; border-color: var(--blue); color: #1e40af; }
.notice-tip { background: #f0fdf4; border-color: #059669; color: #065f46; }
.notice-warning { background: #fffbeb; border-color: var(--gold); color: #92400e; }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { margin: 0 6px; }

/* =========================================================
   ARCHIVE / CATEGORY PAGE
   ========================================================= */
.archive-header {
  background: var(--off-white);
  padding: 40px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.archive-header-inner { max-width: var(--max-width); margin: 0 auto; }
.archive-header h1 { margin-bottom: 8px; }
.archive-header p { color: var(--text-muted); margin: 0; }

/* =========================================================
   404 PAGE
   ========================================================= */
.page-404 {
  text-align: center;
  padding: 80px 20px;
}
.page-404 h1 {
  font-size: 8rem;
  color: var(--gray-200);
  line-height: 1;
  font-family: var(--font-heading);
}

/* =========================================================
   UTILITY
   ========================================================= */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

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

/* =========================================================
   WORDPRESS CORE FIXES
   ========================================================= */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.wp-caption { max-width: 100%; }

.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text);
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
#submit {
  background: var(--blue);
  color: var(--white);
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
#submit:hover { background: var(--blue-light); }

/* Print */
@media print {
  .site-header, .sidebar, .site-footer, .affiliate-banner { display: none; }
  .main-wrapper { grid-template-columns: 1fr; }
}
