/* ==========================================================================
   Th1nkN3st Custom Styles - Override Theme
   ========================================================================== */

/* Reset Jekyll Theme */
#header_wrap {
  display: none !important;
}

#footer_wrap {
  display: none !important;
}

#main_content_wrap {
  background: #1a1a1a !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#main_content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Color Variables */
:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #242424;
  --bg-accent: #2d2d2d;
  --text-primary: #e6e6e6;
  --text-secondary: #b3b3b3;
  --text-muted: #808080;
  --accent-primary: #6abd45;
  --accent-secondary: #8ec640;
  --accent-hover: #7dd155;
  --border-primary: #404040;
  --border-secondary: #2d2d2d;
}

/* Body */
body {
  background-color: #1a1a1a !important;
  color: #e6e6e6 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', system-ui, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* Override monospace fonts everywhere */
body, 
.nav-title,
.nav-link,
.main-content,
.content-wrapper,
h1, h2, h3, h4, h5, h6,
p, li, a, span, div {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', system-ui, sans-serif !important;
}

/* Navigation Header */
.site-header,
.header {
  background-color: #1a1a1a !important;
  border-bottom: 1px solid #404040 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.nav-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 4rem !important;
}

.nav-brand {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  text-decoration: none !important;
  color: #e6e6e6 !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
}

.nav-title {
  color: #e6e6e6 !important;
}

.nav-brand:hover .nav-title {
  color: #6abd45 !important;
}

/* FORCE LOGO SIZE */
.nav-logo,
.site-header img,
.nav-brand img,
img[alt*="Logo"] {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  background: linear-gradient(145deg, #1e1e1e, #0a0a0a) !important;
  border: 1px solid #333 !important;
  padding: 2px !important;
  display: block !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

.nav-menu {
  display: flex !important;
  list-style: none !important;
  gap: 2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
}

.nav-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.nav-link {
  text-decoration: none !important;
  color: #b3b3b3 !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: color 0.2s ease !important;
  position: relative !important;
}

.nav-link:hover,
.nav-link.active {
  color: #6abd45 !important;
}

.nav-link.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: -0.5rem !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: #6abd45 !important;
  border-radius: 1px !important;
  display: block !important;
}

/* Hide hamburger menu on desktop */
.nav-toggle {
  display: none !important;
}

/* Main Content */
.main-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 2rem 1rem !important;
  min-height: calc(100vh - 20rem) !important;
  text-align: left !important;
}

.content-wrapper {
  padding: 2rem 0 !important;
  text-align: left !important;
}

/* Exception: Hero section should be centered */
.content-wrapper .hero,
.content-wrapper .hero *,
.content-wrapper .hero-content,
.content-wrapper .hero-content * {
  text-align: center !important;
}

.content-wrapper > p,
.main-content > p,
.main-content p {
  text-align: left !important;
}

/* Exception: Hero section paragraphs should be centered */
.hero p,
.hero-content p,
.hero-description {
  text-align: center !important;
}

/* Headings */
h1 {
  color: #6abd45 !important;
  font-size: 2.5rem !important;
  text-align: left !important;
  margin-bottom: 1rem !important;
}

h2 {
  color: #8ec640 !important;
  font-size: 1.875rem !important;
  margin-top: 3rem !important;
  margin-bottom: 1.5rem !important;
  border-bottom: 2px solid #404040 !important;
  padding-bottom: 0.5rem !important;
}

/* Blog Posts Grid */
.posts {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 2rem !important;
  margin-top: 2rem !important;
}

.post {
  background: #1a1a1a !important;
  border: 1px solid #404040 !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  transition: all 0.3s ease !important;
}

.post:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(106, 189, 69, 0.1) !important;
  border-color: #6abd45 !important;
}

.post h2 {
  font-size: 1.5rem !important;
  color: #e6e6e6 !important;
  margin: 0 0 0.5rem 0 !important;
  border: none !important;
  padding: 0 !important;
}

.post h2 a {
  color: #e6e6e6 !important;
  text-decoration: none !important;
}

.post h2 a:hover {
  color: #6abd45 !important;
}

.post time {
  display: block !important;
  font-size: 0.875rem !important;
  color: #808080 !important;
  margin-bottom: 1rem !important;
}

.post p {
  color: #b3b3b3 !important;
  line-height: 1.6 !important;
}

.post-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin: 1rem 0 !important;
}

.tag {
  background: #2d2d2d !important;
  color: #6abd45 !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 6px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  border: 1px solid #404040 !important;
}

.read-more {
  color: #6abd45 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
}

.read-more:hover {
  color: #7dd155 !important;
}

/* Footer */
.site-footer {
  background-color: #242424 !important;
  border-top: 1px solid #404040 !important;
  padding: 3rem 0 2rem !important;
  margin-top: 4rem !important;
}

.footer-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
}

.footer-heading {
  color: #6abd45 !important;
  font-size: 1.125rem !important;
  margin-bottom: 1rem !important;
}

.footer-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.footer-links a {
  color: #b3b3b3 !important;
  text-decoration: none !important;
  font-size: 0.875rem !important;
}

.footer-links a:hover {
  color: #6abd45 !important;
}

.footer-bottom {
  text-align: center !important;
  padding-top: 2rem !important;
  border-top: 1px solid #2d2d2d !important;
}

.footer-copyright {
  color: #808080 !important;
  font-size: 0.875rem !important;
}

.affiliate-disclosure {
  background-color: #2d2d2d !important;
  border: 1px solid #404040 !important;
  border-radius: 6px !important;
  padding: 1rem !important;
  margin-top: 2rem !important;
  font-size: 0.75rem !important;
  color: #808080 !important;
  text-align: center !important;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none !important;
  }
  
  .nav-toggle {
    display: block !important;
  }
  
  .posts {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Gear Product Pages
   ========================================================================== */

/* Gear Breadcrumb Navigation */
.gear-breadcrumb {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(106, 189, 69, 0.2);
}

.gear-breadcrumb a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.gear-breadcrumb a:hover {
  opacity: 0.7;
}

/* Product Title - Centered */
.product-title {
  text-align: center;
  margin: 2rem auto;
  color: var(--accent-primary);
  font-size: 2.5rem;
  font-weight: bold;
}

@media (max-width: 820px) {
  .product-title {
    font-size: 1.8rem;
  }
}

/* Product Hero Section - Two Column Layout */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  align-items: start;
}

@media (max-width: 820px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Product Info Section */
.product-info {
  padding-right: 1rem;
}

@media (max-width: 820px) {
  .product-info {
    padding-right: 0;
  }
}

.product-info .hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #e8e8e8;
}

.product-info h3 {
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  color: var(--accent-primary);
  font-size: 1.4rem;
}

.product-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-info li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.product-info li::before {
  content: ">> ";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* Product Gallery */
.product-gallery {
  position: sticky;
  top: 1rem;
}

@media (max-width: 820px) {
  .product-gallery {
    position: relative;
    top: 0;
  }
}

/* Image Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: #1a1a1a;
}

.carousel-slides {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  border-radius: 4px;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.9);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Carousel Thumbnails */
.carousel-thumbnails {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem;
  flex-wrap: wrap;
}

.carousel-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background: #f5f5f5;
}

.carousel-thumbnail:hover {
  border-color: var(--accent-primary);
}

.carousel-thumbnail.active {
  border-color: var(--accent-primary);
}

.carousel-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product Content Sections */
.product-content {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.product-section {
  margin-bottom: 3rem;
}

.product-section h2 {
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.product-section h3 {
  color: #e8e8e8;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Tables */
.specs-table,
.power-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}

.specs-table th,
.specs-table td,
.power-table th,
.power-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(106, 189, 69, 0.2);
}

.specs-table th,
.power-table th {
  background: rgba(106, 189, 69, 0.15);
  color: var(--accent-primary);
  font-weight: bold;
}

.specs-table tbody tr:hover,
.power-table tbody tr:hover {
  background: rgba(106, 189, 69, 0.1);
}

@media (max-width: 820px) {
  .specs-table,
  .power-table {
    font-size: 0.9rem;
  }
  
  .specs-table th,
  .specs-table td,
  .power-table th,
  .power-table td {
    padding: 0.5rem;
  }
}

/* Lists in product sections */
.product-section ol,
.product-section ul {
  margin-left: 1.5rem;
  line-height: 1.8;
}

.product-section ol li,
.product-section ul li {
  margin-bottom: 0.5rem;
}

/* Purchase Section - Glassmorphism Design */
.product-purchase {
  text-align: center;
  padding: 2.5rem 2rem;
  max-width: 620px;
  margin: 0 auto;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 
    inset 0 0 20px rgba(106, 189, 69, 0.15),
    inset 0 1px 1px rgba(106, 189, 69, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(106, 189, 69, 0.3);
}

/* Animated gradient border */
.product-purchase::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    rgba(106, 189, 69, 0.6),
    rgba(106, 189, 69, 0.2),
    rgba(106, 189, 69, 0.6),
    rgba(106, 189, 69, 0.2)
  );
  background-size: 300% 300%;
  border-radius: 16px;
  z-index: -1;
  animation: gradientBorder 4s ease infinite;
}

@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Inner glow effect */
.product-purchase::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85%;
  height: 85%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(106, 189, 69, 0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.product-purchase > * {
  position: relative;
  z-index: 1;
}

.product-purchase h2 {
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: var(--accent-primary);
  text-shadow: 0 2px 12px rgba(106, 189, 69, 0.4);
  font-weight: bold;
}

.product-purchase .read-more {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  padding: 1.1rem 3rem;
  background: #101417;
  color: #6abd45;
  font-weight: 900;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 20px rgba(106, 189, 69, 0.3),
    inset 0 0 8px rgba(106, 189, 69, 0.1);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border: 2px solid #6abd45;
  text-decoration: none;
}

.product-purchase .read-more:hover {
  background: #1a1e23;
  color: #7dd155;
  transform: translateY(-2px);
  box-shadow: 
    0 0 30px rgba(106, 189, 69, 0.6),
    0 0 50px rgba(106, 189, 69, 0.4),
    inset 0 0 12px rgba(106, 189, 69, 0.2);
  border-color: #7dd155;
}

.affiliate-disclosure {
  margin-top: 1.75rem;
  padding: 1.1rem 1.4rem;
  color: #d0d0d0;
  font-style: italic;
  font-size: 0.88rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(106, 189, 69, 0.15);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .product-purchase {
    padding: 2rem 1.4rem;
    border-radius: 12px;
    max-width: 100%;
    margin: 0 1rem;
  }
  
  .product-purchase h2 {
    font-size: 2.2rem;
    margin-bottom: 1.75rem;
  }
  
  .product-purchase .read-more {
    font-size: 1.05rem;
    padding: 1rem 2.5rem;
    letter-spacing: 1px;
  }
  
  .affiliate-disclosure {
    padding: 1rem 1.2rem;
    font-size: 0.84rem;
  }
}

/* Related Links */
.related-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.related-links li {
  margin: 0;
}

.related-links a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.related-links a:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Gear Listing Page
   ========================================================================== */

.gear-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 2rem 0;
}

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

.gear-card {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(106, 189, 69, 0.2);
}

.gear-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(106, 189, 69, 0.2);
  border-color: var(--accent-primary);
}

.gear-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
}

.gear-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

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

.gear-card-content {
  padding: 1.5rem;
}

.gear-card-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.3rem;
}

.gear-card-title a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.gear-card-title a:hover {
  opacity: 0.8;
}

.gear-card-excerpt {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.gear-card-brand {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 1rem;
}

.gear-card .read-more {
  display: inline-block;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Article Layout & New Components
   ========================================================================== */

/* Article Layout */
.article-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.article-breadcrumb {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(106, 189, 69, 0.2);
}

.article-breadcrumb a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.article-breadcrumb a:hover {
  opacity: 0.7;
}

.article-header {
  margin-bottom: 2rem;
  text-align: center;
}

.article-title {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-date,
.article-author {
  display: inline-block;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.article-cover {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.article-cover figcaption {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

.article-content {
  line-height: 1.8;
  color: var(--text-primary);
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent-secondary);
}

.article-content img {
  max-width: 50%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
  display: block;
}

/* Also target images in main content for blog posts */
.main-content img,
.content-wrapper img {
  max-width: 50%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
  display: block;
}

/* Target images specifically in blog post content */
.main-content article img,
.content-wrapper article img,
main img[src*="/assets/images/posts/"] {
  max-width: 50%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
  display: block;
  /* Color scheme normalization - adjust these values to match your desired look */
  /* See internal-docs/IMAGE_COLOR_MATCHING.md for adjustment guide */
  filter: 
    brightness(1.05)      /* Slightly brighten (0.8-1.2) */
    contrast(1.1)         /* Increase contrast (0.8-1.3) */
    saturate(0.9);        /* Slightly desaturate for consistency (0-1.5) */
}

/* Exclude wrapped images from the above styles */
.thinknest-graph-wrapper img {
  max-width: 100% !important;
  margin: 0 !important;
  filter: none !important;
}

.article-gallery {
  margin: 3rem 0;
}

.article-gallery h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(106, 189, 69, 0.2);
}

.article-categories {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.category-link {
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.category-link:hover {
  opacity: 0.7;
}

.article-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-back,
.nav-home {
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-back:hover,
.nav-home:hover {
  opacity: 0.7;
}

@media (max-width: 640px) {
  .article-title {
    font-size: 1.8rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Generic Content Card */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

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

.content-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(106, 189, 69, 0.2);
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(106, 189, 69, 0.2);
  border-color: var(--accent-primary);
}

.card-image-link {
  display: block;
  text-decoration: none;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

.card-title a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.card-title a:hover {
  opacity: 0.8;
}

.card-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-date,
.card-brand {
  display: inline-block;
}

.card-excerpt {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-cta {
  display: inline-block;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.2s;
  margin-top: auto;
}

.card-cta:hover {
  color: var(--accent-hover);
}

/* Homepage Sections */
.homepage-section {
  margin: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent-primary);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.3s;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 189, 69, 0.3);
}

/* Utility Classes */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 3rem 1rem;
}

.section-nav {
  text-align: center;
  padding: 1rem 0;
  color: var(--text-secondary);
}

.section-nav a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.section-nav a:hover {
  opacity: 0.7;
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(106, 189, 69, 0.2);
  margin: 3rem 0;
}

/* Tags & Categories Pages */
.tag-cloud,
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
  justify-content: center;
}

.tag-link,
.category-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(106, 189, 69, 0.1);
  color: var(--accent-primary);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(106, 189, 69, 0.3);
  transition: all 0.2s;
  font-size: 0.9rem;
}

.tag-link:hover,
.category-link:hover {
  background: rgba(106, 189, 69, 0.2);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.tag-section,
.category-section {
  margin: 3rem 0;
}

.tag-heading,
.category-heading {
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(106, 189, 69, 0.3);
}

.tag-count,
.category-count {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: normal;
}

.tag-items,
.category-items {
  display: grid;
  gap: 1.5rem;
}

.tag-item,
.category-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border-left: 3px solid var(--accent-primary);
}

.tag-item-title,
.category-item-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.tag-item-title a,
.category-item-title a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.tag-item-title a:hover,
.category-item-title a:hover {
  opacity: 0.8;
}

.tag-item-date,
.category-item-date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.tag-item-excerpt,
.category-item-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Mobile Responsiveness for New Components */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .homepage-section {
    margin: 3rem 0;
  }
  
  .btn-primary {
    padding: 0.65rem 1.75rem;
    font-size: 0.95rem;
  }
  
  .tag-cloud,
  .category-list {
    gap: 0.5rem;
  }
  
  .tag-link,
  .category-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Th1nkN3st Graph Wrapper System
   ========================================================================== */

/* Graph Wrapper */
.thinknest-graph-wrapper {
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 15px;
  margin: 30px 0;
  box-shadow: 0 0 20px rgba(106, 189, 69, 0.08);
  max-width: 800px;
}

/* Graph Title */
.graph-title {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-bottom: 14px;
  text-align: left;
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Graph Frame with Aspect Ratio */
.thinknest-graph-frame {
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}

.thinknest-graph-frame img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

/* Remove default image styles for wrapped images */
.thinknest-graph-frame img {
  margin: 0;
  filter: none; /* Override the color filters for wrapped images */
}

/* Divider */
.thinknest-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--accent-primary), transparent);
  margin: 30px 0;
  opacity: 0.35;
  max-width: 800px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .thinknest-graph-wrapper {
    padding: 12px;
    margin: 20px 0;
    max-width: 100%;
  }
  
  .graph-title {
    font-size: 0.95rem;
  }
  
  .thinknest-graph-frame {
    padding: 6px;
  }
  
  .thinknest-divider {
    margin: 20px 0;
    max-width: 100%;
  }
}
