/*
Theme Name: Jigyasu Sapiens
Theme URI: https://jigyasu-sapiens.com
Description: Modern, membership-enabled publishing platform. Hybrid theme with Elementor support.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.1
Author: Jigyasu Sapiens
Author URI: https://jigyasu-sapiens.com
License: All Rights Reserved
License URI: https://jigyasu-sapiens.com
Text Domain: jigyasu-sapiens
Domain Path: /languages
Elementor Support: true

This theme is designed for the Jigyasu Sapiens publishing platform.
It supports Elementor page builder and includes custom functionality for
articles, services, and membership management.
*/

/* ========================================
   THEME VARIABLES & IMPORTS
   ======================================== */

:root {
  /* Colors - Black & Grey Palette */
  --color-primary: #2c2c2c;
  --color-accent: #4a4a4a;
  --color-bg-dark: #0b1320;
  --color-bg-light: #ffffff;
  --color-text-dark: #f5f5f5;
  --color-text-light: #1a1a1a;
  --color-muted-dark: #a0aac0;
  --color-muted-light: #666666;
  --color-border-dark: rgba(255, 255, 255, 0.08);
  --color-border-light: rgba(0, 0, 0, 0.1);
  --color-shadow: rgba(0, 0, 0, 0.25);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px var(--color-shadow);
  --shadow-md: 0 8px 24px var(--color-shadow);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.45s ease;
}

[data-theme="light"] {
  --color-bg: var(--color-bg-light);
  --color-text: var(--color-text-light);
  --color-muted: var(--color-muted-light);
  --color-border: var(--color-border-light);
}

[data-theme="dark"] {
  --color-bg: var(--color-bg-dark);
  --color-text: var(--color-text-dark);
  --color-muted: var(--color-muted-dark);
  --color-border: var(--color-border-dark);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
  background: rgba(11, 19, 32, 0.95);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.logo {
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}

.navbar {
  flex: 1;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a,
.link-button {
  font-size: 0.95rem;
  transition: color var(--transition-normal);
}

.nav-menu a:hover,
.nav-menu a.active,
.link-button:hover {
  color: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  background: rgba(74, 74, 74, 0.15);
  border-color: rgba(74, 74, 74, 0.3);
  color: var(--color-accent);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* Sign Up / Login Button */
.signup-link {
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, #4a4a4a, #2c2c2c);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.signup-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.signup-link:active {
  transform: translateY(0);
}

/* User Menu Button */
.user-menu {
  position: relative;
}

.user-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.9rem;
}

.user-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.user-button i {
  font-size: 1.25rem;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(11, 19, 32, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition-normal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-menu a:first-child {
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: rgba(74, 74, 74, 0.1);
  color: var(--color-accent);
  padding-left: 1.25rem;
}

.dropdown-menu hr {
  margin: 0.5rem 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
}

.hero-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* ========================================
   ACCESSIBILITY & UTILITIES
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100%, calc(100% - 1.5rem));
  }
  
  .header-inner {
    gap: 1rem;
  }
}

/* ========================================
   THEME TOGGLE (Dark Mode Plugin Support)
   ======================================== */

[data-theme="dark"] body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-dark);
}

[data-theme="light"] body {
  background-color: var(--color-bg-light);
  color: var(--color-text-light);
}

/* ========================================
   ELEMENTOR COMPATIBILITY
   ======================================== */

.elementor-container {
  max-width: 1280px;
}

.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3 {
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* ========================================
   WORDPRESS CLASSES
   ======================================== */

.wp-block-image {
  margin: var(--spacing-lg) 0;
}

.alignwide {
  max-width: 100%;
}

.alignfull {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.has-text-align-center {
  text-align: center;
}

.has-text-align-left {
  text-align: left;
}

.has-text-align-right {
  text-align: right;
}

/* Custom theme styles will be added as we develop */

/* ========================================
   SINGLE POST & PAGE STYLES
   ======================================== */

/* SINGLE POST */
.single-post {
  margin: 3rem 0;
}

.post-featured-image {
  max-height: 600px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.post-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.post-title {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.post-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.post-author,
.post-date,
.reading-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-author a,
.post-date a {
  color: var(--color-accent);
  text-decoration: none;
}

.post-author a:hover {
  text-decoration: underline;
}

.post-categories {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.post-categories .category {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  background: rgba(74, 74, 74, 0.1);
  border: 1px solid rgba(74, 74, 74, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-accent);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.post-categories .category:hover {
  background: rgba(74, 74, 74, 0.2);
  border-color: rgba(74, 74, 74, 0.3);
}

.post-excerpt {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin-top: 1rem;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 2rem 0;
  color: var(--color-muted);
}

.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: var(--font-weight-bold);
}

.post-body p {
  margin-bottom: 1rem;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1rem;
  margin-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.post-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

.post-body a:hover {
  text-decoration: none;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.post-body blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-style: italic;
}

.post-body code {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: var(--color-accent);
  font-size: 0.9em;
}

.post-body pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1rem;
}

.post-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.page-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.page-links-title {
  font-weight: var(--font-weight-semibold);
  margin-right: 1rem;
}

.page-links span,
.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.page-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.premium-content-notice {
  padding: 2rem;
  background: rgba(74, 74, 74, 0.08);
  border: 2px solid rgba(74, 74, 74, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 2rem 0;
}

.premium-content-notice h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.premium-content-notice p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.post-author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  align-items: start;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.author-name {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.author-name a {
  color: var(--color-text);
  text-decoration: none;
}

.author-name a:hover {
  color: var(--color-accent);
}

.author-bio {
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

.author-posts-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  width: fit-content;
}

.author-posts-link:hover {
  text-decoration: underline;
}

.related-posts {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related-posts h3 {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
}

/* PAGE TEMPLATE */
.page-content {
  margin: 3rem 0;
}

.page-featured-image {
  max-height: 500px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.page-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-inner {
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: var(--font-weight-bold);
}

.page-body p {
  margin-bottom: 1rem;
}

.page-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

.page-body a:hover {
  text-decoration: none;
}

/* ARCHIVE & SEARCH */
.archive-page,
.search-page {
  padding: 2rem 0;
}

.archive-header,
.search-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-description {
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 2rem 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition-normal);
  font-weight: var(--font-weight-semibold);
}

.page-numbers:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.page-numbers.current {
  background: rgba(74, 74, 74, 0.2);
  border-color: rgba(74, 74, 74, 0.4);
  color: var(--color-accent);
}

/* 404 PAGE */
.error-404-page {
  padding: 4rem 0;
  text-align: center;
}

.error-404-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-404-page .page-title {
  font-size: 5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.error-title {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.error-message {
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.search-section {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.search-section h3 {
  margin-bottom: 1rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form label {
  display: none;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 200px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  padding: 1rem 1.2rem;
  font-family: inherit;
  transition: border-color var(--transition-normal);
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.1);
}

.search-form input[type="submit"] {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #4a4a4a, #2c2c2c);
  color: #ffffff;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.search-form input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(74, 74, 74, 0.3);
}
/* ========================================
   SINGLE POST & PAGE STYLES
   ======================================== */

/* SINGLE POST */
.single-post {
  margin: 3rem 0;
}

.post-featured-image {
  max-height: 600px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.post-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.post-title {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.post-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.post-author,
.post-date,
.reading-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-author a,
.post-date a {
  color: var(--color-accent);
  text-decoration: none;
}

.post-author a:hover {
  text-decoration: underline;
}

.post-categories {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.post-categories .category {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  background: rgba(74, 74, 74, 0.1);
  border: 1px solid rgba(74, 74, 74, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-accent);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.post-categories .category:hover {
  background: rgba(74, 74, 74, 0.2);
  border-color: rgba(74, 74, 74, 0.3);
}

.post-excerpt {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin-top: 1rem;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 2rem 0;
  color: var(--color-muted);
}

.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: var(--font-weight-bold);
}

.post-body p {
  margin-bottom: 1rem;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1rem;
  margin-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.post-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

.post-body a:hover {
  text-decoration: none;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.post-body blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-style: italic;
}

.post-body code {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: Courier New, monospace;
  color: var(--color-accent);
  font-size: 0.9em;
}

.post-body pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1rem;
}

.post-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.page-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.page-links-title {
  font-weight: var(--font-weight-semibold);
  margin-right: 1rem;
}

.page-links span,
.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.page-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.premium-content-notice {
  padding: 2rem;
  background: rgba(74, 74, 74, 0.08);
  border: 2px solid rgba(74, 74, 74, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 2rem 0;
}

.premium-content-notice h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.premium-content-notice p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.post-author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  align-items: start;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.author-name {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.author-name a {
  color: var(--color-text);
  text-decoration: none;
}

.author-name a:hover {
  color: var(--color-accent);
}

.author-bio {
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

.author-posts-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  width: fit-content;
}

.author-posts-link:hover {
  text-decoration: underline;
}

.related-posts {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related-posts h3 {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
}

/* PAGE TEMPLATE */
.page-content {
  margin: 3rem 0;
}

.page-featured-image {
  max-height: 500px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.page-featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-inner {
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: var(--font-weight-bold);
}

.page-body p {
  margin-bottom: 1rem;
}

.page-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

.page-body a:hover {
  text-decoration: none;
}

/* ARCHIVE & SEARCH */
.archive-page,
.search-page {
  padding: 2rem 0;
}

.archive-header,
.search-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-description {
  color: var(--color-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 2rem 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition-normal);
  font-weight: var(--font-weight-semibold);
}

.page-numbers:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.page-numbers.current {
  background: rgba(74, 74, 74, 0.2);
  border-color: rgba(74, 74, 74, 0.4);
  color: var(--color-accent);
}

/* 404 PAGE */
.error-404-page {
  padding: 4rem 0;
  text-align: center;
}

.error-404-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-404-page .page-title {
  font-size: 5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.error-title {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.error-message {
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.search-section {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.search-section h3 {
  margin-bottom: 1rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form label {
  display: none;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 200px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  padding: 1rem 1.2rem;
  font-family: inherit;
  transition: border-color var(--transition-normal);
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.1);
}

.search-form input[type="submit"] {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #4a4a4a, #2c2c2c);
  color: #ffffff;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.search-form input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(74, 74, 74, 0.3);
}

/* ========================================
   HOME PAGE - HERO SECTION
   ======================================== */

.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 3rem;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ========================================
   HOME PAGE - HERO SECTION (Card-Based Horizontal Scroll)
   ======================================== */

/* Customization Variables */
:root {
  --hero-cards-per-row: 3;
  --hero-card-size: medium;
}

/* Card Size Variants */
.hero-section[data-hero-card-size="small"] {
  --hero-card-width: 240px;
  --hero-card-height: 310px;
}

.hero-section[data-hero-card-size="medium"] {
  --hero-card-width: 380px;
  --hero-card-height: 420px;
}

.hero-section[data-hero-card-size="large"] {
  --hero-card-width: 500px;
  --hero-card-height: 520px;
}

/* Container */
.hero-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}

.hero-section-header {
  margin-bottom: 2rem;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-section-title {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.hero-section-subtitle {
  color: var(--color-muted);
  font-size: 1rem;
}

/* Horizontal Scroll Container */
.hero-cards-container {
  display: flex;
  gap: var(--hero-gap, 1.5rem);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(var(--hero-gap, 1.5rem) * -1);
  padding: 0 var(--hero-gap, 1.5rem) 1rem var(--hero-gap, 1.5rem);
}

/* Custom Scrollbar */
.hero-cards-container::-webkit-scrollbar {
  height: 8px;
}

.hero-cards-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.hero-cards-container::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
}

.hero-cards-container::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 74, 74, 0.8);
}

/* Individual Card */
.hero-card {
  flex: 0 0 var(--hero-card-width);
  height: var(--hero-card-height);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74, 74, 74, 0.3);
}

/* Card Image Section */
.hero-card-image {
  width: 100%;
  height: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.hero-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.hero-card:hover .hero-card-image img {
  transform: scale(1.08);
}

/* Card Content Section */
.hero-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  overflow: hidden;
}

.hero-card-title {
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
}

.hero-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

.hero-card-title a:hover {
  color: var(--color-accent);
}

.hero-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card-date,
.hero-card-author {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hero-card-date i,
.hero-card-author i {
  font-size: 0.75rem;
  color: var(--color-accent);
}

/* ========================================
   HOME PAGE - FEATURED ARTICLES SECTION
   ======================================== */

.featured-articles-section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: var(--radius-full);
}

.view-all-button {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================
   HOME PAGE - SERVICES SECTION
   ======================================== */

.services-section {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.services-slider {
  position: relative;
  overflow: hidden;
}

.services-slides {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  transition: transform 0.4s ease-out;
  scrollbar-width: none;
}

.services-slides::-webkit-scrollbar {
  display: none;
}

.service-slide {
  flex: 0 0 calc((100% - 4rem) / 3);
  min-width: 300px;
}

.service-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 74, 74, 0.3);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 24px rgba(74, 74, 74, 0.15);
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.service-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.service-title a:hover {
  color: var(--color-accent);
}

.service-description {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.service-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: color var(--transition-normal);
  align-self: flex-start;
}

.service-link:hover {
  text-decoration: underline;
}

/* Services Navigation */
.services-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  z-index: 5;
  font-size: 1rem;
}

.services-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-accent);
}

.services-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.services-nav-prev {
  left: 1rem;
}

.services-nav-next {
  right: 1rem;
}

/* ========================================
   HOME PAGE - CTA SECTION
   ======================================== */

.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(74, 74, 74, 0.08), rgba(44, 44, 44, 0.05));
  border: 1px solid rgba(74, 74, 74, 0.1);
  border-radius: var(--radius-lg);
  margin: 4rem 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   HOME PAGE - CATEGORIES SECTION
   ======================================== */

.categories-section {
  padding: 4rem 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  display: block;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 74, 74, 0.3);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 16px rgba(74, 74, 74, 0.1);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-header h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin: 0;
  color: var(--color-text);
}

.category-count {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: rgba(74, 74, 74, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

.category-description {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   HOME PAGE RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .hero-section {
    height: 500px;
  }

  .hero-content {
    padding: 2.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .service-slide {
    flex: 0 0 calc((100% - 2rem) / 2);
    min-width: 250px;
  }

  .hero-nav {
    width: 45px;
    height: 45px;
  }

  .hero-nav-prev {
    left: 1rem;
  }

  .hero-nav-next {
    right: 1rem;
  }
}

@media (max-width: 768px) {
  /* Hero Section Responsive */
  .hero-section[data-hero-card-size="small"] {
    --hero-card-width: 240px;
    --hero-card-height: 310px;
  }

  .hero-section[data-hero-card-size="medium"] {
    --hero-card-width: 280px;
    --hero-card-height: 360px;
  }

  .hero-section[data-hero-card-size="large"] {
    --hero-card-width: 350px;
    --hero-card-height: 420px;
  }

  .hero-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
  }

  .hero-section-title {
    font-size: 1.5rem;
  }

  .hero-section-subtitle {
    font-size: 0.9rem;
  }

  .hero-cards-container {
    gap: 1rem;
    padding: 0 1rem 1rem 1rem;
    margin: 0 -1rem;
  }

  .hero-card-content {
    padding: 1rem;
    gap: 0.5rem;
  }

  .hero-card-title {
    font-size: 1rem;
  }

  .hero-card-excerpt {
    font-size: 0.85rem;
  }

  .hero-card-meta {
    font-size: 0.75rem;
    gap: 0.75rem;
  }

  /* Header Button Responsive */
  .theme-toggle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .signup-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .user-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .service-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .services-nav {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .cta-section {
    padding: 2.5rem 0;
    margin: 3rem 0;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .cta-actions {
    gap: 0.75rem;
  }

  .cta-actions .btn {
    flex: 1;
    min-width: 100%;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 599px) {
  /* Hero Section Mobile Responsive */
  .hero-section[data-hero-card-size="small"] {
    --hero-card-width: 200px;
    --hero-card-height: 280px;
  }

  .hero-section[data-hero-card-size="medium"] {
    --hero-card-width: 220px;
    --hero-card-height: 300px;
  }

  .hero-section[data-hero-card-size="large"] {
    --hero-card-width: 260px;
    --hero-card-height: 340px;
  }

  .hero-section {
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
  }

  .hero-section-header {
    margin-bottom: 1rem;
  }

  .hero-section-title {
    font-size: 1.25rem;
  }

  .hero-section-subtitle {
    font-size: 0.85rem;
    display: none;
  }

  .hero-cards-container {
    gap: 0.75rem;
    padding: 0 0.75rem 0.75rem 0.75rem;
    margin: 0 -0.75rem;
  }

  .hero-card {
    border-radius: var(--radius-md);
  }

  .hero-card-content {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .hero-card-title {
    font-size: 0.95rem;
  }

  .hero-card-excerpt {
    font-size: 0.8rem;
    -webkit-line-clamp: 1;
  }

  .hero-card-meta {
    font-size: 0.7rem;
    gap: 0.5rem;
  }

  /* Header Button Mobile */
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .signup-link {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }

  .user-button {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }

  .user-button i {
    font-size: 1rem;
  }

  .dropdown-menu {
    min-width: 160px;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .featured-articles-section {
    padding: 2rem 0;
  }

  .view-all-button {
    margin-top: 1.5rem;
  }

  .services-section {
    padding: 2rem 0;
  }

  .services-nav {
    width: 36px;
    height: 36px;
  }

  .cta-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .cta-content {
    padding: 0;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .cta-section p {
    font-size: 1rem;
  }
}

/* ========================================
   COMMENTS SECTION
   ======================================== */

.comments-section {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.comment-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.comment-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(74, 74, 74, 0.2);
}

.comment-wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.comment-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-header {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.comment-author {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.comment-author a {
  color: var(--color-text);
  text-decoration: none;
}

.comment-author a:hover {
  color: var(--color-accent);
}

.comment-metadata {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.comment-date a,
.comment-edit a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.comment-date a:hover,
.comment-edit a:hover {
  color: var(--color-accent);
}

.comment-awaiting-moderation {
  padding: 0.75rem 1rem;
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid #ffc107;
  border-radius: 3px;
  color: #ffc107;
  margin: 0;
  font-size: 0.9rem;
}

.comment-text {
  color: var(--color-muted);
  line-height: 1.8;
}

.comment-text p {
  margin: 0 0 0.5rem 0;
}

.comment-text p:last-child {
  margin-bottom: 0;
}

.comment-reply-link {
  margin-top: 1rem;
}

.comment-reply-link a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(74, 74, 74, 0.1);
  border: 1px solid rgba(74, 74, 74, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-normal);
}

.comment-reply-link a:hover {
  background: rgba(74, 74, 74, 0.2);
  border-color: rgba(74, 74, 74, 0.3);
}

/* Nested comments */
.comment-item ul {
  list-style: none;
  margin: 1.5rem 0 0 0;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(74, 74, 74, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Comment form styles */
.comment-form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-form h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
}

.comment-form p {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.comment-form label {
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.comment-form .required {
  color: #ff6b6b;
  margin-left: 0.25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: inherit;
  font-size: inherit;
  transition: all var(--transition-normal);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.1);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form #submit {
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #4a4a4a, #2c2c2c);
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-normal);
  width: fit-content;
}

.comment-form #submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.comment-navigation {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  justify-content: space-between;
}

.comment-navigation a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: color var(--transition-normal);
}

.comment-navigation a:hover {
  text-decoration: underline;
}

.no-comments {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .comment-wrapper {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .comment-avatar {
    width: 40px;
    height: 40px;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea {
    font-size: 16px;
  }

  .comment-navigation {
    flex-direction: column;
    gap: 1rem;
  }
}
