/* Variables */
:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #12151a;
  --border: #1f242d;
  --text: #e8ecf2;
  --muted: #9aa3b5;
  --accent: #8b74ff;
  --accent-strong: #5b9dff;
  --radius: 12px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(91, 157, 255, 0.05), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(139, 116, 255, 0.06), transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent-strong);
}

/* Override for read-more button to keep dark text on hover */
a.read-more:hover {
  color: #050608;
}

.container {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

.muted {
  color: var(--muted);
}

.page {
  padding-bottom: 60px;
}

/* Header */
.site-header {
  background: rgba(12, 15, 20, 0.7);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}

.brand a {
  font-weight: 700;
  font-size: 20px;
}

.tagline {
  color: var(--muted);
  margin: 6px 0 0;
}

.header-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Dropdown categories menu */
.header-categories-dropdown {
  position: relative;
  display: inline-block;
}

.category-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(31, 36, 45, 0.3);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.category-trigger:hover {
  background: rgba(139, 116, 255, 0.1);
  border-color: rgba(139, 116, 255, 0.3);
}

.category-trigger.active {
  background: rgba(139, 116, 255, 0.15);
  border-color: rgba(139, 116, 255, 0.4);
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.header-categories-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.category-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 180px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
  padding: 8px 0;
  backdrop-filter: blur(10px);
}

.header-categories-dropdown:hover .category-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.category-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  font-weight: 500;
}

.category-dropdown-item:hover {
  background: rgba(139, 116, 255, 0.1);
  color: var(--accent-strong);
}

.category-dropdown-item.active {
  background: rgba(139, 116, 255, 0.15);
  color: var(--accent-strong);
  font-weight: 600;
}

.header-link.active {
  color: var(--accent-strong);
  font-weight: 600;
}

.header-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.header-link:hover {
  color: var(--accent-strong);
}

/* Buttons in header */
.meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav {
  margin-right: 0;
  padding-right: 0;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  color: #ffffff !important;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
  box-shadow: none;
  /* Background color is set via inline style, don't override */
}

.btn-header:hover {
  transform: translateY(-2px);
  filter: brightness(0.9);
  color: #ffffff !important;
}

.button-icon {
  display: inline-block;
  margin: 0 4px;
  font-size: 1em;
  line-height: 1;
}

.button-text {
  display: inline-block;
}

/* Footer */
.site-footer {
  background: rgba(12, 15, 20, 0.7);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-link {
  color: var(--muted);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--accent-strong);
}

/* Layout */
.hero {
  padding: 48px 0 8px;
}

.hero-content .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-size: 12px;
}

.hero-content h1 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 8px 0 10px;
}

.hero-content h1 a {
  color: #5b9dff;
  text-decoration: underline;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  text-decoration-color: rgba(91, 157, 255, 0.5);
}

.hero-content h1 a:hover {
  color: #8b74ff;
  text-decoration-color: rgba(139, 116, 255, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0 16px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  color: #ffffff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.btn-hero:hover {
  transform: translateY(-2px);
  filter: brightness(1.1) saturate(1.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* 404 Page */
.page-404 {
  padding: 120px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-404::before {
  content: "404";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(200px, 40vw, 400px);
  font-weight: 900;
  color: rgba(139, 116, 255, 0.05);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.page-404-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}

.page-404-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 24px;
  display: inline-block;
  padding: 8px 16px;
  background: rgba(139, 116, 255, 0.1);
  border-radius: 999px;
  border: 1px solid rgba(139, 116, 255, 0.2);
}

.page-404-title {
  font-size: clamp(42px, 6vw, 72px);
  margin: 0 0 24px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text), var(--accent-strong));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-404-text {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.page-404-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.page-404 .btn {
  padding: 18px 36px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  box-shadow: 0 15px 40px rgba(139, 116, 255, 0.4);
  transition: all 0.2s ease;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
  text-stroke: 0.5px rgba(255, 255, 255, 0.3);
}

.page-404 .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(139, 116, 255, 0.5);
}

@media (max-width: 720px) {
  .page-404 {
    padding: 80px 0;
    min-height: 60vh;
  }
  
  .page-404::before {
    font-size: clamp(150px, 50vw, 250px);
  }
  
  .page-404-inner {
    padding: 20px;
  }
  
  .page-404-text {
    font-size: 16px;
    margin-bottom: 36px;
  }
  
  .page-404 .btn {
    padding: 16px 32px;
    font-size: 16px;
    min-width: 180px;
  }
}

/* Posts */
.post-list {
  display: grid;
  gap: 20px;
  padding: 24px 0 40px;
}

.post-card {
  background: linear-gradient(145deg, rgba(23, 26, 33, 0.9), rgba(14, 17, 22, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 116, 255, 0.4);
}

.post-card-image-link {
  display: block;
  width: calc(100% + 40px);
  margin: -20px -20px 20px -20px;
  overflow: hidden;
  text-decoration: none;
  max-width: 100%;
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.post-card h2 {
  margin: 14px 0 10px;
}

.excerpt {
  color: var(--muted);
  line-height: 1.6;
}

.post-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.post {
  padding: 30px 0 16px;
}

.post h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 12px 0 16px;
}

/* Article buttons */
.article-buttons {
  text-align: center;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.article-buttons-top {
  margin: 20px 0 24px;
}

.article-buttons-bottom {
  margin: 32px 0 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.btn-article {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.1);
  /* Background color is set via inline style, don't override */
}

/* Copyable text block */
.copyable-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  user-select: none;
  border: none;
  background: linear-gradient(135deg, var(--copy-color, #ef4444), var(--copy-color, #ef4444)) !important;
}

.copyable-block:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.1) saturate(1.2);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.copyable-block:active {
  transform: translateY(-1px) scale(0.98);
}

.copyable-block .copy-text {
  display: inline-block;
}

.copyable-block .copy-icon {
  display: inline-block;
  margin-left: 8px;
  font-size: 1.1em;
  opacity: 0.8;
}

.btn-article:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.1) saturate(1.2);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.button-icon {
  display: inline-block;
  margin: 0 6px;
  font-size: 1.1em;
  line-height: 1;
  vertical-align: middle;
}

.button-text {
  display: inline-block;
  vertical-align: middle;
}

.hero-image {
  max-width: min(800px, 100%);
  max-height: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 10px auto 20px;
  display: block;
  border: 1px solid var(--border);
}

.post-body {
  line-height: 1.8;
  color: #dce2ec;
  font-size: 18px;
}

.post-body p {
  margin: 0 0 16px;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  color: var(--text);
  margin: 24px 0 16px;
  font-weight: 700;
  line-height: 1.3;
}

.post-body h1 {
  font-size: 2em;
}

.post-body h2 {
  font-size: 1.75em;
}

.post-body h3 {
  font-size: 1.5em;
}

.post-body h4 {
  font-size: 1.25em;
}

.post-body ul,
.post-body ol {
  margin: 16px 0;
  padding-left: 30px;
}

.post-body li {
  margin: 8px 0;
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
}

.post-body a:hover {
  color: var(--accent-strong);
}

.post-body strong,
.post-body b {
  font-weight: 700;
  color: var(--text);
}

.post-body em,
.post-body i {
  font-style: italic;
}

.post-body code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.post-body pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 16px 0;
  color: var(--muted);
  font-style: italic;
}

.post-body img {
  max-width: min(800px, 100%);
  max-height: 600px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 16px auto;
  display: block;
}

.post-body table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  overflow-x: auto;
  display: block;
}

.post-body table th,
.post-body table td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-body table th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

.author-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.author-link:hover {
  color: var(--accent-strong);
}

/* Similar Posts */
.similar-posts {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.similar-posts h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 24px;
  color: var(--text);
}

.similar-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.similar-post-card {
  background: linear-gradient(145deg, rgba(23, 26, 33, 0.9), rgba(14, 17, 22, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}

.similar-post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 116, 255, 0.4);
}

.similar-post-image-link {
  display: block;
  width: 100%;
  overflow: hidden;
  text-decoration: none;
}

.similar-post-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.similar-post-card:hover .similar-post-image {
  transform: scale(1.05);
}

.similar-post-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.similar-post-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.4;
}

.similar-post-content h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.similar-post-content h3 a:hover {
  color: var(--accent-strong);
}

.similar-post-excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.similar-post-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* Authors */
.team-list {
  padding: 24px 0 40px;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.author-card {
  background: linear-gradient(145deg, rgba(23, 26, 33, 0.9), rgba(14, 17, 22, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.author-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 116, 255, 0.4);
}

.author-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.author-info h2 a {
  color: var(--text);
  text-decoration: none;
}

.author-info h2 a:hover {
  color: var(--accent-strong);
}

.author-email {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.author-email a {
  color: var(--accent);
}

.author-stats {
  margin: 12px 0 0;
}

.author-actions {
  margin-top: auto;
}

.author-avatar {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.author-avatar a {
  display: inline-block;
}

.avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.author-card:hover .avatar-img {
  transform: scale(1.05);
  border-color: var(--accent);
}

.author-avatar-large {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.avatar-img-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 8px 25px rgba(139, 116, 255, 0.3);
}

/* Forms */
.comments {
  padding: 12px 0 20px;
}

.comments h2 {
  margin-bottom: 12px;
}

.comment-list {
  display: grid;
  gap: 14px;
}

.comment {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comment-form {
  margin-top: 20px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.input,
.textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
}

.input:focus,
.textarea:focus {
  outline: 2px solid rgba(139, 116, 255, 0.4);
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
}

.comment-form small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.form-actions .btn {
  margin: 0;
}

/* Components */
.actions {
  margin: 20px 0;
}

.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #050608;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 10px 30px rgba(139, 116, 255, 0.35);
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
  text-stroke: 0.5px rgba(255, 255, 255, 0.3);
}

/* Override .btn background for custom colored buttons */
.btn-header,
.btn-article,
.btn-hero {
  background: unset !important;
}

.comment-form .btn {
  margin: 16px 0;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 40px rgba(139, 116, 255, 0.45);
}

.like-btn {
  background: linear-gradient(135deg, #ff6a9f, #ffb86c);
}

.read-more {
  display: inline-flex;
  font-weight: 600;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #050608;
  border-radius: 8px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 8px 25px rgba(139, 116, 255, 0.3);
  flex: 0 0 auto;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
  text-stroke: 0.5px rgba(255, 255, 255, 0.3);
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(139, 116, 255, 0.4);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-icon:hover {
  background: rgba(139, 116, 255, 0.1);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.like-btn-card.liked {
  background: linear-gradient(135deg, #ff6a9f, #ffb86c);
  border-color: #ff6a9f;
  color: #050608;
}

.lazy-loading-indicator {
  margin: 40px 0 20px;
  text-align: center;
  padding: 20px;
}

.lazy-loading-indicator p {
  margin: 0;
  color: var(--muted);
}

.pagination {
  margin: 40px 0 20px;
  display: flex;
  justify-content: center;
}

.pagination-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-link {
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.pagination-link:hover {
  background: rgba(139, 116, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.pagination-link-disabled {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  opacity: 0.5;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
}

.pagination-info {
  padding: 10px 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 24px;
  padding-top: 16px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--accent);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

.breadcrumb-separator {
  color: var(--muted);
  margin: 0 4px;
  user-select: none;
}

/* Filters */
.filters-section {
  margin: 32px 0 24px;
  padding: 20px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.filters-container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-label {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  margin: 0;
}

.filter-select {
  padding: 10px 16px;
  padding-right: 40px;
  background: rgba(12, 15, 20, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  min-width: 180px;
}

.filter-select:hover {
  border-color: var(--accent);
  background-color: rgba(139, 116, 255, 0.08);
  box-shadow: 0 4px 12px rgba(139, 116, 255, 0.15);
  transform: translateY(-1px);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(139, 116, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(139, 116, 255, 0.2), 0 4px 12px rgba(139, 116, 255, 0.15);
}

.filter-select option {
  background: var(--panel);
  color: var(--text);
  padding: 8px;
}

/* Responsive */
@media (max-width: 720px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  .container {
    padding: 0 16px;
    max-width: 100%;
    width: 100%;
  }
  
  .site-header .container,
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
  }
  
  .header-nav {
    margin-top: 8px;
    width: 100%;
  }
  
  .authors-grid {
    grid-template-columns: 1fr;
  }
  
  .pagination-links {
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .pagination-link,
  .pagination-link-disabled {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .pagination-info {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  /* Fix post card image overflow */
  .post-card-image-link {
    width: 100% !important;
    margin: -16px -16px 16px -16px !important;
  }
  
  /* Article buttons mobile */
  .article-buttons {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    margin: 16px 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .article-buttons-top {
    margin: 16px 0 20px !important;
  }
  
  .article-buttons-bottom {
    margin: 24px 0 20px !important;
    padding: 20px 0 !important;
  }
  
  .btn-article,
  .copyable-block {
    padding: 14px 24px !important;
    font-size: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure all content fits */
  .post-body img,
  .post-body video,
  .post-body iframe {
    max-width: 100% !important;
    max-height: 400px !important;
    height: auto !important;
    object-fit: contain !important;
  }
  
  .hero-image {
    max-width: 100% !important;
    max-height: 400px !important;
    height: auto !important;
    object-fit: contain !important;
  }
  
  .post-body table {
    display: block !important;
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .post-body pre,
  .post-body code {
    max-width: 100% !important;
    overflow-x: auto !important;
    word-wrap: break-word !important;
  }
}


