/* ============================================
   POST PAGE ENHANCEMENTS - MODERN MINIMAL DESIGN
   ============================================ */

/* Article Header (inside article-main) */
.article-header {
  margin: 0 0 3rem 0;
  padding: 0;
  text-align: center;
}

.article-category-link a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.article-category-link a:hover {
  opacity: 0.8;
}

.article-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  color: #1e3a5f;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.03em;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary, #1a202c);
  font-size: 0.9rem;
}

.meta-primary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-primary span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-secondary, #94a3b8);
}

.meta-primary span::before {
  content: '•';
  color: var(--text-secondary, #cbd5e0);
  font-size: 0.7rem;
}

.meta-primary span:first-child::before {
  display: none;
}

.article-featured-image {
  margin: 0 0 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Layout Grid - 2 Column Layout (Toolbox + Content) */
.article-layout {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 1.5rem;
  align-items: start;
}

.article-sidebar-left {
  grid-column: 1;
  position: sticky;
  top: 110px;
  height: fit-content;
}

.article-main {
  grid-column: 2;
  max-width: 100%;
  width: 100%;
  width: 100%;
  padding: 2rem 1.5rem;
}

.article-sidebar {
  display: none;
}

/* Left Toolbox */
.article-toolbox {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toolbox-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.toolbox-btn:hover {
  background: #a6a6a6;
  color: white;
  border-color: #a6a6a6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.toolbox-btn.active {
  background: #a6a6a6;
  color: white;
  border-color: #a6a6a6;
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.toolbox-btn i {
  font-size: 1.1rem;
}

/* Toolbox Progress Indicator */
.toolbox-progress {
  width: 48px;
  height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  margin-top: auto;
}

.progress-circle {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.progress-percent {
  font-size: 0.7rem;
  font-weight: 700;
  color: #a6a6a6;
  z-index: 1;
}

/* Toolbox Tooltip */
.toolbox-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 60px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.toolbox-btn:hover::after {
  opacity: 1;
}

/* TOC Panel (Floating) */
.toc-panel {
  position: fixed;
  left: 50%;
  top: 110px;
  transform: translateX(-700px);
  width: 280px;
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-height: calc(100vh - 130px);
  overflow: hidden;
  z-index: 100;
  display: none;
}

.toc-panel.active {
  display: block;
}

.toc-header {
  padding: 1.25rem 1.5rem;
  background: var(--secondary-bg, #f8fafc);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1a202c);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.toc-close:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #a6a6a6;
}

.toc-content {
  padding: 1.5rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.toc-content::-webkit-scrollbar {
  width: 4px;
}

.toc-content::-webkit-scrollbar-track {
  background: transparent;
}

.toc-content::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.2);
  border-radius: 2px;
}

.toc-content::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.4);
}

#tocList {
  list-style: none;
  margin: 0;
  padding: 0;
}

#tocList li {
  margin-bottom: 0.5rem;
}

#tocList a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary, #64748b);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  border-radius: 6px;
  transition: all 0.3s ease;
}

#tocList a:hover {
  background: var(--secondary-bg, #f8fafc);
  color: #a6a6a6;
}

#tocList a.active {
  background: rgba(102, 126, 234, 0.1);
  color: #a6a6a6;
  font-weight: 600;
}

#tocList .toc-h2 a {
  padding-left: 0.75rem;
}

#tocList .toc-h3 a {
  padding-left: 1.5rem;
  font-size: 0.85rem;
}

#tocList .toc-h4 a {
  padding-left: 2.25rem;
  font-size: 0.8rem;
}

/* Font Size Adjuster Panel */
.font-size-panel {
  position: fixed;
  left: 50%;
  top: 110px;
  transform: translateX(-700px);
  width: 280px;
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 100;
  display: none;
}

.font-size-panel.active {
  display: block;
}

.font-size-header {
  padding: 1.25rem 1.5rem;
  background: var(--secondary-bg, #f8fafc);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.font-size-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1a202c);
}

.font-size-body {
  padding: 1.5rem;
}

.font-size-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.font-size-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--secondary-bg, #f8fafc);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.font-size-option:hover {
  border-color: #a6a6a6;
}

.font-size-option.active {
  background: rgba(102, 126, 234, 0.1);
  border-color: #a6a6a6;
}

.font-size-option-label {
  font-weight: 600;
  color: var(--text-primary, #1a202c);
}

.font-size-option-preview {
  color: var(--text-secondary, #64748b);
}

/* Bookmark Panel */
.bookmark-panel {
  position: fixed;
  left: 50%;
  top: 110px;
  transform: translateX(-700px);
  width: 280px;
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 100;
  display: none;
}

.bookmark-panel.active {
  display: block;
}

.bookmark-header {
  padding: 1.25rem 1.5rem;
  background: var(--secondary-bg, #f8fafc);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bookmark-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1a202c);
}

.bookmark-body {
  padding: 1.5rem;
  text-align: center;
}

.bookmark-status {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.bookmark-message {
  color: var(--text-secondary, #64748b);
  margin-bottom: 1.5rem;
}

.bookmark-action-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #a6a6a6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bookmark-action-btn:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

/* Share Panel */
.share-panel {
  position: fixed;
  left: 50%;
  top: 110px;
  transform: translateX(-700px);
  width: 240px;
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 100;
  display: none;
}

.share-panel.active {
  display: block;
}

.share-header {
  padding: 1rem 1.25rem;
  background: var(--secondary-bg, #f8fafc);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.share-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #1a202c);
}

.share-body {
  padding: 1rem;
}

.share-message {
  display: none;
}

.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  color: var(--text-primary, #1a202c);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn i {
  font-size: 1.5rem;
}

.share-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.share-btn.share-twitter:hover {
  background: #1da1f2;
  color: white;
  border-color: #1da1f2;
}

.share-btn.share-facebook:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

.share-btn.share-linkedin:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.share-btn.share-copy:hover {
  background: #a6a6a6;
  color: white;
  border-color: #a6a6a6;
}

/* Article Content */
.article-hero {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary, #1a202c);
}

.article-hero h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary, #1a202c);
  letter-spacing: -0.01em;
}

.article-hero h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary, #1a202c);
}

.article-hero h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-primary, #1a202c);
}

.article-hero p {
  margin: 0 0 1.5rem 0;
}

.article-hero img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.article-hero ul,
.article-hero ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-hero li {
  margin: 0.5rem 0;
}

.article-hero blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid #a6a6a6;
  background: var(--secondary-bg, #f8fafc);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary, #64748b);
}

.article-hero code {
  background: var(--secondary-bg, #f8fafc);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  color: #e83e8c;
}

.article-hero pre {
  background: #2d3748;
  color: #f7fafc;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.article-hero pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Article Tags */
.article-tags {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--secondary-bg, #f8fafc);
  border-radius: 12px;
}

.article-tags h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--text-primary, #1a202c);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-item {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  color: var(--text-secondary, #64748b);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: #a6a6a6;
  color: white;
  border-color: #a6a6a6;
  transform: translateY(-2px);
}

/* Related Posts - Removed (no longer used) */

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color, #e2e8f0);
}

.nav-post {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-post.nav-prev {
  text-align: left;
}

.nav-post.nav-next {
  text-align: right;
}

.nav-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-post.nav-next .nav-label {
  justify-content: flex-end;
}

.nav-post-link {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--secondary-bg, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-post-link:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.nav-post-link img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-post.nav-next .nav-post-link {
  flex-direction: row-reverse;
  text-align: right;
}

.nav-post-content {
  flex: 1;
}

.nav-post-content h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #1a202c);
}

.nav-post-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.5;
}



/* Admin Edit Bar */
.admin-edit-bar {
  margin: 2rem 0;
  padding: 1.5rem;

  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: #a6a6a6;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.admin-edit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-info {
  color: white;
  font-size: 0.9rem;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  background: var(--secondary-bg, #f8fafc);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  padding: 0.75rem 0;
}

.breadcrumb-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.breadcrumb-item::after {
  content: '/';
  color: #cbd5e0;
  margin-left: 0.5rem;
}

.breadcrumb-item:last-child::after {
  display: none;
}

.breadcrumb-item a {
  color: #94a3b8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #a6a6a6;
}

.breadcrumb-item.active span {
  color: #94a3b8;
  font-weight: 400;
}

/* AdSense Containers */
.adsense-header,
.adsense-content,
.adsense-footer {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--secondary-bg, #f8fafc);
  border: 1px dashed var(--border-color, #e2e8f0);
  border-radius: 8px;
  text-align: center;
}

/* Font Size Classes */
.article-hero.font-small {
  font-size: 1rem;
}

.article-hero.font-normal {
  font-size: 1.125rem;
}

.article-hero.font-large {
  font-size: 1.3rem;
}

.article-hero.font-xlarge {
  font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1400px) {

  .toc-panel,
  .font-size-panel,
  .bookmark-panel,
  .share-panel {
    transform: translateX(-650px);
  }
}

@media (max-width: 1200px) {
  .article-layout {
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
  }

  .toc-panel,
  .font-size-panel,
  .bookmark-panel,
  .share-panel {
    transform: translateX(-550px);
  }
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .article-sidebar-left {
    display: none;
  }

  .article-title {
    font-size: 2rem;
  }

  /* Show toolbox as mobile FAB */
  .toc-panel,
  .font-size-panel,
  .bookmark-panel,
  .share-panel {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 400px;
  }
}

@media (max-width: 768px) {

  /* Article Main - Full Width Mobile */
  .article-main {
    padding: 1rem;
    max-width: 100%;
  }

  /* Article Header - Mobile Optimized */
  .article-header {
    margin: 0 0 2rem 0;
  }

  .article-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  /* Meta - Stack Vertically */
  .article-meta {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .article-author {
    width: 100%;
    justify-content: center;
  }

  .author-avatar {
    width: 36px;
    height: 36px;
  }

  .author-name {
    font-size: 0.85rem;
  }

  .meta-primary {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .meta-primary span {
    font-size: 0.8rem;
  }

  /* Featured Image - Full Width */
  .article-featured-image {
    margin: 0 -1rem 1.5rem -1rem;
    border-radius: 0;
  }

  /* Article Content - Mobile Typography */
  .article-hero {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-hero h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }

  .article-hero h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
  }

  .article-hero h4 {
    font-size: 1.1rem;
  }

  .article-hero p {
    margin-bottom: 1.25rem;
  }

  .article-hero img {
    margin: 1.5rem -1rem;
    border-radius: 0;
    max-width: calc(100% + 2rem);
  }

  .article-hero blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .article-hero pre {
    margin: 1.5rem -1rem;
    border-radius: 0;
    font-size: 0.85rem;
  }

  /* Tags - Mobile */
  .article-tags {
    margin: 2rem 0;
    padding: 1.5rem;
  }

  .tags-container {
    gap: 0.5rem;
  }

  .tag-item {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  /* Post Navigation - Stack */
  .post-navigation {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0 1rem;
    padding: 1.5rem 0;
  }

  .nav-post {
    text-align: left;
  }

  .nav-post.nav-next .nav-label {
    justify-content: flex-start;
  }

  .nav-post.nav-next .nav-post-link {
    flex-direction: row;
    text-align: left;
  }

  .nav-post-link {
    padding: 1rem;
  }

  .nav-post-link img {
    width: 60px;
    height: 60px;
  }

  .nav-post-content h5 {
    font-size: 0.9rem;
  }

  .nav-post-content p {
    font-size: 0.8rem;
  }



  /* Breadcrumb - Mobile */
  .breadcrumb-nav {
    padding: 0.5rem 0;
    display: block !important;
  }

  .breadcrumb-container {
    padding: 0 1rem;
  }

  .breadcrumb-item {
    font-size: 0.75rem;
  }

  /* Mobilde sadece home icon ve aktif sayfa göster */
  .breadcrumb-item:not(:first-child):not(:last-child) {
    display: none;
  }

  .breadcrumb-item:first-child span {
    display: none;
  }

  .breadcrumb-item.active span {
    display: inline-block;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .breadcrumb-item i {
    margin: 0;
    font-size: 0.9rem;
  }
  
  .breadcrumb-item::after {
    margin: 0 0.4rem;
  }

  /* Toolbox - Hide on Mobile (use FAB instead) */
  .article-sidebar-left {
    display: none !important;
  }

  /* Panels - Full Width Mobile */
  .toc-panel,
  .font-size-panel,
  .bookmark-panel,
  .share-panel {
    width: calc(100% - 2rem);
    max-width: 100%;
    left: 1rem;
    right: 1rem;
    transform: none;
    top: 80px;
  }

  .toc-panel.active,
  .font-size-panel.active,
  .bookmark-panel.active,
  .share-panel.active {
    display: block;
  }

  /* Admin Edit Bar - Mobile */
  .admin-edit-bar {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }

  .admin-edit-btn {
    width: 100%;
    justify-content: center;
  }



  /* Adsense - Mobile Optimized */
  .adsense-header,
  .adsense-content,
  .adsense-footer {
    margin: 1.5rem -1rem;
    padding: 0.75rem;
  }

  .share-buttons {
    flex-wrap: wrap;
  }

  .related-post-item {
    flex-direction: column;
  }

  .related-post-image {
    width: 100%;
    height: 200px;
  }
}

/* Dark Mode Support */
html[data-theme="dark"] .article-main,
html[data-theme="dark"] .article-hero,
html[data-theme="dark"] .article-title,
html[data-theme="dark"] .article-header h1,
html[data-theme="dark"] .article-hero h2,
html[data-theme="dark"] .article-hero h3,
html[data-theme="dark"] .article-hero h4 {
  color: #f7fafc;
}

html[data-theme="dark"] .article-main {
  background: rgba(26, 32, 44, 0.5);
}

html[data-theme="dark"] .nav-post-link,
html[data-theme="dark"] .share-btn {
  background: rgba(45, 55, 72, 0.5);
  border-color: #4a5568;
}

html[data-theme="dark"] .nav-post-link:hover {
  background: rgba(45, 55, 72, 0.8);
}

html[data-theme="dark"] .article-tags {
  background: rgba(45, 55, 72, 0.5);
}

html[data-theme="dark"] .tag-item {
  background: rgba(45, 55, 72, 0.8);
  border-color: #4a5568;
  color: #cbd5e0;
}

html[data-theme="dark"] .breadcrumb-nav {
  background: rgba(45, 55, 72, 0.5);
  border-color: #4a5568;
}

html[data-theme="dark"] .article-footer {
  border-color: #4a5568;
}

html[data-theme="dark"] .nav-button {
  background: rgba(45, 55, 72, 0.5);
  border-color: #4a5568;
  color: #f7fafc;
}

/* Print Styles */
@media print {

  .article-sidebar,
  .article-sidebar-left,
  .breadcrumb-nav,
  .article-footer,
  .admin-edit-bar,
  .post-navigation,
  .adsense-header,
  .adsense-content,
  .adsense-footer {
    display: none !important;
  }

  .article-layout {
    grid-template-columns: 1fr !important;
  }

  .article-main {
    padding: 0;
    max-width: 100%;
  }
}

/* Ext
ra Small Devices (max-width: 480px) */
@media (max-width: 480px) {
  .article-main {
    padding: 0.75rem;
  }

  .article-title {
    font-size: 1.5rem;
    line-height: 1.35;
  }

  .author-avatar {
    width: 32px;
    height: 32px;
  }

  .author-name {
    font-size: 0.8rem;
  }

  .meta-primary {
    flex-wrap: wrap;
    font-size: 0.75rem;
  }

  .meta-primary span {
    font-size: 0.75rem;
  }

  .article-hero {
    font-size: 0.95rem;
  }

  .article-hero h2 {
    font-size: 1.35rem;
  }

  .article-hero h3 {
    font-size: 1.15rem;
  }

  .article-hero h4 {
    font-size: 1rem;
  }

  .article-hero pre {
    font-size: 0.8rem;
    padding: 1rem;
  }

  .tag-item {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }

  .nav-post-link {
    padding: 0.75rem;
  }

  .nav-post-link img {
    width: 50px;
    height: 50px;
  }



  /* Panels - Smaller on tiny screens */
  .toc-panel,
  .font-size-panel,
  .bookmark-panel,
  .share-panel {
    width: calc(100% - 1rem);
    left: 0.5rem;
    right: 0.5rem;
  }

  .toc-header,
  .font-size-header,
  .bookmark-header,
  .share-header {
    padding: 1rem;
  }

  .toc-header h4,
  .font-size-header h4,
  .bookmark-header h4,
  .share-header h4 {
    font-size: 0.9rem;
  }

  .toc-content,
  .font-size-body,
  .bookmark-body,
  .share-body {
    padding: 1rem;
  }
}

/* Right Sidebar - Related Posts (Desktop Only) */
.article-sidebar-right {
  display: none;
  /* Mobilde gizli */
}

@media (min-width: 1200px) {
  .article-sidebar-right {
    display: block;
    position: sticky;
    top: 110px;
    height: fit-content;
    max-height: calc(100vh - 130px);
    width: 320px;
  }

  .article-layout {
    grid-template-columns: 80px 1fr 320px;
    gap: 2rem;
  }

  .article-main {
    max-width: 800px;
  }
}

.related-posts-widget {
  background: var(--secondary-bg, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.related-posts-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #a6a6a6 0%, #737373 100%);
  color: white;
}

.related-posts-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-posts-list {
  padding: 1rem;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.related-posts-list::-webkit-scrollbar {
  width: 4px;
}

.related-posts-list::-webkit-scrollbar-track {
  background: transparent;
}

.related-posts-list::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 2px;
}

.related-posts-list::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.6);
}

.related-post-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--card-bg, white);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.related-post-item:last-child {
  margin-bottom: 0;
}

.related-post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #a6a6a6;
}

.related-post-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-image img {
  transform: scale(1.1);
}

.related-post-content {
  flex: 1;
  min-width: 0;
}

.related-post-content h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.related-post-content h5 a {
  color: var(--text-primary, #2d3748);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-content h5 a:hover {
  color: #a6a6a6;
}

.related-post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
}

.related-post-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.related-post-meta i {
  font-size: 0.7rem;
}

/* Dark Mode */
[data-theme="dark"] .related-posts-widget {
  background: rgba(26, 32, 44, 0.95);
  border-color: #4a5568;
}

[data-theme="dark"] .related-post-item {
  background: rgba(45, 55, 72, 0.95);
  border-color: #4a5568;
}

[data-theme="dark"] .related-post-item:hover {
  border-color: #63b3ed;
}

[data-theme="dark"] .related-post-content h5 a {
  color: #f7fafc;
}

[data-theme="dark"] .related-post-content h5 a:hover {
  color: #63b3ed;
}

[data-theme="dark"] .related-post-meta {
  color: #a0aec0;
}

