/*
Theme Name: Community Nodes
Theme URI: https://communitynodes.com
Description: Community Nodes Custom Theme
Author: Community Nodes
Author URI: https://communitynodes.com
Version: 1.0
Text Domain: c12s
*/

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
  /* Colors - n8n Brand Palette */
  --color-primary: #0E0918;
  --color-secondary: #F7F6FA;
  --color-accent: #EE4F27;
  --color-text: #0E0918;
  --color-text-light: #464646;
  --color-white: #FFFFFF;
  --color-gray: #464646;
  --color-gray-light: #F7F6FA;
  --color-border: rgba(14, 9, 24, 0.1);

  /* n8n Extended Palette */
  --color-pink: #EA4B71;
  --color-orange-secondary: #FF9B26;
  --color-purple: #6B21EF;
  --color-green: #35A670;
  --color-blue: #5780E6;
  --color-deep-navy: #1F192A;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --spacing-xl: 6rem;

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ==========================================================================
   Font Faces
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-size: 1.6rem;
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
  text-align: center;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 var(--spacing-sm);
}

h1 {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 600;
}

h4 {
  font-size: 1.8rem;
  font-weight: 600;
}

h5 {
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
}

h6 {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-light);
}

p {
  font-family: var(--font-primary);
  font-size: 1.7rem;
  line-height: 1.75;
  margin: 0 0 var(--spacing-md);
  color: var(--color-text-light);
}

p:last-child {
  margin-bottom: 0;
}

article p a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

article p a:hover {
  text-decoration-thickness: 2px;
}

/* Lead/intro text */
.lead,
.intro {
  font-size: 2rem;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 400;
}

/* Small text */
small,
.small {
  font-size: 1.4rem;
  line-height: 1.5;
}

/* Code styling */
code,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background: var(--color-gray-light);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

pre {
  background: var(--color-deep-navy);
  color: var(--color-white);
  padding: var(--spacing-md);
  border-radius: 8px;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

/* Blockquote */
blockquote {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text);
  border-left: 4px solid var(--color-accent);
  padding-left: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

blockquote cite {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 500;
  margin-top: var(--spacing-sm);
  color: var(--color-text-light);
}

/* ==========================================================================
   Layout - Container & Grid
   ========================================================================== */

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

.container-fluid {
  width: 100%;
  padding: 0 var(--container-padding);
}

.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-sidebar {
  grid-template-columns: 2fr 1fr;
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-between {
  justify-content: space-between;
}

.flex-column {
  flex-direction: column;
}

.gap-sm {
  gap: var(--spacing-sm);
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

/* ==========================================================================
   Spacing Utilities
   ========================================================================== */

.section {
  padding: var(--spacing-xl) 0;
}

.section-sm {
  padding: var(--spacing-lg) 0;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.6rem;
  padding: 1rem 1.8rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

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

.btn-secondary {
  background-color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header {
  position: relative;
  z-index: 100;
  padding: 16px 0;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  margin-right: auto;
}

.site-logo-icon {
  width: 36px;
  height: auto;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fafafa;
}

@media (max-width: 480px) {
  .site-logo-text {
    display: none;
  }
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 8px;
  align-items: center;
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: #a1a1aa;
  padding: 4px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: orangered !important;
  background: #27272a;
}

.main-nav .current-menu-item a {
  color: #fafafa;
  background: #27272a;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-logo {
    margin-right: auto;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 8px;
    gap: 0;
  }

  .menu-toggle span {
    margin: 3px 0;
  }

  .menu-toggle:hover {
    background: #27272a;
  }

  .header-categories-dropdown,
  .header-current-category {
    display: none;
  }

  .main-nav {
    display: none;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid #27272a;
    margin-top: 4px;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav a {
    padding: 12px 16px;
  }

  /* Hide Categories menu item on mobile */
  .main-nav li.menu-item-categories,
  .main-nav li:has(a[href*="categories"]),
  .main-nav li:has(a[href*="category"]) {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-logo-text {
    display: none;
  }

  .site-logo-icon {
    width: 32px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  background: var(--color-secondary);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.hero h1 {
  color: var(--color-primary);
  font-size: 8rem;
  margin: 0;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 4.8rem;
  }
}

/* ==========================================================================
   Blog Posts
   ========================================================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.post-card {
  border: 4px double rgba(14, 9, 24, 0.2);
  overflow: hidden;
}

.post-card img {
  width: 100%;
  height: auto;
  display: block;
}

.post-card h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
}

.post-card-content {
  padding: var(--spacing-md);
}

.post-meta {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
}

.post-meta a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Single post */
.post-content {
  max-width: 800px;
}

.post-content h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
}

.post-content h2 {
  font-size: 2.3rem;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.post-content h3 {
  font-weight: 600;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.post-content ul,
.post-content ol {
  line-height: 1.6;
  padding-left: 2rem;
  margin-bottom: var(--spacing-sm);
}

.post-content ul {
  list-style: square;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: var(--spacing-sm);
}

.post-content blockquote {
  position: relative;
  margin: var(--spacing-lg) 0;
  padding-bottom: var(--spacing-md);
  font-style: italic;
  border-bottom: 4px double rgba(14, 9, 24, 0.2);
}

.post-content blockquote cite {
  display: block;
  text-align: right;
  margin-top: var(--spacing-sm);
  font-style: normal;
  font-size: 1.4rem;
}

/* Featured image */
.featured-image {
  margin-bottom: var(--spacing-lg);
}

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 4px double rgba(14, 9, 24, 0.2);
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */

aside {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.widget {
  padding: var(--spacing-md);
  border: 4px double rgba(14, 9, 24, 0.2);
}

.widget ul {
  font-size: 1.4rem;
  line-height: 1.4;
}

.widget li {
  margin-top: var(--spacing-sm);
}

.widget-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

/* Subscribe widget */
.subscribe-box {
  padding: var(--spacing-md);
  border: 4px double var(--color-accent);
}

/* Hello/About widget */
.hello-box {
  background: rgba(238, 79, 39, 0.1);
  padding: var(--spacing-md);
}

.hello-box img {
  width: 100%;
}

.hello-box p {
  font-size: 1.4rem;
  line-height: 1.4;
  padding: var(--spacing-md) 0;
}

/* Social widget */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

.social-links a {
  font-size: 2.4rem;
  color: rgba(14, 9, 24, 0.5);
  transition: color var(--transition-fast);
}

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

/* Related Nodes widget */
.related-nodes-widget .widget-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.related-nodes-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.related-node-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.related-node-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.related-node-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-node-icon:has(.fallback-icon) {
  background: #27272a;
  border-radius: 8px;
}

.related-node-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.related-node-icon .fallback-icon {
  width: 22px;
  height: 22px;
  filter: grayscale(1);
  opacity: 0.6;
}

.related-node-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.related-node-name {
  color: #fafafa;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-node-downloads {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #71717a;
  font-size: 0.75rem;
}

.related-node-downloads svg {
  width: 12px;
  height: 12px;
}

.related-nodes-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related-nodes-title .node-filter-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
}

/* Weekly Top Nodes */
.weekly-favorites-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.weekly-favorites-title .node-filter-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
}

.weekly-top-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* Sidebar Carousel */
.node-sidebar-related {
  padding-bottom: 1rem;
  position: relative;
}

.node-sidebar-related .related-nodes-title {
  padding-right: 60px;
}

.node-sidebar-related .sidebar-carousel-nav {
  position: absolute;
  top: 20px;
  right: 20px;
  margin-top: 0;
  gap: 0.25rem;
  z-index: 10;
}

.node-sidebar-related .sidebar-carousel-dots {
  display: none;
}

.node-sidebar-related .sidebar-carousel-btn {
  width: 22px;
  height: 22px;
  pointer-events: auto;
}

.node-sidebar-related .sidebar-carousel-btn svg {
  width: 12px;
  height: 12px;
}

.sidebar-carousel {
  position: relative;
  overflow: hidden;
}

.sidebar-carousel-track {
  display: flex;
  flex-direction: row;
  transition: transform 0.4s ease;
}

.sidebar-carousel-page {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex-shrink: 0;
  width: 100%;
}

.sidebar-carousel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-carousel-card:hover {
  border-color: #3f3f46;
  background: #1f1f23;
}

.sidebar-carousel-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.sidebar-carousel-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.sidebar-carousel-icon svg {
  width: 32px;
  height: 32px;
  color: #52525b;
}

.sidebar-carousel-icon:has(.fallback-icon) {
  background: #27272a;
}

.sidebar-carousel-icon .fallback-icon {
  width: 28px;
  height: 28px;
  filter: grayscale(1);
  opacity: 0.6;
}

/* Video badge in sidebar carousel */
.sidebar-carousel-icon {
  position: relative;
}

.sidebar-carousel-icon .tutorial-video-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border: 2px solid #18181b;
}

.sidebar-carousel-icon .tutorial-video-badge svg {
  width: 8px;
  height: 8px;
}

.sidebar-carousel-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.sidebar-carousel-name {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Verified Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  flex-shrink: 0;
  cursor: help;
}

.verified-badge svg {
  width: 16px;
  height: 16px;
}

.sidebar-carousel-downloads {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1rem;
  color: #a1a1aa;
}

.sidebar-carousel-downloads svg {
  opacity: 0.7;
}

.sidebar-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.sidebar-carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #a1a1aa;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fafafa;
}

.sidebar-carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.sidebar-carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.sidebar-carousel-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.sidebar-carousel-dot.active {
  background: var(--color-accent);
  width: 20px;
  border-radius: 4px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  width: 100%;
  padding: var(--spacing-sm);
  font-family: var(--font-primary);
  font-size: 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

button[type="submit"],
input[type="submit"] {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

button[type="submit"]:hover,
input[type="submit"]:hover {
  background-color: var(--color-accent);
}

/* Search form */
.search-form {
  display: flex;
}

.search-form input[type="search"] {
  flex: 1;
  border-right: none;
}

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter-section {
  background: var(--color-secondary);
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.newsletter-section h3 {
  display: inline-block;
  color: var(--color-primary);
  margin: 0 0 var(--spacing-md);
}

.newsletter-form {
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

/* ==========================================================================
   Quote Box
   ========================================================================== */

.quote-box {
  position: relative;
  padding: var(--spacing-xs);
  border: 2px solid var(--color-gray);
}

.quote-box .quoter {
  text-align: right;
  margin-top: var(--spacing-sm);
}

.quote-box-inner {
  border: 2px solid var(--color-gray);
  padding: var(--spacing-lg);
}

/* ==========================================================================
   Author Box
   ========================================================================== */

.author-box {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-lg);
}

.author-box .avatar img {
  border-radius: 50%;
}

@media (max-width: 768px) {
  .author-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.author-info h5 {
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 1.6rem;
  margin-bottom: var(--spacing-sm);
}

.author-info p {
  font-size: 1.4rem;
  line-height: 1.5;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-section {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-md);
  border: 4px double rgba(14, 9, 24, 0.2);
}

.comment {
  margin-bottom: var(--spacing-lg);
}

.comment + .comment {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

.comment-author h5 {
  text-transform: capitalize;
  margin-bottom: var(--spacing-sm);
  font-size: 1.6rem;
}

.comment-form input,
.comment-form textarea {
  margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--color-gray-light);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

footer p {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
}

footer a {
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0 var(--spacing-sm);
}

/* Footer Disclaimer */
.footer-disclaimer {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  font-size: 1.2rem;
  color: var(--color-gray);
  opacity: 0.7;
  font-family: var(--font-primary);
  font-weight: 400;
}

.footer-disclaimer a {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0;
  text-decoration: underline;
  color: var(--color-gray);
}

.footer-disclaimer a:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-lg);
}

.pagination .page-numbers {
  padding: var(--spacing-xs) var(--spacing-sm);
  min-width: 3rem;
  text-align: center;
  border: 1px solid var(--color-primary);
  font-size: 1.4rem;
  font-weight: 500;
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.hidden {
  display: none;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */

.related-posts {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  border: 4px double rgba(14, 9, 24, 0.2);
}

.related-posts h4 {
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-size: 1.4rem;
}

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

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

/* ==========================================================================
   Load More
   ========================================================================== */

.loadmore {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.loadmore a {
  cursor: pointer;
}

/* ==========================================================================
   Archive Pages
   ========================================================================== */

.archive-header {
  margin-bottom: var(--spacing-lg);
}

.archive-header h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.4rem;
  border: 4px double var(--color-primary);
  padding: var(--spacing-sm) var(--spacing-lg);
  display: inline-block;
}

/* ==========================================================================
   Video Embed
   ========================================================================== */

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Writers/Authors Page
   ========================================================================== */

.writers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-xl) 0;
}

.writer-card {
  background: var(--color-white);
  padding: var(--spacing-md);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(14, 9, 24, 0.1);
}

.writer-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  float: left;
  margin-right: var(--spacing-md);
}

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

.writer-card h4 {
  font-size: 2rem;
  margin-bottom: var(--spacing-xs);
}

.writer-card p {
  font-size: 1.4rem;
  clear: both;
}

.writer-card-links {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.writer-card-links .btn {
  font-size: 1.4rem;
  padding: var(--spacing-xs) var(--spacing-sm);
}

/* ==========================================================================
   Front Page - n8n Inspired Design
   ========================================================================== */

/* Hero Section */
.fp-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}

.fp-hero .container {
  position: relative;
  z-index: 10;
}

.fp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.fp-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--color-primary) 0%,
    var(--color-deep-navy) 50%,
    rgba(14, 9, 24, 0.95) 100%
  );
}

.fp-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}

.fp-hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--color-accent);
  top: -200px;
  right: -100px;
  opacity: 0.3;
}

.fp-hero-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--color-purple);
  bottom: -100px;
  left: -50px;
  opacity: 0.2;
}

.fp-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.fp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(238, 79, 39, 0.15);
  border: 1px solid rgba(238, 79, 39, 0.3);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 100px;
  margin-bottom: var(--spacing-md);
}

.fp-hero-badge span {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fp-hero-title {
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.fp-hero-title .text-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-pink) 50%, var(--color-orange-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fp-hero-subtitle {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.6;
}

.fp-hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Button Variants for Front Page */
.btn-lg {
  padding: 1.4rem 2.8rem;
  font-size: 1.7rem;
}

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

/* Stats Section */
.fp-stats {
  background: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-lg) 0;
}

.fp-stats-grid {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.fp-stat-item {
  text-align: center;
}

.fp-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.fp-stat-label {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Section Labels */
.fp-section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--spacing-sm);
}

/* Section Headers */
.fp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.fp-section-header.text-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fp-section-header h2 {
  margin-bottom: 0;
}

/* About Section */
.fp-about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

@media (max-width: 768px) {
  .fp-about-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

.fp-about-image-wrapper {
  position: relative;
}

.fp-about-image-wrapper img {
  border-radius: 16px;
  width: 100%;
}

.fp-about-image-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent), var(--color-purple));
  border-radius: 16px;
  z-index: -1;
  transform: translate(20px, 20px);
  opacity: 0.3;
}

.fp-about-text {
  margin-bottom: var(--spacing-md);
}

.fp-about-text p {
  font-size: 1.8rem;
  line-height: 1.8;
}

/* Articles Grid */
.fp-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: 992px) {
  .fp-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.fp-article-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(14, 9, 24, 0.08);
  transition: all var(--transition-normal);
}

.fp-article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(14, 9, 24, 0.15);
}

.fp-article-card:hover .fp-article-card-image img {
  transform: scale(1.05);
}

.fp-article-card:hover .fp-article-card-overlay {
  opacity: 1;
}

.fp-article-card:hover .fp-article-read-more {
  opacity: 1;
  transform: translateX(0);
}

.fp-article-card-link {
  display: block;
  color: inherit;
}

.fp-article-card-link:hover {
  color: inherit;
}

.fp-article-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.fp-article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.fp-article-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-secondary) 100%);
}

.fp-article-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 9, 24, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.fp-article-card-content {
  padding: var(--spacing-md);
}

.fp-article-card-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.fp-article-category {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
}

.fp-article-date {
  font-size: 1.3rem;
  color: var(--color-text-light);
}

.fp-article-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-article-excerpt {
  font-size: 1.5rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-border);
}

.fp-article-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.fp-article-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.fp-article-author span {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-text);
}

.fp-article-read-more {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
}

/* Featured Article Card */
.fp-article-card-featured {
  grid-column: 1 / -1;
}

.fp-article-card-featured .fp-article-card-link {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}

@media (max-width: 992px) {
  .fp-article-card-featured .fp-article-card-link {
    grid-template-columns: 1fr;
  }
}

.fp-article-card-featured .fp-article-card-image {
  aspect-ratio: 16/9;
}

.fp-article-card-featured .fp-article-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-lg);
}

.fp-article-card-featured .fp-article-title {
  font-size: 2.4rem;
  -webkit-line-clamp: 3;
}

/* Featured Posts List */
.fp-featured-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.fp-featured-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.fp-featured-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 30px rgba(238, 79, 39, 0.1);
}

.fp-featured-item:hover .fp-featured-number {
  color: var(--color-accent);
}

.fp-featured-item:hover .fp-featured-content h3 {
  color: var(--color-accent);
}

.fp-featured-item:hover .fp-featured-arrow {
  color: var(--color-accent);
  transform: translate(4px, -4px);
}

.fp-featured-link {
  display: grid;
  grid-template-columns: auto 100px 1fr auto;
  gap: var(--spacing-md);
  align-items: center;
  padding: var(--spacing-md);
  color: inherit;
}

.fp-featured-link:hover {
  color: inherit;
}

@media (max-width: 768px) {
  .fp-featured-link {
    grid-template-columns: auto 1fr auto;
  }
}

.fp-featured-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-gray-light);
  line-height: 1;
  transition: color var(--transition-fast);
}

.fp-featured-image {
  width: 100px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.fp-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .fp-featured-image {
    display: none;
  }
}

.fp-featured-content {
  flex: 1;
}

.fp-featured-content h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-xs);
  transition: color var(--transition-fast);
}

.fp-featured-content p {
  font-size: 1.4rem;
  color: var(--color-text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-featured-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.fp-featured-arrow {
  color: var(--color-gray-light);
  transition: all var(--transition-fast);
}

/* Quote Section */
.fp-quote {
  background: var(--color-secondary);
}

.fp-quote-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.fp-quote-icon {
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
}

.fp-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-primary);
  margin: 0 0 var(--spacing-md);
  border: none;
  padding: 0;
}

.fp-quote-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fp-quote-author-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}

.fp-quote-author-title {
  font-size: 1.4rem;
  color: var(--color-text-light);
}

/* Categories Section */
.fp-categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: 992px) {
  .fp-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .fp-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fp-category-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--spacing-md);
  text-align: center;
  transition: all var(--transition-normal);
  color: inherit;
}

.fp-category-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(238, 79, 39, 0.12);
  color: inherit;
}

.fp-category-card h4 {
  font-size: 1.6rem;
  margin-bottom: var(--spacing-xs);
}

.fp-category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--spacing-sm);
  background: linear-gradient(135deg, var(--color-accent), var(--color-pink));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-category-icon span {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-white);
}

.fp-category-count {
  font-size: 1.3rem;
  color: var(--color-text-light);
}

/* Newsletter Section */
.fp-newsletter {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  padding: var(--spacing-xl) 0;
  overflow: hidden;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.fp-newsletter-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fp-newsletter-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(200px);
  opacity: 0.08;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fp-newsletter-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

@media (max-width: 768px) {
  .fp-newsletter-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.fp-newsletter-text h3 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: #0f172a;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.fp-newsletter-text p {
  font-size: 1.6rem;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

.fp-newsletter-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* CF7 Form Styling in Newsletter Section */
.fp-newsletter-form .wpcf7 {
  margin: 0;
}

.fp-newsletter-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fp-newsletter-form .wpcf7-form p {
  margin: 0;
}

.fp-newsletter-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.fp-newsletter-form .wpcf7-form input[type="email"],
.fp-newsletter-form .wpcf7-form input[type="text"] {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 1.6rem;
  color: #1e293b;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.fp-newsletter-form .wpcf7-form input[type="email"]::placeholder,
.fp-newsletter-form .wpcf7-form input[type="text"]::placeholder {
  color: #94a3b8;
}

.fp-newsletter-form .wpcf7-form input[type="email"]:focus,
.fp-newsletter-form .wpcf7-form input[type="text"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(238, 79, 39, 0.1);
  background: #ffffff;
}

.fp-newsletter-form .wpcf7-form input[type="submit"] {
  background: linear-gradient(135deg, var(--color-accent), #d94420);
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 600;
  width: 100%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.fp-newsletter-form .wpcf7-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(238, 79, 39, 0.3);
}

.fp-newsletter-form .wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
}

/* CF7 validation and response messages in newsletter */
.fp-newsletter-form .wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 1.3rem;
  margin-top: 4px;
}

.fp-newsletter-form .wpcf7-response-output {
  margin: 12px 0 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1.4rem;
}

.fp-newsletter-form .wpcf7-form.invalid .wpcf7-response-output,
.fp-newsletter-form .wpcf7-form.failed .wpcf7-response-output {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #dc2626;
}

.fp-newsletter-form .wpcf7-form.sent .wpcf7-response-output {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: #16a34a;
}

.fp-newsletter-form .wpcf7-spinner {
  margin: 8px auto 0;
  display: block;
}

.fp-newsletter-form .wpcf7-form.submitting input[type="submit"] {
  opacity: 0.7;
  pointer-events: none;
}

/* Legacy input styles (fallback) */
.fp-newsletter-form input[type="email"] {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}

.fp-newsletter-form input[type="email"]::placeholder {
  color: #94a3b8;
}

.fp-newsletter-form input[type="email"]:focus {
  border-color: var(--color-accent);
}

/* ==========================================================================
   Bento Grid Section
   ========================================================================== */

.bento-section {
  padding: 60px 40px;
  background: #0a0a0b;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.bento-box {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bento-box:hover {
  border-color: #3f3f46;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.bento-box-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.bento-box-icon {
  width: 40px;
  height: 40px;
  background: #27272a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-box-icon svg {
  width: 20px;
  height: 20px;
  color: #a1a1aa;
}

.bento-box--weekly .bento-box-icon {
  background: rgba(251, 191, 36, 0.15);
}

.bento-box--weekly .bento-box-icon svg {
  color: #fbbf24;
}

.bento-box--monthly .bento-box-icon {
  background: rgba(34, 197, 94, 0.15);
}

.bento-box--monthly .bento-box-icon svg {
  color: #22c55e;
}

.bento-box--new .bento-box-icon {
  background: rgba(59, 130, 246, 0.15);
}

.bento-box--new .bento-box-icon svg {
  color: #3b82f6;
}

.bento-box--tutorials .bento-box-icon {
  background: rgba(168, 85, 247, 0.15);
}

.bento-box--tutorials .bento-box-icon svg {
  color: #a855f7;
}

.bento-box-title h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fafafa;
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.bento-box-subtitle {
  font-size: 1.2rem;
  color: #71717a;
}

.bento-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #27272a;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.bento-item a:hover {
  background: #3f3f46;
}

.bento-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18181b;
}

.bento-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bento-item-name {
  flex: 1;
  font-size: 1.3rem;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-item-stat {
  font-size: 1.2rem;
  font-weight: 500;
  color: #71717a;
  flex-shrink: 0;
}

.bento-item-stat--date {
  font-size: 1.1rem;
  color: #52525b;
}

.bento-item--tutorial a {
  padding: 8px 12px;
}

.bento-item-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18181b;
}

.bento-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-item-thumb svg {
  width: 18px;
  height: 18px;
  color: #71717a;
}

.bento-item--empty {
  padding: 20px;
  text-align: center;
  color: #52525b;
  font-size: 1.3rem;
}

.bento-box-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 16px;
  background: #27272a;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 500;
  color: #a1a1aa;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.bento-box-link:hover {
  background: #3f3f46;
  color: #fafafa;
}

/* Bento Grid Responsive */
@media (max-width: 1200px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bento-section {
    padding: 40px 20px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-box {
    padding: 20px;
  }

  .bento-box-title h2 {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   Nodes Section - Full Screen Dark Mode
   ========================================================================== */

.nodes-section {
  padding: 60px 40px 80px;
  background: #0a0a0b;
  min-height: 100vh;
}

@media (max-width: 640px) {
  .nodes-section {
    padding: 40px 12px 60px;
  }
}

.nodes-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: var(--spacing-md);
}

@media (max-width: 640px) {
  .nodes-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.nodes-header-text {
  max-width: 700px;
}

.nodes-header-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: inline-block;
  vertical-align: top;
}

@media (max-width: 640px) {
  .nodes-header-text h1 {
    font-size: 2.2rem;
  }
}

.nodes-header-text p {
  font-size: 1.5rem;
  color: #71717a;
  margin: 0;
}

.nodes-intro {
  font-size: 1.6rem;
  line-height: 1.7;
  max-width: 680px;
}

.nodes-header-desc {
  font-size: 1.4rem;
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 12px;
}

.nodes-header-count {
  display: inline-block;
  vertical-align: top;
  position: relative;
  margin-left: 12px;
  font-size: 1.2rem;
  color: #71717a;
  background: #27272a;
  padding: 4px 12px;
  border-radius: 6px;
}

.nodes-browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ffffff;
  color: #0a0a0b;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nodes-browse-btn:hover {
  background: #e4e4e7;
  color: #0a0a0b;
}

.nodes-browse-btn svg {
  width: 16px;
  height: 16px;
}

/* Filter Pills */
.nodes-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.node-filter-pill {
  --pill-color: #a1a1aa;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px 1px 10px;
  background: rgba(161, 161, 170, 0.25); /* Fallback */
  background: color-mix(in srgb, var(--pill-color) 25%, transparent);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid rgba(161, 161, 170, 0.5); /* Fallback */
  border: 1px solid color-mix(in srgb, var(--pill-color) 50%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--pill-color) 40%, transparent),
              inset 0 0 12px color-mix(in srgb, var(--pill-color) 15%, transparent);
  transition: all 0.2s ease;
}

.node-filter-pill:hover {
  background: color-mix(in srgb, var(--pill-color) 35%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--pill-color) 60%, transparent),
              inset 0 0 15px color-mix(in srgb, var(--pill-color) 25%, transparent);
}

.node-filter-pill.active {
  background: #fafafa;
  color: #0a0a0b;
  border-color: #fafafa;
}

.node-filter-pill.active .pill-count {
  color: #52525b;
  opacity: 1;
}

.pill-count {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* ==========================================================================
   Category Colors
   Usage: Add these classes to any pill element (.node-filter-pill, .node-card-tag)
   to apply consistent category coloring across the site.
   ========================================================================== */

.cat-all {
  --pill-color: #71717a;
}

.cat-automation {
  --pill-color: #22c55e;
}

.cat-developer-tools {
  --pill-color: #f59e0b;
}

.cat-communication {
  --pill-color: #3b82f6;
}

.cat-utilities {
  --pill-color: #8b5cf6;
}

.cat-ai-assistants {
  --pill-color: #06b6d4;
}

.cat-saas {
  --pill-color: #ec4899;
}

.cat-crm {
  --pill-color: #f97316;
}

.cat-database {
  --pill-color: #6366f1;
}

.cat-ai-machine-learning {
  --pill-color: #14b8a6;
}

.cat-voip-telephony {
  --pill-color: #f472b6;
}

.cat-ecommerce {
  --pill-color: #ef4444;
}

.cat-finance {
  --pill-color: #84cc16;
}

.cat-file-storage {
  --pill-color: #0ea5e9;
}

.cat-social-media {
  --pill-color: #e879f9;
}

.cat-email-marketing {
  --pill-color: #a855f7;
}

.cat-seo {
  --pill-color: #fbbf24;
}

.cat-cloud-infrastructure {
  --pill-color: #38bdf8;
}

.cat-project-management {
  --pill-color: #c084fc;
}

.cat-security {
  --pill-color: #2dd4bf;
}

.cat-ai-image {
  --pill-color: #fb923c;
}

.cat-media {
  --pill-color: #f97316;
}

.cat-analytics {
  --pill-color: #60a5fa;
}

.cat-ai-voice {
  --pill-color: #f43f5e;
}

.cat-ai-video {
  --pill-color: #a78bfa;
}

.cat-iot-hardware {
  --pill-color: #4ade80;
}

.cat-sem-ppc {
  --pill-color: #67e8f9;
}

.cat-advertising {
  --pill-color: #fb7185;
}

.cat-copywriting {
  --pill-color: #fcd34d;
}

.cat-hr-recruiting {
  --pill-color: #c084fc;
}

.cat-uncategorized {
  --pill-color: #71717a;
}

/* New consolidated categories */
.cat-ai {
  --pill-color: #06b6d4;
}

.cat-marketing {
  --pill-color: #a855f7;
}

.cat-productivity {
  --pill-color: #c084fc;
}

.cat-document-processing {
  --pill-color: #f59e0b;
}

.cat-web-scraping {
  --pill-color: #10b981;
}

.cat-utility {
  --pill-color: #8b5cf6;
}

/* Nodes Toolbar */
.nodes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

/* Nodes Sort Dropdown */
.nodes-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nodes Search */
.nodes-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nodes-search-input {
  width: 220px;
  padding: 10px 16px;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  color: #fafafa;
  font-size: 1.3rem;
  transition: all 0.2s ease;
}

.nodes-search-input::placeholder {
  color: #52525b;
}

.nodes-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #1f1f23;
}

.nodes-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #3f3f46;
  border: 1px solid #c5c5c5 !important;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: #fafafa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nodes-search-btn:hover {
  background: var(--color-accent);
}

.nodes-search-btn svg {
  flex-shrink: 0;
}

.nodes-sort-label {
  color: #52525b;
  font-size: 1.25rem;
}

.sort-dropdown {
  position: relative;
}

.sort-dropdown.open .sort-dropdown-btn svg {
  transform: rotate(180deg);
}

.sort-dropdown.open .sort-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sort-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sort-dropdown-btn:hover {
  color: #fafafa;
}

.sort-dropdown-btn svg {
  transition: transform 0.2s ease;
}

.sort-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 160px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.sort-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: #a1a1aa;
  font-size: 1.2rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.sort-dropdown-menu a:hover {
  background: #27272a;
  color: #fafafa;
}

.sort-dropdown-menu a.active {
  color: #fafafa;
  background: #27272a;
}

/* Nodes Pagination - Dark Mode */
.nodes-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.nodes-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #18181b;
  color: #a1a1aa;
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #27272a;
  transition: all 0.2s ease;
}

.nodes-pagination .page-numbers:hover {
  background: #27272a;
  color: #fafafa;
  border-color: #3f3f46;
}

.nodes-pagination .page-numbers.current {
  background: #fafafa;
  color: #0a0a0b;
  border-color: #fafafa;
}

.nodes-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  color: #71717a;
}

.nodes-empty svg {
  margin-bottom: 24px;
  opacity: 0.5;
}

.nodes-empty h2 {
  color: #fafafa;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.nodes-empty p {
  font-size: 1.4rem;
  margin-bottom: 24px;
  max-width: 400px;
}

/* ==========================================================================
   Nodes Listing Component - Full Width Layout
   ========================================================================== */

.nodes-listing {
  width: 100%;
}

/* Filters wrap - full width with centered container */
.nodes-filters-wrap {
  width: 100%;
  padding: 0 40px;
  margin-bottom: 32px;

  > .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
  }

  @media (max-width: 640px) {
    padding: 0;
  }
}

/* Toolbar wrap - full width with centered container */
.nodes-toolbar-wrap {
  width: 100%;
  padding: 0 40px;
  margin-bottom: 24px;

  > .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
  }

  @media (max-width: 640px) {
    padding: 0;
  }
}

/* Grid wrap - full width with padding */
.nodes-grid-wrap {
  width: 100%;
  padding: 0 40px;

  > .container {
    max-width: 100%;
    padding: 0;
  }

  @media (max-width: 640px) {
    padding: 0;
  }
}

/* Load More Button */
.nodes-loadmore {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.loadmore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 48px;
  background: #27272a;
  color: #fafafa;
  font-size: 1.4rem;
  font-weight: 600;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.loadmore-btn:hover {
  background: #3f3f46;
  border-color: #52525b;
}

.loadmore-btn .loadmore-loading {
  display: none;
}

.loadmore-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.loadmore-btn.loading .loadmore-text {
  display: none;
}

.loadmore-btn.loading .loadmore-loading {
  display: inline;
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;

  /* Large screens: add 1 column per 440px after 1920px */
  @media (min-width: 3680px) {
    grid-template-columns: repeat(8, 1fr);
  }

  @media (max-width: 3679px) and (min-width: 3240px) {
    grid-template-columns: repeat(7, 1fr);
  }

  @media (max-width: 3239px) and (min-width: 2800px) {
    grid-template-columns: repeat(6, 1fr);
  }

  @media (max-width: 2799px) and (min-width: 2360px) {
    grid-template-columns: repeat(5, 1fr);
  }

  /* Medium screens */
  @media (max-width: 1600px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (max-width: 1024px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 640px) {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Node Card - Dark Mode */
.node-card {
  background: #18181b;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #27272a;
  transition: all 0.2s ease;
  height: 100%;
}

.node-card:hover {
  border-color: #3f3f46;
  background: #1f1f23;
}

/* Header: Icon | Name | Version */
.node-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.node-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.node-card-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.node-card-icon svg {
  width: 32px;
  height: 32px;
  color: #52525b;
}

.node-card-icon:has(.fallback-icon) {
  background: #27272a;
  border-radius: 8px;
}

.node-card-icon .fallback-icon {
  width: 24px;
  height: 24px;
  filter: grayscale(1);
  opacity: 0.6;
}

.node-card-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fafafa;
  line-height: 1.3;
  min-width: 0;
  transition: color 0.2s ease;
}

.node-card-title:hover {
  color: #a1a1aa;
}

.node-card-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-card-version {
  font-size: 1.1rem;
  font-weight: 500;
  color: #71717a;
  font-family: ui-monospace, monospace;
  flex-shrink: 0;
}

/* Description */
.node-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.node-card-desc {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #71717a;
  margin: 0;
  flex: 1;
}

/* Category Tag - color is set by .cat-* classes */
.node-card-tag {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 2px 6px 0 6px;
  background: color-mix(in srgb, var(--pill-color, #a1a1aa) 25%, transparent);
  color: #fff;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--pill-color, #a1a1aa) 50%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--pill-color, #a1a1aa) 40%, transparent);
  align-self: flex-end;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.node-card-tag:hover {
  color: #fff;
  background: color-mix(in srgb, var(--pill-color, #a1a1aa) 40%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--pill-color, #a1a1aa) 60%, transparent);
}

/* Card Bottom - Downloads & Links - Dark Mode */
.node-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid #27272a;
  margin-top: auto;
}

.node-card-downloads {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  color: #71717a;
}

.node-card-downloads svg {
  width: 14px;
  height: 14px;
  color: #52525b;
}

.dl-weekly {
  color: #e4e4e7;
}

.dl-divider {
  color: #3f3f46;
}

.dl-monthly {
  color: #52525b;
}

.node-card-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.node-link-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #52525b;
  transition: all 0.15s ease;
}

.node-link-icon:hover {
  background: #27272a;
  color: #a1a1aa;
}

.node-link-icon svg {
  width: 16px;
  height: 16px;
}

.node-link-view {
  color: #52525b;
}

.node-link-view:hover {
  color: #fafafa;
}

/* Section Description */
.fp-section-description {
  font-size: 1.6rem;
  color: var(--color-text-light);
  margin-top: var(--spacing-xs);
  margin-bottom: 0;
}

/* Ghost button on light background */
.section .btn-ghost,
.fp-nodes .btn-ghost {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.section .btn-ghost:hover,
.fp-nodes .btn-ghost:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   Responsive Adjustments for Front Page
   ========================================================================== */

@media (max-width: 576px) {
  .fp-hero-title {
    font-size: 3.2rem;
  }

  .fp-hero-content {
    padding: var(--spacing-lg) 0;
  }

  .fp-hero-cta {
    flex-direction: column;

    .btn {
      width: 100%;
      text-align: center;
    }
  }

  .fp-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .fp-nodes-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Single Node Page
   ========================================================================== */

.node-single {
  background: #0a0a0b;
  min-height: 100vh;
  padding: 24px 0 80px;
  overflow-x: hidden;

  @media (max-width: 640px) {
    padding: 24px 0 60px;
  }
}

.node-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #71717a;
  font-size: 1.2rem;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.node-back-link:hover {
  color: #a1a1aa;
}

.node-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
  min-width: 0;
  max-width: 100%;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
  }
}

/* Main Content */
.node-single-main {
  background: #18181b;
  border-radius: 16px;
  padding: 4px 24px;
  border: 1px solid #27272a;
  min-width: 0;
  overflow: hidden;

  @media (max-width: 640px) {
    padding: 20px;
  }
}

.node-single-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;

  @media (max-width: 640px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.node-single-icon {
  width: 56px;
  height: 56px;
  background: #27272a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.node-single-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.node-single-icon svg {
  width: 28px;
  height: 28px;
  color: #71717a;
}

.node-single-icon .fallback-icon {
  width: 32px;
  height: 32px;
  filter: grayscale(1);
  opacity: 0.6;
}

.node-single-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.node-single-title-wrap h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fafafa;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  margin-top: 15px;
}

.node-single-title-wrap h1 .verified-badge svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 640px) {
  .node-single-title-wrap h1 {
    font-size: 1.7rem;
  }

  .node-single-title-wrap h1 .verified-badge svg {
    width: 18px;
    height: 18px;
  }
}

.node-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.node-single-version {
  color: #52525b;
  font-size: 1.3rem;
  font-weight: 500;
}

.node-single-updated {
  display: block;
  width: 100%;
  text-align: right;
  color: #71717a;
  font-size: 1.2rem;
  margin-top: 4px;
}

.node-single-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.node-single-categories .node-filter-pill {
  font-size: 1.1rem;
  padding: 4px 10px;
}

.node-single-excerpt {
  color: #a1a1aa;
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Stats Row with Actions */
.node-single-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid #27272a;
  border-bottom: 1px solid #27272a;
  margin-bottom: 24px;

  @media (max-width: 768px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Stats Bar */
.node-single-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;

  @media (max-width: 640px) {
    gap: 16px;
  }
}

.node-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;

  @media (max-width: 640px) {
    min-width: calc(50% - 8px);
  }
}

.node-stat-value {
  color: #fafafa;
  font-size: 1.5rem;
  font-weight: 600;
}

.node-stat-label {
  color: #71717a;
  font-size: 1.1rem;
}

/* Action Buttons */
.node-single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.node-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #27272a;
  color: #e4e4e7;
  font-size: 1.3rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #3f3f46;
  transition: all 0.2s ease;
}

.node-action-btn:hover {
  background: #3f3f46;
  border-color: #52525b;
}

.node-action-btn.node-action-primary {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.node-action-btn.node-action-primary:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* Content */
.node-single-content {
  margin-bottom: 32px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  overflow-x: hidden;
}

/* Section title - first h2 is "Description" */
.node-single-content > h2:first-child {
  color: #fafafa;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #27272a;
}

/* Content headings */
.node-single-content h1 {
  color: #fafafa;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.node-single-content h2 {
  color: #fafafa;
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.node-single-content h3 {
  color: #e4e4e7;
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.node-single-content h4,
.node-single-content h5,
.node-single-content h6 {
  color: #d4d4d8;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
}

.node-single-content p {
  color: #a1a1aa;
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Lists */
.node-single-content ul,
.node-single-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
  color: #a1a1aa;
}

.node-single-content ul {
  list-style-type: disc;
}

.node-single-content ol {
  list-style-type: decimal;
}

.node-single-content li {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 6px;
  padding-left: 4px;
}

.node-single-content li::marker {
  color: #52525b;
}

/* Nested lists */
.node-single-content li ul,
.node-single-content li ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Images */
.node-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
  display: block;
}

/* Code blocks */
.node-single-content pre {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin: 20px 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.node-single-content code {
  background: #27272a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 1.3rem;
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  color: #e4e4e7;
  word-break: break-all;
}

.node-single-content pre code {
  background: transparent;
  padding: 0;
  font-size: 1.3rem;
  line-height: 1.6;
}

/* Links */
.node-single-content a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.node-single-content a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Blockquotes */
.node-single-content blockquote {
  border-left: 3px solid #3f3f46;
  margin: 20px 0;
  padding: 12px 20px;
  background: #18181b;
  border-radius: 0 8px 8px 0;
}

.node-single-content blockquote p {
  margin-bottom: 0;
  color: #a1a1aa;
  font-style: italic;
}

/* Horizontal rules */
.node-single-content hr {
  border: none;
  border-top: 1px solid #27272a;
  margin: 32px 0;
}

/* Tables */
.node-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1.4rem;
}

.node-single-content th,
.node-single-content td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #27272a;
}

.node-single-content th {
  background: #18181b;
  color: #fafafa;
  font-weight: 600;
}

.node-single-content td {
  color: #a1a1aa;
}

.node-single-content tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* Mobile Description Styles */
@media (max-width: 768px) {
  .node-single {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .node-single .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .node-single-layout {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: block !important;
  }

  .node-single-main {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }

  .node-single-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
  }

  .node-single-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .node-single-content > h2:first-child {
    font-size: 1.4rem !important;
  }

  .node-single-content h1 {
    font-size: 1.4rem !important;
  }

  .node-single-content h2 {
    font-size: 1.25rem !important;
  }

  .node-single-content h3 {
    font-size: 1.15rem !important;
  }

  .node-single-content h4,
  .node-single-content h5,
  .node-single-content h6 {
    font-size: 1.1rem !important;
  }

  .node-single-content p,
  .node-single-content li {
    font-size: 1.2rem !important;
    line-height: 1.5;
  }

  .node-single-content code {
    font-size: 0.95rem !important;
    word-break: break-all !important;
    white-space: pre-wrap !important;
  }

  .node-single-content pre {
    padding: 12px !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
  }

  .node-single-content pre code {
    font-size: 0.9rem !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
  }

  .node-single-content p {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .node-single-content table {
    font-size: 1.1rem;
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }

  .node-single-content th,
  .node-single-content td {
    padding: 8px 10px;
  }
}

/* Nodes List */
.node-single-nodes {
  border-top: 1px solid #27272a;
  padding-top: 24px;
}

.node-single-nodes h2 {
  color: #fafafa;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.node-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.node-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #27272a;
  border-radius: 8px;
}

.node-list-icon {
  width: 36px;
  height: 36px;
  background: #3f3f46;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.node-list-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.node-list-icon svg {
  width: 20px;
  height: 20px;
  color: #71717a;
}

.node-list-icon .fallback-icon {
  width: 20px;
  height: 20px;
  filter: grayscale(1);
  opacity: 0.6;
}

.node-list-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.node-list-name {
  color: #fafafa;
  font-size: 1.3rem;
  font-weight: 500;
}

.node-list-display {
  color: #71717a;
  font-size: 1.2rem;
}

/* Sidebar */
.node-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: -webkit-sticky;
  position: sticky;
  top: 24px;
}

@media (max-width: 1024px) {
  .node-single-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .node-single-sidebar {
    grid-template-columns: 1fr;
  }
}

.node-sidebar-card {
  background: #18181b;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #27272a;
}

.node-sidebar-card h3 {
  color: #71717a;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.node-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.node-sidebar-tag {
  padding: 4px 10px;
  background: #27272a;
  color: #a1a1aa;
  font-size: 1.2rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.node-sidebar-tag:hover {
  background: #3f3f46;
  color: #e4e4e7;
}

.node-sidebar-keyword {
  padding: 4px 10px;
  background: transparent;
  color: #71717a;
  font-size: 1.2rem;
  border: 1px solid #27272a;
  border-radius: 4px;
}

.node-install-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.node-install-cmd {
  display: block;
  flex: 1;
  background: #0a0a0b;
  color: #22c55e;
  font-size: 1.2rem;
  font-family: 'Monaco', 'Menlo', monospace;
  padding: 12px;
  padding-right: 40px;
  border-radius: 6px;
  overflow-x: auto;
  white-space: nowrap;
}

.copy-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #52525b;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    color: #a1a1aa;
    background: #27272a;
  }

  &.copied {
    color: #22c55e;
  }
}

.node-sidebar-date {
  color: #a1a1aa;
  font-size: 1.3rem;
  margin: 0;
}

/* ==========================================================================
   Related Nodes Carousel
   ========================================================================== */

.related-nodes-section {
  background: #0a0a0b;
  padding: 48px 0 80px;
  border-top: 1px solid #27272a;
}

.related-nodes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;

  h2 {
    color: #fafafa;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
  }
}

.carousel-nav {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    background: #3f3f46;
    color: #fafafa;
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

.related-nodes-carousel {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.3s ease;
  cursor: grab;

  &:active {
    cursor: grabbing;
  }
}

.carousel-card {
  flex: 0 0 220px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;

  &:hover {
    border-color: #3f3f46;
    background: #1f1f23;
    transform: translateY(-2px);
  }
}

.carousel-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  &:has(.fallback-icon) {
    background: #27272a;
    border-radius: 8px;
  }

  img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  .fallback-icon {
    width: 26px;
    height: 26px;
    filter: grayscale(1);
    opacity: 0.6;
  }

  svg {
    width: 32px;
    height: 32px;
    color: #52525b;
  }
}

.carousel-card-info {
  flex: 1;
  min-width: 0;

  h4 {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #fafafa;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.carousel-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-card-version {
  color: #52525b;
  font-size: 1.1rem;
  font-family: ui-monospace, monospace;
}

.carousel-card-downloads {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #71717a;
  font-size: 1.1rem;

  svg {
    color: #52525b;
  }
}

/* Light mode - Related Nodes Carousel */
html.light-mode {
  .related-nodes-section {
    background: #f4f4f5;
    border-color: #e4e4e7;
  }

  .related-nodes-header h2 {
    color: #18181b;
  }

  .carousel-btn {
    background: #fff;
    border-color: #e4e4e7;
    color: #52525b;

    &:hover {
      background: #f4f4f5;
      color: #18181b;
    }
  }

  .carousel-card {
    background: #fff;
    border-color: #e4e4e7;

    &:hover {
      border-color: #d4d4d8;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
  }

  .carousel-card-info h4 {
    color: #18181b;
  }

  .carousel-card-version {
    color: #a1a1aa;
  }

  .carousel-card-downloads {
    color: #71717a;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .related-nodes-section {
    padding: 32px 0 60px;
  }

  .related-nodes-header h2 {
    font-size: 1.6rem;
  }

  .carousel-card {
    flex: 0 0 180px;
    padding: 12px;
  }

  .carousel-card-icon {
    width: 32px;
    height: 32px;

    img {
      width: 32px;
      height: 32px;
    }
  }

  .carousel-card-info h4 {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   Header Categories Dropdown
   ========================================================================== */

/* Static category label (shown on category archive pages) */
.header-current-category {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: #27272a;
  border-radius: 8px;
  color: #fafafa;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
}

.header-categories-dropdown {
  position: relative;
}

.header-categories-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #a1a1aa;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    background: #27272a;
    color: #fafafa;
  }

  svg {
    transition: transform 0.2s ease;
  }
}

.header-categories-dropdown.open .header-categories-btn svg {
  transform: rotate(180deg);
}

.header-categories-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  background: #1f1f23;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.header-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #a1a1aa;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.25rem;
  transition: all 0.15s ease;

  &:hover {
    background: #27272a;
    color: #fafafa;
  }
}

.header-category-count {
  font-size: 1.1rem;
  color: #52525b;
  background: #27272a;
  padding: 2px 8px;
  border-radius: 4px;
}

.header-category-item:hover .header-category-count {
  background: #3f3f46;
  color: #a1a1aa;
}

/* ==========================================================================
   Theme Toggle Button
   ========================================================================== */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #a1a1aa;
  transition: all 0.2s ease;

  &:hover {
    background: #27272a;
    color: #fafafa;
  }

  /* Dark mode: show sun icon, hide moon */
  .icon-sun {
    display: block;
  }

  .icon-moon {
    display: none;
  }
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-page {
  background: #0a0a0b;
  min-height: 100vh;
  padding: 60px 0 80px;
}

.about-header {
  margin-bottom: 48px;

  h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fafafa;
    letter-spacing: -0.02em;

    @media (max-width: 640px) {
      font-size: 2.4rem;
    }
  }
}

.about-content {
  max-width: 800px;

  h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #fafafa;
    margin: 48px 0 24px;

    &:first-child {
      margin-top: 0;
    }
  }

  h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fafafa;
    margin: 32px 0 16px;
  }

  p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #a1a1aa;
    margin-bottom: 24px;
  }

  a {
    color: #60a5fa;

    &:hover {
      text-decoration: underline;
    }
  }

  ul, ol {
    margin: 0 0 24px 24px;
    color: #a1a1aa;

    li {
      font-size: 1.5rem;
      line-height: 1.8;
      margin-bottom: 8px;
    }
  }

  img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
  }

  blockquote {
    border-left: 4px solid #3f3f46;
    padding-left: 24px;
    margin: 32px 0;
    color: #d4d4d8;
    font-style: italic;
  }
}

/* ==========================================================================
   Dark Mode (Default)
   ========================================================================== */

body {
  background: #0a0a0b;
  color: #fafafa;
}

header {
  background: #0a0a0b;
  border-bottom: 1px solid #27272a;
}

.main-nav a {
  color: #a1a1aa;

  &:hover {
    color: #fafafa;
  }
}

.main-nav .current-menu-item a {
  color: #fafafa;
}

.menu-toggle span {
  background: #fafafa;
}

footer {
  background: #18181b;
  border-top: 1px solid #27272a;

  p,
  a {
    color: #71717a;
  }

  a:hover {
    color: #a1a1aa;
  }
}

/* ==========================================================================
   Light Mode
   ========================================================================== */

html.light-mode {
  background: #fafafa;
  color: #18181b;

  body {
    background: #fafafa;
    color: #18181b;
  }

  header {
    background: #fff;
    border-bottom: 1px solid #e4e4e7;
  }

  .main-nav a {
    color: #52525b;
  }

  .main-nav .current-menu-item a {
    color: #18181b;
    background: #f4f4f5;
  }

  .site-logo-text {
    color: #18181b;
  }

  .menu-toggle span {
    background: #18181b;
  }

  footer {
    background: var(--color-gray-light);
    border-top: none;

    p,
    a {
      color: #52525b;
    }

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

  /* Light Mode - Header Categories Dropdown */
  .header-current-category {
    background: #f4f4f5;
    color: #18181b;
  }

  .header-categories-btn {
    color: #52525b;

    &:hover {
      background: #f4f4f5;
      color: #18181b;
    }
  }

  .header-categories-menu {
    background: #ffffff;
    border-color: #e4e4e7;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  .header-category-item {
    color: #52525b;

    &:hover {
      background: #f4f4f5;
      color: #18181b;
    }
  }

  .header-category-count {
    color: #71717a;
    background: #f4f4f5;
  }

  .header-category-item:hover .header-category-count {
    background: #e4e4e7;
    color: #52525b;
  }

  /* Light Mode - Theme Toggle */
  .theme-toggle {
    color: #52525b;

    &:hover {
      background: #f4f4f5;
      color: #18181b;
    }

    .icon-sun {
      display: none;
    }

    .icon-moon {
      display: block;
    }
  }

  /* Light Mode - Nodes Section */
  .nodes-section {
    background: #f4f4f5;
  }

  .nodes-header-text {
    h1 {
      color: #18181b;
    }

    p {
      color: #52525b;
    }
  }

  .nodes-header-desc {
    color: #52525b;
  }

  .nodes-header-count {
    color: #52525b;
    background: #e4e4e7;
  }

  .nodes-browse-btn {
    background: #18181b;
    color: #fafafa;

    &:hover {
      background: #27272a;
    }
  }

  .nodes-search-input {
    background: #ffffff;
    border-color: #d4d4d8;
    color: #18181b;

    &::placeholder {
      color: #a1a1aa;
    }

    &:focus {
      background: #ffffff;
      border-color: var(--color-accent);
    }
  }

  .nodes-search-btn {
    background: #e4e4e7;
    color: #52525b;

    &:hover {
      background: var(--color-accent);
      color: #ffffff;
    }
  }

  .node-filter-pill {
    background: color-mix(in srgb, var(--pill-color) 18%, #e8e8e8);
    color: color-mix(in srgb, var(--pill-color) 70%, #000);
    border: 1px solid color-mix(in srgb, var(--pill-color) 35%, transparent);
    box-shadow: none;
    text-shadow: 0.01px 0.01px 0px #4bff00;
    font-weight: 600;

    &:hover {
      background: color-mix(in srgb, var(--pill-color) 28%, #e0e0e0);
      border-color: color-mix(in srgb, var(--pill-color) 50%, transparent);
      box-shadow: 0 2px 8px color-mix(in srgb, var(--pill-color) 25%, transparent);
    }

    &.active {
      background: color-mix(in srgb, var(--pill-color) 85%, #000);
      color: #fff;
      border-color: color-mix(in srgb, var(--pill-color) 85%, #000);
      text-shadow: 0 1px 2px rgba(0,0,0,0.2);

      .pill-count {
        color: rgba(255, 255, 255, 0.8);
        opacity: 1;
      }
    }

    .pill-count {
      color: color-mix(in srgb, var(--pill-color) 50%, #666);
      opacity: 1;
    }
  }

  .nodes-sort-label {
    color: #71717a;
  }

  .sort-dropdown-btn {
    color: #52525b;

    &:hover {
      color: #18181b;
    }
  }

  .sort-dropdown-menu {
    background: #fff;
    border-color: #e4e4e7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    a {
      color: #52525b;

      &:hover,
      &.active {
        background: #f4f4f5;
        color: #18181b;
      }
    }
  }

  /* Light Mode - Node Cards */
  .node-card {
    background: #fafafa;
    border-color: #e4e4e7;

    &:hover {
      border-color: #d4d4d8;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
  }

  .node-card-icon {
    background: #f4f4f5;

    svg {
      color: #a1a1aa;
    }
  }

  .node-card-title {
    color: #18181b;
  }

  .node-card-version {
    color: #a1a1aa;
  }

  .node-card-desc {
    color: #52525b;
  }

  .node-card-tag {
    background: color-mix(in srgb, var(--pill-color, #a1a1aa) 25%, #e8e8e8);
    border: 1px solid color-mix(in srgb, var(--pill-color, #a1a1aa) 50%, transparent);
    color: color-mix(in srgb, var(--pill-color, #a1a1aa) 85%, #000);
    font-weight: 600;
    box-shadow: 0 0 6px color-mix(in srgb, var(--pill-color, #a1a1aa) 20%, transparent);

    &:hover {
      background: color-mix(in srgb, var(--pill-color, #a1a1aa) 35%, #e8e8e8);
      box-shadow: 0 0 10px color-mix(in srgb, var(--pill-color, #a1a1aa) 35%, transparent);
      color: color-mix(in srgb, var(--pill-color, #a1a1aa) 85%, #000);
    }
  }

  .node-card-bottom {
    border-color: #e4e4e7;
  }

  .node-card-downloads {
    color: #71717a;
  }

  .dl-weekly {
    color: #18181b;
  }

  .node-link-icon {
    color: #a1a1aa;

    &:hover {
      color: #52525b;
      background: #f4f4f5;
    }
  }

  /* Light Mode - Pagination */
  .nodes-pagination .page-numbers {
    background: #fff;
    color: #52525b;
    border-color: #e4e4e7;

    &:hover {
      background: #f4f4f5;
      color: #18181b;
    }

    &.current {
      background: #18181b;
      color: #fafafa;
      border-color: #18181b;
    }
  }

  /* Light Mode - Load More Button */
  .loadmore-btn {
    background: #fff;
    color: #18181b;
    border-color: #e4e4e7;

    &:hover {
      background: #f4f4f5;
      border-color: #d4d4d8;
    }
  }

  .nodes-empty {
    color: #52525b;

    h2 {
      color: #18181b;
    }
  }

  /* Light Mode - Single Node Page */
  .node-single {
    background: #f4f4f5;
  }

  .node-back-link {
    color: #71717a;

    &:hover {
      color: #52525b;
    }
  }

  .node-single-main {
    background: #fff;
    border-color: #e4e4e7;
  }

  .node-single-icon {
    background: #f4f4f5;

    svg {
      color: #a1a1aa;
    }
  }

  .node-single-title-wrap h1 {
    color: #18181b;
  }

  .node-single-version {
    color: #a1a1aa;
  }

  .node-single-updated {
    color: #71717a;
  }

  .node-single-excerpt {
    color: #52525b;
  }

  .node-single-stats-row {
    border-color: #e4e4e7;
  }

  .node-stat-value {
    color: #18181b;
  }

  .node-stat-label {
    color: #71717a;
  }

  .node-action-btn {
    background: #f4f4f5;
    color: #18181b;
    border-color: #e4e4e7;

    &:hover {
      background: #e4e4e7;
      border-color: #d4d4d8;
    }

    &.node-action-primary {
      background: #dc2626;
      border-color: #dc2626;
      color: #fff;
    }
  }

  .node-single-content h1,
  .node-single-content h2,
  .node-single-content h3,
  .node-single-content h4,
  .node-single-content h5,
  .node-single-content h6 {
    color: #18181b;
  }

  .node-single-content p,
  .node-single-content li {
    color: #52525b;
  }

  .node-single-content pre {
    background: #f4f4f5;
    border-color: #e4e4e7;
  }

  .node-single-content code {
    background: #e4e4e7;
    color: #18181b;
  }

  .node-single-content pre code {
    background: transparent;
  }

  .node-single-content a {
    color: #2563eb;
  }

  .node-single-content a:hover {
    color: #1d4ed8;
  }

  .node-single-content blockquote {
    background: #f4f4f5;
    border-color: #d4d4d8;
  }

  .node-single-content th {
    background: #f4f4f5;
    color: #18181b;
  }

  .node-single-content td {
    color: #52525b;
  }

  .node-single-nodes {
    border-color: #e4e4e7;
  }

  .node-single-nodes h2 {
    color: #18181b;
  }

  .node-list-item {
    background: #f4f4f5;
  }

  .node-list-icon {
    background: #e4e4e7;
  }

  .node-list-icon svg {
    color: #a1a1aa;
  }

  .node-list-name {
    color: #18181b;
  }

  .node-sidebar-card {
    background: #fff;
    border-color: #e4e4e7;
  }

  .node-sidebar-card h3 {
    color: #71717a;
  }

  .node-sidebar-tag {
    background: #f4f4f5;
    color: #52525b;
  }

  .node-sidebar-tag:hover {
    background: #e4e4e7;
    color: #18181b;
  }

  .node-sidebar-keyword {
    color: #71717a;
    border-color: #e4e4e7;
  }

  .node-install-wrap {
    background: #18181b;
    border-radius: 6px;
  }

  .node-install-cmd {
    background: #18181b;
  }

  .copy-btn {
    color: #71717a;
  }

  .copy-btn:hover {
    color: #a1a1aa;
    background: #27272a;
  }

  .node-sidebar-date {
    color: #52525b;
  }

  /* Light Mode - Sidebar Carousel */
  .sidebar-carousel-card {
    background: #fafafa;
    border-color: #e4e4e7;
  }

  .sidebar-carousel-card:hover {
    background: #f4f4f5;
    border-color: #d4d4d8;
  }

  .sidebar-carousel-icon {
    background: #e4e4e7;
  }

  .sidebar-carousel-icon svg {
    color: #71717a;
  }

  .sidebar-carousel-name {
    color: #18181b;
  }

  .sidebar-carousel-downloads {
    color: #71717a;
  }

  .sidebar-carousel-btn {
    background: #e4e4e7;
    color: #71717a;
  }

  .sidebar-carousel-btn:hover {
    background: #d4d4d8;
    color: #18181b;
  }

  .sidebar-carousel-dot {
    background: #d4d4d8;
  }

  .sidebar-carousel-dot:hover {
    background: #a1a1aa;
  }

  .sidebar-carousel-dot.active {
    background: var(--color-accent);
  }
}


/* ==========================================================================
   Go to Top Button
   ========================================================================== */

.go-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: #27272a;
  color: #fafafa;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.go-to-top:hover {
  background: #3f3f46;
  border-color: #52525b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.go-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  .go-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .go-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Light Mode - Go to Top */
.light-mode .go-to-top {
  background: #fff;
  color: #18181b;
  border-color: #e4e4e7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  &:hover {
    background: #f4f4f5;
    border-color: #d4d4d8;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }
}

/* ==========================================================================
   Mobile-Specific Improvements
   Added: 2024-12-20
   - Category filter dropdown with iOS-style scroll picker on mobile
   - Reduced container paddings on mobile for better screen utilization
   ========================================================================== */

/* Mobile Category Filter Dropdown */
.mobile-category-select-wrap {
  display: none;
}

@media (max-width: 640px) {
  /* Hide desktop filter pills on mobile */
  .nodes-filters {
    display: none;
  }

  /* Show mobile dropdown on mobile */
  .mobile-category-select-wrap {
    display: block;
    width: 100%;
  }

  .mobile-category-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 1.6rem;
    font-weight: 500;
    font-family: var(--font-primary);
    color: #fafafa;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    transition: all 0.2s ease;
    /* iOS native picker optimization */
    -webkit-touch-callout: none;
  }

  .mobile-category-select:focus {
    outline: none;
    border-color: #52525b;
    box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.3);
  }

  .mobile-category-select:active {
    background-color: #3f3f46;
  }

  /* Style the select options - iOS will use native picker */
  .mobile-category-select option {
    background-color: #27272a;
    color: #fafafa;
    padding: 12px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  /* Tighten up the nodes header on mobile */
  .nodes-header-text h1 {
    font-size: 2.4rem;
  }

  .nodes-header-text p {
    font-size: 1.4rem;
  }

  /* Reduce general section vertical padding */
  .section {
    padding: var(--spacing-lg) 0;
  }

  .section-sm {
    padding: var(--spacing-md) 0;
  }
}

/* Light mode support for mobile dropdown */
.light-mode .mobile-category-select {
  background-color: #f4f4f5;
  border-color: #e4e4e7;
  color: #18181b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.light-mode .mobile-category-select:focus {
  border-color: #d4d4d8;
  box-shadow: 0 0 0 3px rgba(212, 212, 216, 0.5);
}

.light-mode .mobile-category-select option {
  background-color: #fff;
  color: #18181b;
}

/* ==========================================================================
   Bookmark Functionality
   ========================================================================== */

/* Bookmark Button Base Styles */
.bookmark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-gray);
  transition: color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
  position: relative;
}

.bookmark-btn:hover {
  color: var(--color-accent);
}

.bookmark-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.bookmark-btn:focus:not(:focus-visible) {
  outline: none;
}

/* Bookmark Icon Styles */
.bookmark-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.bookmark-icon--filled {
  display: none;
}

/* Bookmarked State */
.bookmark-btn.is-bookmarked {
  color: var(--color-accent);
}

.bookmark-btn.is-bookmarked .bookmark-icon--outline {
  display: none;
}

.bookmark-btn.is-bookmarked .bookmark-icon--filled {
  display: block;
}

/* Bookmark Button Size Variants */
.bookmark-btn--small .bookmark-icon {
  width: 16px;
  height: 16px;
}

.bookmark-btn--large .bookmark-icon {
  width: 24px;
  height: 24px;
}

/* Bookmark Animation */
.bookmark-btn.bookmark-animate {
  animation: bookmark-pop 0.3s ease;
}

@keyframes bookmark-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Toast Notification */
.bookmark-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.bookmark-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Light mode toast */
.light-mode .bookmark-toast {
  background: var(--color-deep-navy);
}

/* Action Buttons in Node Card Header */
.node-card-header {
  position: relative;
}

.node-card-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.node-card-actions .bookmark-btn,
.node-card-actions .notify-btn {
  padding: 4px;
  opacity: 1;
  transition: color var(--transition-fast);
}

/* Notify Button Styling */
.notify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-gray);
  transition: color var(--transition-fast);
  position: relative;
  z-index: 2;
}

.notify-btn:hover {
  color: var(--color-accent);
}

.notify-btn.is-subscribed {
  color: #22c55e;
}

.notify-btn.is-subscribed .notify-icon--filled {
  fill: #22c55e;
}

.notify-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.notify-btn--small .notify-icon {
  width: 16px;
  height: 16px;
}

.notify-btn--large .notify-icon {
  width: 24px;
  height: 24px;
}

.notify-icon--filled {
  display: none;
}

.notify-btn.is-subscribed .notify-icon--outline {
  display: none;
}

.notify-btn.is-subscribed .notify-icon--filled {
  display: block;
}

/* Bookmark Button in Single Node Header */
.node-single-title-wrap {
  position: relative;
}

.node-single-title-wrap .bookmark-btn,
.node-single-title-wrap .notify-btn {
  margin-left: 12px;
  vertical-align: middle;
}

.node-single-title-wrap .bookmark-btn .bookmark-icon {
  width: 24px;
  height: 24px;
}

/* Bookmark Button in Single Post */
.post-content h1 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.post-content h1 .bookmark-btn {
  flex-shrink: 0;
  margin-top: 4px;
}

/* Bookmark Button in Post Cards */
.post-card-content h2 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.post-card-content h2 a {
  flex: 1;
}

.post-card-content h2 .bookmark-btn {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.post-card:hover .post-card-content h2 .bookmark-btn,
.post-card-content h2 .bookmark-btn.is-bookmarked {
  opacity: 1;
}

/* Bookmarks List Page Styles */
.c12s-bookmarks-list {
  max-width: 800px;
  margin: 0 auto;
}

.c12s-bookmarks-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-gray);
}

.c12s-bookmarks-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-gray);
  background: var(--color-gray-light);
  border-radius: 12px;
}

.c12s-bookmarks-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c12s-bookmark-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.c12s-bookmark-link {
  flex: 1;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.6rem;
}

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

.c12s-bookmark-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-gray);
  cursor: pointer;
  border-radius: 6px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.c12s-bookmark-remove:hover {
  background: rgba(238, 79, 39, 0.1);
  color: var(--color-accent);
}

/* Dark mode / default dark theme adjustments */
.c12s-bookmark-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.c12s-bookmark-link {
  color: var(--color-white);
}

.c12s-bookmarks-empty {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
}

/* Light mode bookmarks */
.light-mode .c12s-bookmark-item {
  background: var(--color-white);
  border-color: var(--color-border);
}

.light-mode .c12s-bookmark-link {
  color: var(--color-text);
}

.light-mode .c12s-bookmarks-empty {
  background: var(--color-gray-light);
  color: var(--color-gray);
}

/* Bookmark Counter (optional header element) */
.bookmark-counter {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-accent);
  border-radius: 9px;
  position: absolute;
  top: -4px;
  right: -8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bookmark-toast {
    bottom: 80px;
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(100px);
    text-align: center;
  }

  .bookmark-toast.show {
    transform: translateX(0) translateY(0);
  }

  /* Always show bookmark buttons on mobile for touch accessibility */
  .node-card-header .bookmark-btn,
  .post-card-content h2 .bookmark-btn {
    opacity: 1;
  }

  .c12s-bookmark-item {
    padding: 12px 16px;
  }

  .c12s-bookmark-link {
    font-size: 1.5rem;
  }
}

/* ===========================================
   Notify Modal (Email Subscription)
   =========================================== */
.notify-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.notify-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.notify-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.2s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.notify-modal-overlay.is-open .notify-modal {
  transform: translateY(0) scale(1);
}

.notify-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.notify-modal-close:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.05);
}

.notify-modal-close svg {
  width: 20px;
  height: 20px;
  display: block;
}

.notify-modal-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  margin-right: 10px;
}

.notify-modal-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.notify-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.notify-modal-desc {
  color: #666;
  font-size: 1.5rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.notify-modal-desc strong {
  color: #1a1a1a;
}

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

.notify-form-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  color: #1a1a1a;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.notify-form-input::placeholder {
  color: #999;
}

.notify-form-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.notify-form-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.notify-form-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.notify-form-btn:active {
  transform: translateY(0);
}

.notify-form-btn svg {
  width: 20px;
  height: 20px;
}

.notify-form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.notify-form-success.show {
  display: block;
}

.notify-form-success svg {
  width: 48px;
  height: 48px;
  color: #22c55e;
  margin-bottom: 12px;
}

.notify-form-success p {
  color: #1a1a1a;
  font-size: 1rem;
}

.notify-form.is-loading .notify-form-btn {
  opacity: 0.7;
  pointer-events: none;
}

/* Notify Modal Header */
.notify-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.notify-modal-header-text {
  flex: 1;
}

.notify-modal-header .notify-modal-title {
  margin-bottom: 4px;
}

.notify-modal-header .notify-modal-desc {
  margin-bottom: 0;
}

/* Contact Form 7 in Notify Modal */
.notify-modal-cf7 {
  width: 100%;
}

.notify-modal-cf7 .wpcf7 {
  margin: 0;
}

.notify-modal-cf7 .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notify-modal-cf7 .wpcf7-form p {
  margin: 0;
}

.notify-modal-cf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.notify-modal-cf7 .wpcf7-form input[type="email"],
.notify-modal-cf7 .wpcf7-form input[type="text"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1.5rem;
  color: #1a1a1a;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.notify-modal-cf7 .wpcf7-form input[type="email"]::placeholder,
.notify-modal-cf7 .wpcf7-form input[type="text"]::placeholder {
  color: #999;
}

.notify-modal-cf7 .wpcf7-form input[type="email"]:focus,
.notify-modal-cf7 .wpcf7-form input[type="text"]:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.notify-modal-cf7 .wpcf7-form input[type="submit"] {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  width: 100%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.notify-modal-cf7 .wpcf7-form input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.notify-modal-cf7 .wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
}

/* CF7 validation and response messages */
.notify-modal-cf7 .wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 1rem;
  margin-top: 4px;
}

.notify-modal-cf7 .wpcf7-response-output {
  margin: 12px 0 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1rem;
}

.notify-modal-cf7 .wpcf7-form.invalid .wpcf7-response-output,
.notify-modal-cf7 .wpcf7-form.failed .wpcf7-response-output {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.notify-modal-cf7 .wpcf7-form.sent .wpcf7-response-output {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #16a34a;
}

/* CF7 loading spinner */
.notify-modal-cf7 .wpcf7-spinner {
  margin: 8px auto 0;
  display: block;
}

.notify-modal-cf7 .wpcf7-form.submitting input[type="submit"] {
  opacity: 0.7;
  pointer-events: none;
}

/* Bookmark Confirmation Modal */
.bookmark-confirm-icon {
  background: linear-gradient(135deg, #b28f1a 0%, #d4af37 100%);
}

.bookmark-confirm-icon svg {
  color: #fff;
}

.bookmark-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.bookmark-confirm-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.bookmark-confirm-yes {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
}

.bookmark-confirm-yes:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.bookmark-confirm-no {
  background: transparent;
  color: #71717a;
  border: 1px solid #3f3f46;
}

.bookmark-confirm-no:hover {
  background: #27272a;
  color: #a1a1aa;
}

/* Light mode adjustments */
.light-mode .notify-modal {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.light-mode .notify-modal-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .notify-modal {
    padding: 24px;
    margin: 16px;
    width: calc(100% - 32px);
  }

  .notify-form {
    flex-direction: column;
  }

  .notify-form-btn {
    padding: 14px;
  }
}

/* ==========================================================================
   Suggest A Feature Button & Modal
   ========================================================================== */

/* Header Suggest Feature Button */
.suggest-feature-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #ff6b35;
  border-radius: 8px;
  color: #ff6b35;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.suggest-feature-btn:hover {
  background: #ff6b35;
  color: #fff;
}

.suggest-feature-btn:hover svg {
  animation: spin-slow 2s linear infinite;
}

.suggest-feature-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Mobile: hide text, show only icon */
@media (max-width: 768px) {
  .suggest-feature-btn {
    padding: 8px;
    border-radius: 50%;
  }

  .suggest-feature-btn span {
    display: none;
  }
}

/* Light mode adjustments for button */
.light-mode .suggest-feature-btn {
  border-color: #e55a2b;
  color: #e55a2b;
}

.light-mode .suggest-feature-btn:hover {
  background: #e55a2b;
  color: #fff;
}

/* Suggest Feature Modal Overlay */
.suggest-feature-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.suggest-feature-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Suggest Feature Modal */
.suggest-feature-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.2s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.suggest-feature-modal-overlay.is-open .suggest-feature-modal {
  transform: translateY(0) scale(1);
}

/* Close Button */
.suggest-feature-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.suggest-feature-modal-close:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.05);
}

.suggest-feature-modal-close svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Modal Header */
.suggest-feature-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.suggest-feature-modal-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.suggest-feature-modal-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.suggest-feature-modal-header-text {
  flex: 1;
}

.suggest-feature-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.suggest-feature-modal-desc {
  color: #666;
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 0;
}

/* Contact Form 7 Styles for Suggest Feature Modal */
.suggest-feature-cf7 {
  width: 100%;
}

.suggest-feature-cf7 .wpcf7 {
  margin: 0;
}

.suggest-feature-cf7 .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.suggest-feature-cf7 .wpcf7-form p {
  margin: 0;
}

.suggest-feature-cf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.suggest-feature-cf7 .wpcf7-form input[type="email"],
.suggest-feature-cf7 .wpcf7-form input[type="text"],
.suggest-feature-cf7 .wpcf7-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1.5rem;
  font-family: inherit;
  color: #1a1a1a;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.suggest-feature-cf7 .wpcf7-form input[type="email"]::placeholder,
.suggest-feature-cf7 .wpcf7-form input[type="text"]::placeholder,
.suggest-feature-cf7 .wpcf7-form textarea::placeholder {
  color: #999;
}

.suggest-feature-cf7 .wpcf7-form input[type="email"]:focus,
.suggest-feature-cf7 .wpcf7-form input[type="text"]:focus,
.suggest-feature-cf7 .wpcf7-form textarea:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.suggest-feature-cf7 .wpcf7-form textarea {
  resize: vertical;
  min-height: 100px;
}

.suggest-feature-cf7 .wpcf7-form input[type="submit"] {
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  width: 100%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.suggest-feature-cf7 .wpcf7-form input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.suggest-feature-cf7 .wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
}

/* CF7 Validation Error */
.suggest-feature-cf7 .wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 1.2rem;
  margin-top: 4px;
}

/* CF7 Response Output */
.suggest-feature-cf7 .wpcf7-response-output {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1.4rem;
  text-align: center;
  margin: 0;
}

.suggest-feature-cf7 .wpcf7-form.invalid .wpcf7-response-output,
.suggest-feature-cf7 .wpcf7-form.failed .wpcf7-response-output {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.suggest-feature-cf7 .wpcf7-form.sent .wpcf7-response-output {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #16a34a;
}

/* CF7 Spinner */
.suggest-feature-cf7 .wpcf7-spinner {
  display: none;
}

.suggest-feature-cf7 .wpcf7-form.submitting input[type="submit"] {
  opacity: 0.8;
  pointer-events: none;
}

/* Light Mode Adjustments */
.light-mode .suggest-feature-modal {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.light-mode .suggest-feature-modal-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .suggest-feature-modal {
    padding: 24px;
    margin: 16px;
    width: calc(100% - 32px);
  }

  .suggest-feature-modal-header {
    flex-direction: column;
    gap: 12px;
  }

  .suggest-feature-modal-icon {
    width: 40px;
    height: 40px;
  }

  .suggest-feature-modal-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================
   Tutorial Single Page Styles
   ========================================================================== */

/* Tutorial inherits node-single layout structure */
.tutorial-single .node-single-main {
  max-width: 100%;
}

.tutorial-header {
  margin-bottom: var(--spacing-md);
}

.tutorial-header h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.tutorial-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1.4rem;
  color: var(--color-text-light);
}

.tutorial-meta .tutorial-author a {
  color: var(--color-accent);
  text-decoration: none;
}

.tutorial-meta .tutorial-author a:hover {
  text-decoration: underline;
}

.tutorial-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Video wrapper for tutorials */
.tutorial-single .video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: var(--spacing-md);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-gray-light);
}

.tutorial-single .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Featured image for tutorials */
.tutorial-single .featured-image {
  margin-bottom: var(--spacing-md);
  border-radius: 12px;
  overflow: hidden;
}

.tutorial-single .featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tutorial content inherits node-single-content */
.tutorial-content {
  font-size: 1.7rem;
  line-height: 1.8;
}

/* Sidebar tutorial-specific cards */
.tutorial-sidebar-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.tutorial-sidebar-card:hover {
  background: rgba(14, 9, 24, 0.04);
}

.tutorial-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.tutorial-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutorial-author-name {
  font-size: 1.2rem;
  color: var(--color-text-light);
}

/* Stacked Tutorial Card (image on top, title below) */
.tutorial-card-stacked {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.tutorial-card-stacked .tutorial-card-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #27272a;
}

.tutorial-card-stacked .tutorial-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tutorial-card-stacked .tutorial-card-thumbnail .fallback-icon {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: grayscale(1);
  opacity: 0.5;
}

.tutorial-card-stacked .tutorial-card-thumbnail .tutorial-video-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: #ef4444;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tutorial-card-stacked .tutorial-card-thumbnail .tutorial-video-badge svg {
  width: 12px;
  height: 12px;
}

.tutorial-card-stacked .tutorial-card-title {
  padding: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fafafa;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Light mode overrides for stacked tutorial card */
@media (prefers-color-scheme: light) {
  .tutorial-card-stacked .tutorial-card-thumbnail {
    background: #e4e4e7;
  }

  .tutorial-card-stacked .tutorial-card-title {
    color: #18181b;
  }
}

html.light .tutorial-card-stacked .tutorial-card-thumbnail {
  background: #e4e4e7;
}

html.light .tutorial-card-stacked .tutorial-card-title {
  color: #18181b;
}

/* Sidebar Tutorials Carousel - Stacked Cards */
.node-sidebar-tutorials .sidebar-carousel {
  overflow: hidden;
}

.node-sidebar-tutorials .sidebar-carousel-track {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: stretch;
}

.node-sidebar-tutorials .sidebar-carousel-card.tutorial-card-stacked {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

/* When there's a sidebar-carousel-page (3+ cards), stack vertically within each page */
.node-sidebar-tutorials .sidebar-carousel-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 100%;
  width: 100%;
}

.node-sidebar-tutorials .sidebar-carousel-page .sidebar-carousel-card.tutorial-card-stacked {
  flex: none;
  min-width: 100%;
  max-width: 100%;
}

/* Ensure proper height for stacked tutorial cards in sidebar */
.node-sidebar-tutorials .tutorial-card-stacked .tutorial-card-thumbnail {
  aspect-ratio: 16 / 9;
  min-height: 150px;
  flex-shrink: 0;
}

.node-sidebar-tutorials .tutorial-card-stacked .tutorial-card-title {
  font-size: 1.2rem;
  padding: 10px;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  color: #18181b;
}

html.light .node-sidebar-tutorials .tutorial-card-stacked .tutorial-card-title {
  color: #18181b;
}

/* View All Tutorials button */
.tutorial-view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
}

.tutorial-view-all-btn:hover {
  background: #d13d1a;
  transform: translateY(-1px);
}

.tutorial-view-all-btn svg {
  transition: transform 0.2s ease;
}

.tutorial-view-all-btn:hover svg {
  transform: translateX(4px);
}

/* Tutorial carousel cards */
.tutorial-carousel-card .carousel-card-icon {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
}

.tutorial-carousel-icon {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}

.tutorial-carousel-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-card-author {
  font-size: 1.2rem;
  color: var(--color-text-light);
}

/* Responsive adjustments for tutorials */
@media (max-width: 768px) {
  .tutorial-header h1 {
    font-size: 2.4rem;
  }

  .tutorial-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tutorial-single .node-single-sidebar {
    margin-top: var(--spacing-lg);
  }
}

/* ==========================================================================
   Tutorials Archive - Grid View
   Matches nodes listing design
   ========================================================================== */

.tutorials-section {
  padding: 60px 40px 80px;
  background: #0a0a0b;
  min-height: 100vh;
}

@media (max-width: 640px) {
  .tutorials-section {
    padding: 40px 12px 60px;
  }
}

/* Tutorial Card - Dark Mode (extends node-card) */
.tutorial-card {
  background: #18181b;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #27272a;
  transition: all 0.2s ease;
  height: 100%;
}

.tutorial-card:hover {
  border-color: #3f3f46;
  background: #1f1f23;
}

/* Tutorial Card Thumbnail */
.tutorial-card-thumbnail {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #27272a;
}

.tutorial-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tutorial-placeholder-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #52525b;
}

.tutorial-placeholder-icon svg {
  width: 24px;
  height: 24px;
}

/* Video Badge */
.tutorial-video-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  border-radius: 4px;
  flex-shrink: 0;
}

.tutorial-video-badge svg {
  width: 10px;
  height: 10px;
}

/* Tutorial Card Meta (bottom) */
.tutorial-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.15rem;
  color: #71717a;
}

.tutorial-card-meta svg {
  width: 14px;
  height: 14px;
  color: #52525b;
  flex-shrink: 0;
}

.tutorial-author {
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.tutorial-date {
  color: #52525b;
  flex-shrink: 0;
}

/* Comments count */
.tutorial-comments {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.1rem;
  color: #52525b;
  margin-right: 4px;
}

.tutorial-comments svg {
  width: 14px;
  height: 14px;
}

/* Empty state */
.tutorials-empty {
  text-align: center;
  padding: 60px 20px;
}

.tutorials-empty svg {
  color: #52525b;
  margin-bottom: 16px;
}

.tutorials-empty h2 {
  font-size: 1.8rem;
  color: #fafafa;
  margin-bottom: 8px;
}

.tutorials-empty p {
  font-size: 1.4rem;
  color: #71717a;
  margin: 0;
}

/* Responsive Tutorials Grid */
@media (max-width: 1600px) {
  .tutorials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .tutorials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tutorials-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tutorial-author {
    max-width: 80px;
  }
}
