/* 
 * CKBlogWeb - Main Stylesheet
 * Concept: Cyberpunk / High-Tech
 * Author: Antigravity
 */

:root {
  /* Colors */
  --bg-dark: #050505; /* Main background - Deep Black/Gray */
  --bg-card: #0a0a0a; /* Card/Panel background - Darker Gray */
  --text-main: #e0e0e0; /* Main text color - Slightly brighter */
  --text-muted: #b9b9b9; /* Muted text */
  --brand-green: #00ff41; /* Accent: Neon Green */
  --brand-green-glow: rgba(0, 255, 65, 0.4); /* Glow effect */
  --border-color: #4f4f4f; /* Subtle borders - Darker */
  --white: #ffffff;

  --acik-yesil: #4ba34b;

  /* Typography */
  --font-main: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-main: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-code: "Fira Code", "JetBrains Mono", monospace;
  --font-logo: "Oxanium", "Inter", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 
 * 1. Reset & Global Styles 
 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Fix for Mobile Menu Layout Shift */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Footer Fix */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* Pushes footer down */
}

/* Custom Selection Color */
::selection {
  background-color: var(--brand-green);
  color: #000; /* Black text for contrast */
}

/* Scroll Progress Bar */
.progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px; /* Thinner */
  z-index: 1001;
  background: rgb(0 143 36); /* Faint gray track */
}

.progress-bar {
  height: 100%;
  background: var(--brand-green);
  width: 0%;
  box-shadow: none; /* Clean flat look */
  transition: width 0.1s ease;
}

/* 
 * Generic Framed Image & Zoom Lightbox 
 */
.framed-image,
.article-content img:not(.article-header-image) {
  width: 85%;
  height: auto;
  border-radius: 10px; /* Reduced radius */
  border: 2px solid var(--border-color); /* Thinner bezel */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Lift off page */
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: 2rem;
  display: block; /* Ensure block behavior */
}

.framed-image:hover,
.article-content img:not(.article-header-image):hover {
  /* transform removed to keep image static */
  border-color: var(--brand-green); /* Glow bezel on hover */
}

/* Zoom Transition State */
.zoom-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.95);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.zoom-backdrop.active {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(5px);
}

.framed-image.zoomed,
.article-content img:not(.article-header-image).zoomed {
  position: fixed;
  z-index: 2001;
  border-width: 0; /* Remove bezel in full screen if desired, or keep it */
  border-radius: 0; /* Zero radius in view mode for seamlessness, or keep small */
  cursor: zoom-out;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  /* Transform is handled by JS for precise FLIP animation */
  object-fit: contain;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--acik-yesil);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

.error-title {
  color: #af4242 !important;
}

strong {
  color: var(--white);
}

/* 
 * 2. Utilities & Components 
 */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: transparent;
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover {
  background-color: var(--brand-green);
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--brand-green-glow);
  transform: translateY(-1px);
}

/* Search Bar */
.search-container {
  position: relative;
  width: 100%;
  /* Removed max-width limit for header context, now flexible */
  width: 100%;
  margin-bottom: 2rem; /* Spacing in menu */
  padding: 0 2rem; /* Side padding in menu */
}

.search-input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 8px var(--brand-green-glow);
}

/* 
 * 3. Header 
 */
.main-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  /* border-bottom removed, handled by progress bar track */
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  text-decoration: none;
  /* Reset previous styles if any interfering */
  display: flex; /* keep alignment */
  align-items: baseline;
  width: 330px;
  height: 35px;
  object-fit: cover;
}

.logo-main {
  font-family: var(--font-logo);
  font-weight: 700;
  color: #23bc23; /* Reference Green */
  letter-spacing: -2px;
  font-size: 35px; /* Reference Size */
  transition: all 0.5s;
}

.logo:hover .logo-main {
  color: #00ff00; /* Brighter Green on Hover */
}

/* Image Logo Hover Effect */
.logo:hover,
.mobile-menu-logo:hover {
  filter: brightness(1.5);
  transition: filter 0.3s ease;
}

.mobile-menu-logo:hover {
  box-shadow: 0 0 25px rgb(0 255 65 / 40%);
}

.logo .logo-ext {
  font-family: var(--font-logo);
  color: #505860; /* Reference Gray */
  letter-spacing: -2px;
  font-size: 30px; /* Reference Size */
  margin-left: 3px;
  font-weight: 400;
  opacity: 1;
}

@media (max-width: 768px) {
  .logo {
    width: 260px;
    height: 28px;
  }
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-icon {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.social-icon:hover {
  color: var(--brand-green);
  transform: scale(1.1);
}

/* Hamburger Menu */
.hamburger-btn {
  display: block; /* Always visible */
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1002;
  margin-left: var(--spacing-sm);
  position: relative; /* Ensure it stays above overlay if needed, though z-index handles it */
}

.hamburger-btn .icon-close {
  display: none;
}

.hamburger-btn.active .icon-menu {
  display: none;
}

.hamburger-btn.active .icon-close {
  display: block;
}

/* Right-Sliding Sidebar Menu */
/* Right-Sliding Sidebar Menu */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark transparent overlay */
  z-index: 1000; /* Behind panel, above content */
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(2px);
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0; /* Slide from right */
  width: 300px; /* Reverted to fixed width for desktop */
  height: 100%; /* Changed from 100vh to 100% */
  bottom: 0; /* Force stretch */
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 1001; /* Above backdrop */
  display: flex;
  flex-direction: column; /* Changed to column for search bar */
  justify-content: flex-start; /* Alttan itme mantığı için start */
  align-items: center;
  /* Transform for sliding effect */
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  padding-top: 6%; /* Adjust top spacing */
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  padding-bottom: 2rem; /* Alttan boşluk */
}

.mobile-menu-header {
  margin-bottom: 2rem;
  text-align: center;
}

.mobile-logo-link {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.mobile-menu-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md); /* Changed to square (rounded) */
  object-fit: contain;
  border: 2px solid #000;
  box-shadow: 0 0 15px rgb(0 255 65 / 40%);
}

.mobile-menu-panel.active {
  transform: translateX(0);
}

.mobile-menu-links {
  text-align: center;
  width: 100%;
  margin-bottom: auto; /* Arama kutusunu en alta itmek için */
}

/* Mobile search specific */
/* Mobile search specific */
/* Bu kuralı genele yayalım ki hem mobilde hem masaüstünde (ileride) çalışsın */
.search-container {
  width: 100%;
  position: relative;
  display: block;
}

.mobile-menu-panel .search-container {
  margin-top: auto;
}

.search-input {
  width: 100%;
  padding: 12px 45px 12px 15px; /* Icon payı */
  border-radius: 8px;
  border: 1px solid #333;
  background-color: #1a1a1a;
  color: #fff;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box; /* Input tasma sorunu çözümü */
  height: 48px; /* Tıklama alanı/görünüm standardı */
  display: block; /* Garanti olsun */
}

.search-icon {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #666;
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 2; /* Üstte kalması garanti olsun */
}

/* Focus Effects */
.search-container:focus-within .search-icon {
  color: var(--brand-green);
}

.search-container:focus-within .search-input {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.1);
  background-color: #222; /* Focus olunca hafif açalım */
}

/* Search Status */
.search-status {
  padding: 1rem 0;
  margin-bottom: 1rem;
  display: none; /* JS ile açılacak */
}

.status-message {
  font-size: 1.1rem;
  color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.no-results p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.no-results .small {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Zeynep-Style Sliding Menu */
.zeynep {
  width: 100%;
  color: var(--text-main);
  position: relative;
  overflow: hidden; /* Important for sliding context */
}

.zeynep ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.zeynep li {
  border-bottom: none; /* Removed borders */
}

.zeynep li:last-child {
  border-bottom: none;
}

.zeynep li > a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;
  transition: all 0.2s ease;
  text-align: center; /* Ensure text alignment */
}

.zeynep li > a:hover {
  color: var(--brand-green);
  background-color: rgba(255, 255, 255, 0.02);
}

/* Add Arrow for Submenus */
.zeynep li.has-submenu > a::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(-45deg);
  margin-left: 10px;
  transition: border-color 0.2s;
  /* positioning adjustments if needed for perfect center, but inline-block works fine with flex center */
}

.zeynep li.has-submenu > a:hover::after {
  border-color: var(--brand-green);
}

/* Submenu Panel (Off-canvas logic handled inside container) */
.zeynep .submenu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%; /* Cover entire panel */
  height: 100vh; /* Ensure full height coverage if needed, or 100% of parent */
  background-color: var(--bg-card); /* Match panel bg */
  z-index: 20;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  text-align: center; /* Center submenu text */
}

.zeynep .submenu.opened {
  transform: translateX(0);
}

.zeynep .submenu-header {
  padding: 1.5rem;
  background-color: rgba(5, 5, 5, 0.2);
  border-bottom: none; /* Removed border */
  display: flex;
  justify-content: center; /* Center header */
}

.zeynep .submenu-header a {
  display: inline-flex;
  align-items: center;
  color: var(--brand-green);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.zeynep .submenu-header a::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--brand-green);
  border-bottom: 2px solid var(--brand-green);
  transform: rotate(45deg);
  margin-right: 10px;
}

.zeynep label {
  display: block;
  padding: 1.5rem 1.5rem 0.5rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 700;
}

/* 
 * 4. Post Cards (Horizontal List) 
 */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: var(--spacing-xl) 0;
}

.post-card {
  display: flex;
  text-decoration: none; /* For the anchor tag wrapper */
  color: inherit; /* Inherit text color */
  /* background-color: var(--bg-card); REMOVED per user request */
  /* border: 1px solid var(--border-color); REMOVED per user request */
  /* border-radius removed per user request for sharp card corners */
  overflow: hidden;
  transition: all var(--transition-smooth);
  height: 190px; /* Fixed height to match image and accommodate 2-line excerpt */
  cursor: pointer;
}

.post-card:hover {
  /* border-color: var(--brand-green); REMOVED per user request */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  /* transform: translateY(-2px); REMOVED per user request */
}

.post-image {
  width: 300px;
  height: 170px;
  align-self: center; /* Center vertically within the card */
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  /* margin-left removed per user request */
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-fit: cover;
  transition: all 0.4s;
  opacity: 0.8; /* Default opacity */
  border-radius: 10px; /* Added per user request */
}

.post-card:hover .post-image img {
  transform: scale(1); /* Remove zoom */
  opacity: 1; /* Full opacity on hover */
}

.post-content {
  padding: 0.8rem 1rem; /* Updated per user request */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align top */
  flex-grow: 1; /* Take remaining space */
}

.post-category {
  font-family: "Oxanium";
  color: #88af92; /* Specific hex per user request */
  font-size: 0.8rem;
  text-transform: uppercase;
  /* margin-bottom removed as it is moving to meta */
  display: inline-block;
}

.post-title {
  font-size: 1.3rem; /* Updated Font Size */
  line-height: 1.7rem;

  margin-bottom: 0.8rem;
  color: var(--white); /* Ensure title is white */
  transition: color 0.5s ease; /* Ensure smooth transition */
  font-weight: 700;

  display: -webkit-box;
  -webkit-line-clamp: 2; /* İki satır limiti */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card:hover .post-title {
  color: var(--brand-green); /* Slow green transition */
}

.post-card:hover .post-excerpt {
  color: #fff;
}

/* Robust isolation for inline post cards inside articles */
.article-body .post-card.inline-card {
  display: grid !important;
  grid-template-columns: 300px 1fr !important;
  height: 190px !important;
  margin: 2rem 0 !important;
  background-color: #131313 !important;
  border-radius: 10px !important;
  border: none !important;
  padding: 0 !important;
  opacity: 1 !important; /* Force visibility */
  transform: none !important;
  text-decoration: none !important;
  gap: 0 !important;
  overflow: hidden !important;
}

.article-body .inline-card .post-image {
  display: block !important;
  width: 300px !important;
  height: 190px !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.article-body .inline-card .post-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  border-radius: 10px !important;
  opacity: 0.8 !important;
}

.article-body .inline-card:hover .post-image img {
  opacity: 1 !important;
}

.article-body .inline-card .post-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 0.5rem 1.5rem !important;
  background: none !important;
  border: none !important;
}

.article-body .inline-card .post-title {
  display: block !important;
  font-size: 1.3rem !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.2 !important;
  border: none !important;
  text-decoration: none !important;
}

.article-body .inline-card:hover .post-title {
  color: var(--brand-green) !important;
}

.article-body .inline-card .post-excerpt {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  color: var(--text-muted) !important;
  font-size: 0.9rem !important;
  margin: 0 0 0.8rem 0 !important;
  line-height: 1.4 !important;
  min-height: unset !important;
  max-height: unset !important;
}

.article-body .inline-card .post-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.article-body .inline-card .post-meta span {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: #88af92 !important; /* Post category color */
  font-size: 0.8rem !important;
}

.article-body .inline-card .post-meta span:last-child {
  color: var(--text-muted) !important; /* Date color */
}

.article-body .inline-card .post-meta svg {
  margin: 0 !important;
  color: inherit !important;
}

/* Mobile Responsive for Inline Cards */
@media (max-width: 768px) {
  .article-body .post-card.inline-card {
    grid-template-columns: 1fr !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .article-body .inline-card .post-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
  }

  .article-body .inline-card .post-content {
    padding: 1.2rem !important;
  }

  .article-body .inline-card .post-title {
    font-size: 1.2rem !important;
  }

  .article-body .inline-card .post-excerpt {
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
  }
}

/* Specificity fix for cards inside articles */
.article-body .post-card {
  display: flex !important;
  flex-direction: row !important;
  height: 190px !important;
  background-color: transparent !important;
  border: none !important;
  margin: 1.5rem 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  align-items: center !important;
  text-decoration: none !important;
  width: 100% !important;
}

.article-body .post-card:hover {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Reset image styles forced by .article-content img rule */
.article-body .post-card img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  display: block !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}

.article-body .post-card .post-image {
  width: 300px !important;
  height: 190px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.article-body .post-card .post-content {
  padding: 0.8rem 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex-grow: 1 !important;
  background: none !important;
}

.article-body .post-card .post-title {
  font-size: 1.4rem !important;
  color: var(--white) !important;
  margin: 0 0 0.5rem 0 !important;
  padding: 0 !important;
  border: none !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  background: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.article-body .post-card .post-excerpt {
  color: var(--text-muted) !important;
  font-size: 0.95rem !important;
  margin: 0 0 0.8rem 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: unset !important;
  max-height: unset !important;
}

.article-body .post-card .post-meta {
  display: flex !important;
  flex-direction: row !important;
  gap: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.article-body .post-card .post-meta span {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
  background: none !important;
}

.article-body .post-card .post-meta svg {
  margin: 0 !important;
  color: inherit !important;
}

/* Remove inner link hover effect since card is clickable */
.post-title a:hover {
  color: var(--brand-green);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem; /* Updated Font Size */
  margin-bottom: 0.5rem; /* Reduced to 0.5rem per user request */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2 lines max */
  line-clamp: 2; /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.7rem; /* Tam 2 satır yüksekliğini garantiye almak için (line-height'a bağlı olarak) */
  max-height: 2.7rem; /* 3. satırın taşmasını kesinlikle engelle */
  transition: color var(--transition-fast);
}

.post-meta {
  display: flex;
  flex-direction: column; /* Stack vertically per user request */
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.3rem; /* Small gap between category and date */
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-code);
}

/* 
 * 5. Detail Page 
 */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

.article-content {
  min-width: 0; /* Prevents overflow in grid items */
}

.article-header-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  border: 2px solid var(--border-color);
}

.article-body {
  font-size: 1.1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-body pre {
  overflow-x: auto;
  max-width: 100%;
}

/* Zoom Overlay System (Custom Refactor) */
.zoom-overlay-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 10000;
  cursor: zoom-out;
  transition: all 0.5s ease;
}

.zoom-overlay-custom.active {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.zoom-clone {
  position: fixed;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-md);
  z-index: 10001;
  object-fit: cover;
}

.zoom-clone.active {
  top: 50% !important;
  left: 50% !important;
  width: auto !important;
  height: auto !important;
  max-width: 95vw;
  max-height: 95vh;
  transform: translate(-50%, -50%);
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  border: none;
  border-radius: 0;
}

.article-body p {
  margin-bottom: var(--spacing-md);
  color: #c7c7c7;
}

.article-body a {
  color: #e38949;
}

.article-body hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 32px 0;
}

.article-body h2 {
  font-size: 1.8rem;
  margin-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xs);
  /* border-bottom removed per user request */
}

/* Hide H1 inside article body to prevent duplicate titles with the main page header */
.article-body h1 {
  display: none;
}

.article-body ul {
  list-style: disc;
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
}

.article-body ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
}

/* Sidebar */
.sidebar {
  position: relative;
}

.sticky-widget {
  position: sticky;
  top: calc(var(--header-height) + var(--spacing-md));
  background-color: var(--bg-card);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.toc-title,
.toc-link {
  color: var(--text-muted);
  transition: all var(--transition-fast);
  display: block;
  padding: 0.2rem 0;
  font-size: 0.95rem;
}

.toc-link:hover,
.toc-link.active {
  color: var(--brand-green);
}

.toc-title {
  font-family: var(--font-logo);
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* 
 * 6. Games Page Grid 
 */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.game-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition-smooth);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-green);
  box-shadow: 0 10px 20px rgba(0, 255, 65, 0.1);
}

.game-card-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.game-card-body {
  padding: 1rem;
  text-align: center;
}

.game-card-title {
  font-family: var(--font-logo);
  color: var(--white);
  font-size: 1.2rem;
  margin: 0;
}

.game-card:hover .game-card-title {
  color: var(--brand-green);
}

.widget-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
  border-left: 3px solid var(--brand-green);
  padding-left: var(--spacing-xs);
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  padding: 2px 0;
  transition: all 0.2s;
}

.toc-link:hover,
.toc-link.active {
  color: var(--acik-yesil);
  transform: translateX(5px);
  font-weight: bold;
}

/* Comment Section */
.comments-section {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.comment-form {
  background-color: var(--bg-card);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-green);
}

.single-comment {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.avatar {
  width: 50px;
  height: 50px;
  background-color: var(--border-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-meta {
  color: var(--brand-green);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

/* 
 * 6. Responsive Queries 
 */
.mobile-toc {
  display: none; /* Hidden on Desktop */
  background-color: var(--bg-card);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.mobile-toc .toc-title {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.mobile-toc .toc-list {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
    margin-top: var(--spacing-lg); /* Add space below sticky header */
  }

  .sticky-widget {
    position: static;
    margin-bottom: var(--spacing-lg);
    display: none; /* Hide desktop TOC on mobile since we have the top one */
  }

  .mobile-toc {
    display: block; /* Visible on Mobile */
  }
}

@media (max-width: 768px) {
  .mobile-menu-panel {
    width: 85%; /* 85% width ONLY on mobile */
    padding-top: 120px;
  }

  .logo {
    justify-content: center; /* Center logo flex content */
  }

  /* Hamburger already block, removed specific query logic */

  .social-links {
    display: none;
  }

  /* Improve Text Readability on Mobile */
  .container {
    padding: 0 var(--spacing-lg); /* Increase from md to lg (2rem) */
  }

  .article-body {
    padding: 0 var(--spacing-xs); /* Add slight internal padding if needed */
  }

  /* If we want to show search in mobile, we can adapt */
  .search-container.mobile-visible {
    display: block;
    width: 100%;
    order: 3;
    margin-top: 1rem;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .search-container {
    order: 3;
    max-width: 100%;
    margin-top: var(--spacing-sm);
  }

  .main-header {
    height: auto;
    padding: var(--spacing-sm) 0;
  }

  /* Post Card Vertical on Mobile */
  .post-card {
    flex-direction: column;
    height: auto;
  }

  .post-image {
    width: 100%;
    height: auto;
    aspect-ratio: 15/9; /* Maintain requested ratio on mobile */
  }

  .post-content {
    width: 100%;
    padding: var(--spacing-md);
  }

  .post-title {
    font-size: 1.3rem;
    display: block; /* Reset from webkit-box to regular block */
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  .article-header-image {
    height: 250px;
    width: 100%; /* Force full width */
  }

  .framed-image:not(.zoomed),
  .article-content img:not(.article-header-image):not(.zoomed) {
    width: 100% !important; /* Force full width on mobile */
    margin: 1.5rem 0;
  }

  /* Fix Mobile Header Sticking */
  .main-header {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: var(--spacing-sm) 0;
    z-index: 9999;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
  }

  /* Reset body padding since sticky takes space */
  body {
    padding-top: 0;
  }

  /* Fix Footer Links & Logo */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .footer-links {
    flex-direction: column; /* Stack links */
    gap: 0.8rem;
  }
}

/* Separator Line */
.section-separator {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 0;
  width: 100%;
}

/* 
 * 7. Footer 
 */
.main-footer {
  margin-top: 0; /* Removed margin since we have separator and padding */
  border-top: none; /* Using separator instead */
  background-color: var(--bg-card);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

/* New Technopat-Style Footer */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* Logo Area is wider */
  gap: 2rem;
  align-items: start; /* Align to top */
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color); /* Separator for copyright row */
  margin-bottom: 1rem;
}

.footer-col {
  /* Default column style */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Vertical Dividers */
.footer-col:not(:first-child) {
  padding-left: 2rem;
}

/* Column 1: Info */
.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Headers */
.footer-heading {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

/* Lists (Tools / Links) */
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: center;
}

.footer-list li {
  margin: 0;
}

.footer-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  font-size: 14px;
}

.footer-list a:hover {
  color: var(--brand-green);
}

/* Bottom Copyright Row */
.footer-copyright-row {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 1rem;
}

.footer-copyright-row span {
  display: block;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left; /* Keep left align like reference usually does, or center? */
  }

  .footer-col:not(:first-child) {
    border-left: none; /* Remove dividers on mobile */
    padding-left: 0;
    border-top: 1px solid var(--border-color); /* Add horizontal separators? */
    padding-top: 1.5rem;
  }

  /* User request: Center links vertically/horizontally in column context if needed, or just margin auto */
  .footer-col a {
    margin: auto;
  }
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-job-title {
  color: var(--text-muted); /* User requested same color as links */
  font-family: var(--font-code);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
}

.footer-links {
  display: flex;
  gap: 1.5rem; /* Increased gap for better visual separation */
  flex-wrap: nowrap; /* Force single line */
  justify-content: center;
  white-space: nowrap; /* Prevent text wrapping inside links */
}

.footer-links li {
  margin-bottom: 0; /* Reset for horizontal layout */
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--brand-green);
  /* padding-left removed to prevent jitter */
}

/* New Footer Formatting for separated Tools/Policies */
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  justify-self: center;
}

.footer-tools-list {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-tools-list a {
  color: var(--white); /* Brighter than policies */
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  padding: 4px 8px; /* Touch target */
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05); /* Subtle bg for tools */
  border: 1px solid transparent;
}

.footer-tools-list a:hover {
  color: var(--brand-green);
  border-color: var(--brand-green);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.footer-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
  display: none; /* Optional: Hide label if links are self-explanatory, or show it */
}

/* Adjust Existing Policy Links to be smaller/secondary */
.footer-bottom-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom-links li {
  margin: 0;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.85rem; /* Smaller than tools */
  opacity: 0.8;
}

.footer-bottom-links a:hover {
  color: var(--brand-green);
  opacity: 1;
}

.footer-copyright {
  text-align: right;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .footer-copyright {
    text-align: center;
  }
}

/* Load More Button */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.load-more-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-code);
  font-size: 0.9rem;
  padding: 1rem;
  letter-spacing: 1px;
  cursor: pointer; /* User requested pointer */
  transition: color 0.3s ease;
  min-width: auto;
}

.load-more-btn:hover {
  color: var(--brand-green);
}

/* Utility Class for Mobile Menu */
/* Utility Class for Mobile Menu */
body.no-scroll {
  overflow: hidden;
  padding-right: 0px; /* Reset if js tried to add it, handled by scrollbar-gutter now */
}

/* Animations */
/* Scroll Reveal Animations */
/* Post Card Animations */
.post-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out; /* Smooth transition for reveal */
}

/* Class added by JS Observer */
.post-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Detail Page Fade-In Animation */
.detail-anim {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.detail-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* View Transition Exit */
.view-exit {
  opacity: 0;
  transform: translateY(-20px); /* Optional: slight movement up */
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none; /* Prevent clicks during exit */
}

/* 
 * 8. Cookie Consent Popup 
 */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 350px;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--brand-green);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  z-index: 10000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-popup.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-popup-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-title {
  color: var(--brand-green);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-cookie-accept {
  flex: 1;
  padding: 0.5rem;
  background-color: var(--brand-green);
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cookie-accept:hover {
  background-color: #00ff00; /* Brighter */
  box-shadow: 0 0 10px var(--brand-green-glow);
}

.btn-cookie-info {
  flex: 1;
  padding: 0.5rem;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cookie-info:hover {
  border-color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Adjustment */
@media (max-width: 480px) {
  .cookie-popup {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--brand-green);
  }
}

/* 
 * Skeleton Loader Styles 
 */
.skeleton-card {
  display: flex;
  height: 160px; /* Same as post-card */
  overflow: hidden;
  margin-bottom: 0; /* post-list gap handles spacing */
  gap: 0; /* Reset gap if any */
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
  .skeleton-card {
    flex-direction: column;
    height: auto;
  }
}

.skeleton-image {
  width: 300px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 10px;
  background-color: #111; /* Darker placeholder */
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .skeleton-image {
    width: 100%;
    aspect-ratio: 15/9;
    height: auto;
  }
}

.skeleton-content {
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
  width: 100%;
}

.skeleton-title {
  height: 1.3rem;
  width: 80%;
  margin-bottom: 0.8rem;
  background-color: #111;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.skeleton-excerpt {
  height: 0.9rem;
  width: 100%;
  margin-bottom: 0.5rem;
  background-color: #111;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.skeleton-excerpt.short {
  width: 60%;
}

.skeleton-meta {
  margin-top: auto;
  height: 0.85rem;
  width: 40%;
  background-color: #111;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

/* Shimmer Animation */
.skeleton-image::after,
.skeleton-title::after,
.skeleton-excerpt::after,
.skeleton-meta::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* 
 * Detail Page Skeleton Loader 
 */
.skeleton-article {
  padding-top: 1rem;
}

.skeleton-text {
  height: 1rem;
  background-color: #111;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  position: relative;
  overflow: hidden;
}

.skeleton-text.heading {
  height: 2rem;
  width: 60%;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.skeleton-text.paragraph {
  width: 100%;
}

.skeleton-text.paragraph:last-child {
  width: 80%;
}

.skeleton-text::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

/* TOC Skeleton */
.skeleton-toc-item {
  height: 0.9rem;
  background-color: #111;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  position: relative;
  overflow: hidden;
  width: 80%;
}

.skeleton-toc-item:nth-child(even) {
  width: 60%;
}

.skeleton-toc-item:nth-child(3n) {
  width: 90%;
}

.skeleton-toc-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

/* Generic Skeleton Loading Class (For Header Elements) */
.skeleton-loading {
  background-color: #111 !important;
  color: transparent !important; /* Hide text if any */
  border-color: #111 !important;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.skeleton-loading img {
  opacity: 0 !important; /* Hide real image while loading */
}

/* Specific adjustment for big header elements */
h1.skeleton-loading {
  border-radius: 8px;
  min-height: 2.5rem;
  width: 70%;
}

img.skeleton-loading {
  min-height: 300px; /* Preserve space */
}

span.skeleton-loading {
  display: inline-block;
  min-width: 100px;
  min-height: 1.2rem;
}

/* Add shimmer to this class too */
.skeleton-loading::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

/* Skeleton Header Image Placeholder (Div) */
.skeleton-header-placeholder {
  width: 100%;
  height: 400px; /* Match .article-header-image */
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  background-color: #111;
  position: relative;
  overflow: hidden;
}

/* Ensure shimmer works on this div via the generic class */
.skeleton-header-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
  border: 2px solid var(--bg-dark); /* Creates padding effect */
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-green);
}

/* --- Highlight.js and Code Block Styles --- */

.highlighted-line {
  background-color: #434343;
  display: block;
}

.code-block {
  position: relative;
  margin-bottom: 1.5rem;
}

.copy-button {
  background-image: url("/wwwroot/img/copy.svg");
  background-size: 15px 15px; /* smaller so it fits well inside the 25x25 button */
  background-repeat: no-repeat;
  background-position: center;
  width: 28px;
  height: 28px;
  background-color: #2b2f2b;

  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 10;
}

.copy-button:hover {
  filter: brightness(1.2);
  background-color: #3b3f3b;
}

.copy-button:active {
  transform: scale(0.95);
}

/* Highlight.js line number styles */
.code-block pre code {
  border-radius: 4px;
  padding: 1rem;
  border: 1px solid #333333;
  background-color: #1a1a1a;
  display: block;
  overflow-x: auto;
  color: #dcdcdc;
  font-size: 0.85rem;
}

/* line number */
.hljs-ln-numbers {
  border-right: 1px solid #4f4f4f;
  text-align: right;
  padding-right: 12px !important;
  vertical-align: top;
}

/* line number color*/
.hljs-ln {
  color: #e3e3e3;
}

/* line number */
.hljs-ln-code {
  padding-left: 16px !important;
}

.hljs-ln-n {
  color: #858585 !important;
}

.hljs-comment {
  font-style: normal;
}
