/*
Theme Name: Riders Life Fun
Theme URI: https://riderslifefun.com
Author: Riders Life Fun
Author URI: https://riderslifefun.com
Description: バイク初心者・リターンライダー向け情報ブログのWordPressテーマ。バイクアパレル・ツーリング・整備情報を発信。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riderslifefun
Tags: blog, custom-colors, custom-menu, featured-images, one-column, two-columns, right-sidebar, threaded-comments, translation-ready
*/

/* ===== CSS Variables ===== */
:root {
  --color-primary: #e8460a;
  --color-primary-dark: #c23a08;
  --color-primary-light: #ff6b35;
  --color-secondary: #1a1a2e;
  --color-accent: #f5a623;
  --color-bg: #f8f7f4;
  --color-bg-white: #ffffff;
  --color-text: #2c2c2c;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-border: #e5e5e5;
  --color-border-dark: #d0d0d0;
  --color-card-bg: #ffffff;
  --color-footer-bg: #1a1a2e;
  --color-footer-text: #cccccc;

  --font-heading: 'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
  --font-body: 'Noto Sans JP', 'Hiragino Sans', 'ヒラギノ角ゴシック', sans-serif;
  --font-en: 'Oswald', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition: 0.3s ease;

  --max-width: 1200px;
  --content-width: 860px;
  --sidebar-width: 300px;
}

/* ===== 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);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-secondary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.2em; }

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

.site-main {
  padding: 40px 0;
}

.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

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

.site-logo img {
  height: 44px;
  width: auto;
}

.site-title {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-title a {
  color: #ffffff;
}

.site-title a:hover {
  color: var(--color-primary-light);
}

.site-description {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
}

/* ===== Navigation ===== */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu li a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all var(--transition);
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-secondary);
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }

  .nav-menu.is-active {
    display: flex;
  }

  .nav-menu li a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 0;
    font-size: 0.95rem;
  }
}

/* ===== Hero / Top Banner ===== */
.hero-banner {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #2d1b4e 50%, #16213e 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(232,70,10,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(245,166,35,0.1) 0%, transparent 50%);
}

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

.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

/* ===== Category Strip ===== */
.category-strip {
  background: var(--color-primary);
  padding: 0;
}

.category-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}

.category-strip-inner::-webkit-scrollbar {
  display: none;
}

.category-strip a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition);
}

.category-strip a:hover {
  color: #ffffff;
  background: rgba(0,0,0,0.15);
}

/* ===== Post Cards ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.post-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card-thumb {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #e0e0e0;
}

.post-card-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.post-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  z-index: 1;
}

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

.post-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-secondary);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title a {
  color: inherit;
}

.post-card-title a:hover {
  color: var(--color-primary);
}

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

.post-card-meta .date::before {
  content: '📅 ';
}

/* ===== Featured Post (Large) ===== */
.featured-post {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .featured-post {
    grid-template-columns: 1fr;
  }
}

.featured-post-thumb {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.featured-post-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-post-category {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.featured-post-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.featured-post-title a {
  color: var(--color-secondary);
}

.featured-post-title a:hover {
  color: var(--color-primary);
}

.featured-post-excerpt {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: white;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  transition: background var(--transition);
}

.read-more-btn:hover {
  background: var(--color-primary-dark);
  color: white;
}

.read-more-btn::after {
  content: '→';
}

/* ===== Section Titles ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--color-primary);
}

.section-title {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
}

.section-title-ja {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===== Single Post ===== */
.single-post-header {
  margin-bottom: 32px;
}

.single-post-category {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.single-post-title {
  font-size: 1.8rem;
  line-height: 1.4;
  color: var(--color-secondary);
  margin-bottom: 16px;
}

.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.single-post-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
}

/* ===== Post Content ===== */
.entry-content {
  font-size: 0.95rem;
  line-height: 1.9;
}

.entry-content h2 {
  font-size: 1.4rem;
  margin: 2.5em 0 1em;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(232,70,10,0.08) 0%, transparent 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.entry-content h3 {
  font-size: 1.15rem;
  margin: 2em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.entry-content h4 {
  font-size: 1rem;
  margin: 1.5em 0 0.6em;
  color: var(--color-primary);
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content ul,
.entry-content ol {
  list-style: revert;
  margin: 1.2em 0 1.2em 1.5em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content blockquote {
  background: var(--color-bg);
  border-left: 4px solid var(--color-accent);
  padding: 20px 24px;
  margin: 2em 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text-light);
}

.entry-content img {
  border-radius: var(--radius-sm);
  margin: 1.5em 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.entry-content th {
  background: var(--color-secondary);
  color: white;
  font-weight: 600;
}

.entry-content tr:nth-child(even) td {
  background: var(--color-bg);
}

/* ===== Info Box (カスタムブロック) ===== */
.info-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 2em 0;
}

.info-box.info-box--tip {
  background: #fff8e1;
  border-color: var(--color-accent);
}

.info-box.info-box--warning {
  background: #fff3f0;
  border-color: var(--color-primary);
}

.info-box.info-box--check {
  background: #f0fff4;
  border-color: #4caf50;
}

.info-box-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* ===== TOC (目次) ===== */
.toc {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 2em 0;
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-secondary);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc ol li {
  counter-increment: toc;
  padding: 6px 0;
  padding-left: 28px;
  position: relative;
  font-size: 0.88rem;
}

.toc ol li::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  background: var(--color-primary);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ===== Author Box ===== */
.author-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 20px;
  margin: 40px 0;
}

.author-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-border);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--color-secondary);
}

.author-bio {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.author-badge {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

/* ===== Related Posts ===== */
.related-posts {
  margin: 40px 0;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Sidebar ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widget {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

/* Profile widget */
.widget-profile {
  text-align: center;
}

.widget-profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  background: var(--color-border);
  border: 3px solid var(--color-primary);
}

.widget-profile-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--color-secondary);
}

.widget-profile-bio {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Category widget */
.widget-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
  color: var(--color-text);
}

.widget-categories a:hover {
  color: var(--color-primary);
}

.widget-categories .count {
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Recent posts widget */
.widget-recent-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.widget-recent-post:last-child {
  border-bottom: none;
}

.widget-recent-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-border);
}

.widget-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-recent-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget-recent-date {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  background: white;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .current {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  margin-top: 60px;
}

.footer-top {
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

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

.footer-about-title {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-about-text {
  font-size: 0.83rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-nav a:hover {
  color: rgba(255,255,255,0.7);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb .sep::before {
  content: '›';
  margin: 0 2px;
}

/* ===== Page Header (Archive/Category) ===== */
.page-header {
  background: linear-gradient(135deg, var(--color-secondary), #2a2a4a);
  padding: 48px 20px;
  text-align: center;
  margin-bottom: 0;
}

.page-title {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.page-description {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

/* ===== Search Form ===== */
.search-form {
  display: flex;
  gap: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: none;
  outline: none;
  font-size: 0.88rem;
  font-family: var(--font-body);
  background: white;
}

.search-form button {
  padding: 10px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition);
}

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

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

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

/* ===== Comments ===== */
.comments-area {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.comment-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-author {
  font-weight: 700;
  font-size: 0.9rem;
}

.comment-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.comment-content {
  font-size: 0.9rem;
}

.comment-reply-link {
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-top: 8px;
  display: inline-block;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-primary);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-submit {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.comment-submit:hover {
  background: var(--color-primary-dark);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* ===== WordPress Core Classes ===== */
.wp-block-image img {
  border-radius: var(--radius-sm);
}

.aligncenter {
  text-align: center;
  display: block;
  margin: 1.5em auto;
}

.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 6px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
