/*
Theme Name: Visaiyon
Theme URI: https://visaiyon.com
Author: Visaiyon
Author URI: https://visaiyon.com
Description: Custom dark theme for the Visaiyon blog, designed to match the main website at visaiyon.com.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: visaiyon
Tags: dark, custom-logo, blog, one-column, two-columns, custom-menu, featured-images, threaded-comments
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  --v-primary: #ff6600;
  --v-primary-hover: #e05500;
  --v-bg: #000000;
  --v-surface: #0e0e0e;
  --v-surface-alt: #111111;
  --v-surface-card: #111111;
  --v-text: #ffffff;
  --v-text-secondary: #dddddd;
  --v-text-dim: #cccccc;
  --v-text-muted: #777777;
  --v-border: rgba(255, 255, 255, 0.2);
  --v-border-dim: rgba(255, 255, 255, 0.06);
  --v-border-card: rgba(255, 255, 255, 0.12);
  --v-font-body: 'Rubik', system-ui, Avenir, Helvetica, Arial, sans-serif;
  --v-font-heading: 'Montserrat', system-ui, Avenir, Helvetica, Arial, sans-serif;
  --v-font-nav: 'Anta', system-ui, sans-serif;
  --v-radius: 8px;
  --v-radius-lg: 20px;
  --v-transition: 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--v-font-body);
  font-weight: 400;
  background: var(--v-bg);
  color: var(--v-text-secondary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--v-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--v-transition);
}

a:hover,
a:focus {
  color: var(--v-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--v-font-heading);
  font-weight: 700;
  color: var(--v-text);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.7;
  text-align: left;
}

ul, ol {
  padding-left: 1.5rem;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--v-primary);
  background: var(--v-surface);
  color: var(--v-text-secondary);
  font-style: italic;
  border-radius: 0 var(--v-radius) var(--v-radius) 0;
}

pre {
  background: var(--v-surface);
  border: 1px solid var(--v-border-dim);
  border-radius: var(--v-radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

code {
  background: var(--v-surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--v-border-dim);
  text-align: left;
}

th {
  color: var(--v-text);
  font-weight: 600;
}

hr {
  border: none;
  border-top: 1px solid var(--v-border-dim);
  margin: 2rem 0;
}

.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;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(0.5rem, 2vw, 2rem) clamp(1rem, 4vw, 4rem);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar .logo a {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: clamp(2rem, 4vw, 4rem);
}

.nav-links {
  display: flex;
  gap: clamp(0.2rem, 1vw, 2rem);
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--v-font-nav);
}

.nav-link-btn {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: clamp(0.65rem, 1vw, 1rem);
  transition: color var(--v-transition);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
}

.nav-link-btn:hover,
.nav-link-btn.active {
  color: var(--v-primary);
}

/* Hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--v-transition);
}

.hamburger-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.97);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 999;
  opacity: 0;
  transition: opacity var(--v-transition);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-nav-link {
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  transition: color var(--v-transition);
  font-family: var(--v-font-nav);
}

.mobile-nav-link:hover {
  color: var(--v-primary);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.site-main {
  min-height: calc(100vh - 80px);
  padding-top: clamp(5rem, 10vw, 8rem);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 4rem);
}

.container--narrow {
  max-width: 800px;
}

/* ==========================================================================
   Blog Listing / Home
   ========================================================================== */

.page-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page-header__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-header__description {
  color: var(--v-text-dim);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  max-width: 600px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.post-card {
  background: var(--v-surface-card);
  border: 1px solid var(--v-border-card);
  border-radius: var(--v-radius-lg);
  overflow: hidden;
  transition: transform var(--v-transition), border-color var(--v-transition);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.post-card__thumbnail {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--v-transition);
}

.post-card:hover .post-card__thumbnail img {
  transform: scale(1.05);
}

.post-card__thumbnail--placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--v-surface) 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card__thumbnail--placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.2;
}

.post-card__body {
  padding: 1.5rem;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--v-text-muted);
}

.post-card__category {
  color: var(--v-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.post-card__category a {
  color: var(--v-primary);
}

.post-card__title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.post-card__title a {
  color: var(--v-text);
  transition: color var(--v-transition);
}

.post-card__title a:hover {
  color: var(--v-primary);
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--v-text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--v-primary);
  font-weight: 600;
  font-size: 0.85rem;
  transition: gap var(--v-transition);
}

.post-card__read-more:hover {
  gap: 0.7rem;
}

.post-card__read-more::after {
  content: '\2192';
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.single-post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.single-post-header .post-card__meta {
  justify-content: center;
  margin-bottom: 1rem;
}

.single-post-header__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.single-post-header__featured {
  margin: 2rem -2rem 2.5rem;
  border-radius: var(--v-radius-lg);
  overflow: hidden;
}

.single-post-header__featured img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

/* Post content typography */
.post-content {
  color: var(--v-text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.8;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--v-border-dim);
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-content a {
  color: var(--v-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: var(--v-primary-hover);
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content img {
  border-radius: var(--v-radius);
  margin: 1.5rem 0;
}

.post-content .wp-caption {
  max-width: 100%;
}

.post-content .wp-caption-text {
  font-size: 0.8rem;
  color: var(--v-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.post-content figure {
  margin: 1.5rem 0;
}

.post-content figcaption {
  font-size: 0.8rem;
  color: var(--v-text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* WordPress alignment classes */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.wp-block-image.alignwide,
.wp-block-image.alignfull {
  margin-left: -2rem;
  margin-right: -2rem;
  max-width: calc(100% + 4rem);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.8rem;
  color: var(--v-text-muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--v-text-dim);
}

.breadcrumbs a:hover {
  color: var(--v-primary);
}

.breadcrumbs .separator {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* ==========================================================================
   Post Navigation & Related Posts
   ========================================================================== */

.post-author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--v-surface);
  border: 1px solid var(--v-border-dim);
  border-radius: var(--v-radius-lg);
  margin: 3rem 0;
}

.post-author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.post-author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author-box__name {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.post-author-box__bio {
  font-size: 0.85rem;
  color: var(--v-text-dim);
  line-height: 1.5;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--v-border-dim);
  border-bottom: 1px solid var(--v-border-dim);
}

.post-share__label {
  font-weight: 600;
  color: var(--v-text);
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.post-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--v-surface);
  border: 1px solid var(--v-border-card);
  color: var(--v-text-secondary);
  transition: background var(--v-transition), border-color var(--v-transition);
}

.post-share__link:hover {
  background: var(--v-primary);
  border-color: var(--v-primary);
  color: #fff;
}

.post-share__link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--v-border-dim);
}

.related-posts__title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 6rem;
}

.widget {
  background: var(--v-surface);
  border: 1px solid var(--v-border-dim);
  border-radius: var(--v-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget__title {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--v-primary);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--v-border-dim);
}

.widget li:last-child {
  border-bottom: none;
}

.widget li a {
  color: var(--v-text-secondary);
  font-size: 0.875rem;
}

.widget li a:hover {
  color: var(--v-primary);
}

/* Search widget */
.search-form {
  display: flex;
  gap: 0;
}

.search-form .search-field {
  flex: 1;
  background: var(--v-bg);
  border: 1px solid var(--v-border-card);
  border-right: none;
  border-radius: var(--v-radius) 0 0 var(--v-radius);
  padding: 0.6rem 0.75rem;
  color: var(--v-text);
  font-family: var(--v-font-body);
  font-size: 0.875rem;
  outline: none;
}

.search-form .search-field:focus {
  border-color: var(--v-primary);
}

.search-form .search-submit {
  background: var(--v-primary);
  border: none;
  border-radius: 0 var(--v-radius) var(--v-radius) 0;
  padding: 0.6rem 1rem;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--v-font-body);
  transition: background var(--v-transition);
}

.search-form .search-submit:hover {
  background: var(--v-primary-hover);
}

/* Tag cloud */
.tagcloud a {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  margin: 0 0.3rem 0.3rem 0;
  background: var(--v-bg);
  border: 1px solid var(--v-border-card);
  border-radius: 4px;
  font-size: 0.75rem !important;
  color: var(--v-text-dim);
  transition: background var(--v-transition), color var(--v-transition);
}

.tagcloud a:hover {
  background: var(--v-primary);
  color: #fff;
  border-color: var(--v-primary);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: clamp(2rem, 4vw, 3rem) 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--v-radius);
  background: var(--v-surface);
  border: 1px solid var(--v-border-card);
  color: var(--v-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--v-transition), color var(--v-transition);
}

.pagination .page-numbers:hover {
  background: var(--v-primary);
  color: #fff;
  border-color: var(--v-primary);
}

.pagination .page-numbers.current {
  background: var(--v-primary);
  color: #fff;
  border-color: var(--v-primary);
}

.pagination .page-numbers.dots {
  background: none;
  border: none;
  cursor: default;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(28, 43, 64, 0), rgba(14, 28, 41, 1));
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 64px) 24px;
}

.newsletter-box {
  border: 1px solid var(--v-border);
  border-radius: var(--v-radius-lg);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.newsletter-text h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter-text p {
  font-size: 0.75rem;
  max-width: 320px;
  color: #ccc;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input[type="email"] {
  width: min(360px, 100%);
  background: #1a1a1a;
  border: 1px solid #555;
  padding: 0.75rem 1rem;
  border-radius: var(--v-radius);
  color: #ffffff;
  font-family: var(--v-font-body);
  font-size: 0.875rem;
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--v-primary);
}

.newsletter-form button {
  background: var(--v-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--v-radius);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--v-font-body);
  transition: background var(--v-transition);
}

.newsletter-form button:hover {
  background: var(--v-primary-hover);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
}

.footer-left {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  width: 120px;
}

.footer-split {
  width: 1px;
  height: 90px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(191, 191, 191, 0.5),
    rgba(255, 255, 255, 0)
  );
}

.footer-nav-social {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.footer-social-icons {
  display: flex;
  align-items: center;
}

.footer-social-icons a {
  margin-right: 1rem;
  display: inline-flex;
}

.footer-social-icons img {
  width: 24px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.footer-social-icons img:hover {
  transform: scale(1.1);
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-nav-links a {
  color: #ffffff;
  font-size: 0.7rem;
  text-decoration: none;
}

.footer-nav-links a:hover {
  color: var(--v-primary);
}

.footer-nav-links span {
  color: #555;
}

.footer-contact {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.icon-text {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.icon-text img {
  width: 20px;
  margin-top: 3px;
}

.icon-text strong {
  font-size: 0.7rem;
  display: block;
  margin-bottom: 0.25rem;
  color: #fff;
}

.icon-text p {
  font-size: 0.6rem;
  color: #ccc;
  line-height: 1.4;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--v-text-dim);
}

/* ==========================================================================
   404 & Search Results
   ========================================================================== */

.error-404,
.no-results {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.error-404__title {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--v-primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-404__text,
.no-results__text {
  color: var(--v-text-dim);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--v-primary);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: var(--v-font-body);
  font-size: 0.9rem;
  transition: background var(--v-transition);
  text-decoration: none;
}

.btn:hover {
  background: var(--v-primary-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--v-border);
  color: var(--v-text);
}

.btn--outline:hover {
  border-color: var(--v-primary);
  color: var(--v-primary);
  background: transparent;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--v-border-dim);
}

.comments-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-body {
  padding: 1.25rem;
  background: var(--v-surface);
  border: 1px solid var(--v-border-dim);
  border-radius: var(--v-radius);
  margin-bottom: 1rem;
}

.comment-body .children {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.comment-author .avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.comment-author .fn {
  font-weight: 600;
  color: var(--v-text);
}

.comment-metadata {
  font-size: 0.75rem;
  color: var(--v-text-muted);
  margin-bottom: 0.75rem;
}

.comment-metadata a {
  color: var(--v-text-muted);
}

.comment-content {
  font-size: 0.9rem;
  line-height: 1.6;
}

.comment-respond {
  margin-top: 2rem;
}

.comment-reply-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: var(--v-text-secondary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--v-bg);
  border: 1px solid var(--v-border-card);
  border-radius: var(--v-radius);
  padding: 0.6rem 0.75rem;
  color: var(--v-text);
  font-family: var(--v-font-body);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color var(--v-transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--v-primary);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form .submit {
  background: var(--v-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--v-radius);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--v-font-body);
  transition: background var(--v-transition);
}

.comment-form .submit:hover {
  background: var(--v-primary-hover);
}

/* ==========================================================================
   Archive / Category Header
   ========================================================================== */

.archive-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--v-border-dim);
}

.archive-header__label {
  font-size: 0.75rem;
  color: var(--v-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.archive-header__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.archive-header__description {
  color: var(--v-text-dim);
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive: Tablet (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .navbar {
    padding: 0.75rem 1rem;
  }

  .navbar .logo img {
    height: 3rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .newsletter-box {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-text h2,
  .newsletter-text p {
    text-align: center;
  }

  .newsletter-form input[type="email"] {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-nav-social,
  .footer-contact {
    max-width: 420px;
    width: 100%;
    align-items: center;
  }

  .footer-split {
    width: 100%;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0),
      rgba(191, 191, 191, 0.5),
      rgba(255, 255, 255, 0)
    );
  }

  .single-post-header__featured {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }

  .related-posts__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Responsive: Small Mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
  .mobile-nav-link {
    font-size: 1.25rem;
  }

  .newsletter-text h2 {
    font-size: 1.1rem;
  }

  .footer-logo {
    width: 80px;
  }

  .footer-nav-links a {
    font-size: 0.65rem;
  }

  .footer-bottom p {
    font-size: 0.7rem;
  }

  .post-card__thumbnail,
  .post-card__thumbnail--placeholder {
    height: 180px;
  }

  .post-card__body {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   WordPress Core Utility Classes
   ========================================================================== */

.sticky .post-card {
  border-color: var(--v-primary);
}

.bypostauthor .comment-body {
  border-color: var(--v-primary);
}

.gallery-caption,
.wp-caption-text {
  font-size: 0.8rem;
  color: var(--v-text-muted);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* WordPress block editor compatibility */
.wp-block-button__link {
  background: var(--v-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--v-radius);
  font-weight: 600;
  transition: background var(--v-transition);
}

.wp-block-button__link:hover {
  background: var(--v-primary-hover);
  color: #fff;
}

.wp-block-quote {
  border-left: 4px solid var(--v-primary);
  padding: 1rem 1.5rem;
  background: var(--v-surface);
  border-radius: 0 var(--v-radius) var(--v-radius) 0;
}

.wp-block-separator {
  border-top: 1px solid var(--v-border-dim);
  border-bottom: none;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table td,
.wp-block-table th {
  padding: 0.75rem 1rem;
  border: 1px solid var(--v-border-dim);
}

.has-text-align-center {
  text-align: center;
}

.has-text-align-right {
  text-align: right;
}
