/* Ana Stiller */
:root {
  --primary-color: #81c14b;
  --secondary-color: #2d2d2d;
  --body-bg: #fff;
  --text-color: #333;
  --link-color: #81c14b;
  --link-hover-color: #5a8c35;
  --header-bg: #2d2d2d;
  --header-text: #fff;
  --entry-bg: #f8f9fa;
  --entry-border: #e9ecef;
  --sidebar-bg: #f8f9fa;
  --footer-bg: #2d2d2d;
  --footer-text: #fff;
}

body {
  font-family: "Source Sans Pro", "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--body-bg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Stilleri - ekşisözlük benzeri */
header {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 0.5rem 0;
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #fff;
}

.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary-color);
}

/* Ana Sayfa Stilleri - ekşisözlük benzeri */
.main-content {
  display: flex;
  flex-wrap: wrap;
}

.content-area {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 300px;
  padding-left: 2rem;
}

@media (max-width: 991px) {
  .sidebar {
    width: 100%;
    padding-left: 0;
    margin-top: 2rem;
  }
}

/* Başlık Stilleri - ekşisözlük benzeri */
.title-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.title-item {
  border-bottom: 1px solid var(--entry-border);
  padding: 0.75rem 0;
  margin: 0;
}

.title-item:last-child {
  border-bottom: none;
}

.title-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

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

.title-meta {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.title-meta span {
  margin-right: 1rem;
}

/* Add these styles to improve the title/category page around line 124 */

@media (max-width: 767px) {
  .title-list {
    margin-top: 10px;
  }

  .title-item {
    border-bottom: 1px solid #444;
    padding: 10px 0;
  }

  .title-link {
    color: #81c14b;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
  }

  .title-meta {
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 5px;
  }

  /* Category page specific styles */
  .category-page h1 {
    color: #81c14b;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
  }

  .category-page .alert-info {
    background-color: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
  }
}

/* Entry Stilleri - ekşisözlük benzeri */
.entry {
  background-color: var(--entry-bg);
  border: 1px solid var(--entry-border);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.entry-content {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.entry-content p {
  margin-bottom: 0.5rem;
}

.entry-content-short {
  max-height: 200px;
  overflow: hidden;
  position: relative;
}

.entry-content-short::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(transparent, var(--entry-bg));
}

.read-more {
  color: var(--link-color);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: right;
  margin-top: 0.5rem;
}

.read-more:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.entry-meta {
  font-size: 0.85rem;
  color: #6c757d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--entry-border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.entry-author {
  font-weight: 500;
}

.entry-date {
  color: #6c757d;
  font-size: 0.85rem;
}

.entry-actions {
  display: flex;
  align-items: center;
}

.entry-action {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
}

.entry-action:hover {
  color: var(--link-color);
}

.entry-action i {
  margin-right: 0.25rem;
}

.liked {
  color: var(--primary-color);
}

.favorited {
  color: #ffc107;
}

/* Entry Actions için Stiller */
.entry-actions {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.entry-actions .btn {
  margin-right: 5px;
}

.like-button.active {
  background-color: #4caf50;
  color: white;
  border-color: #4caf50;
}

.dislike-button.active {
  background-color: #f44336;
  color: white;
  border-color: #f44336;
}

.favorite-button.active {
  background-color: #ffc107;
  color: white;
  border-color: #ffc107;
}

/* Online Users Stilleri */
.online-users {
  margin-top: 1rem;
  background-color: var(--sidebar-bg);
  border-radius: 4px;
  padding: 1rem;
}

.online-users h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.online-user-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.online-user {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  background-color: #f0f0f0;
  font-size: 0.85rem;
}

.online-user img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.online-user.admin {
  background-color: #f8d7da;
}

.online-user.moderator {
  background-color: #fff3cd;
}

.online-user.writer {
  background-color: #d1e7dd;
}

.online-user.novice {
  background-color: #cfe2ff;
}

/* Kategori Stilleri */
.categories {
  margin-top: 2rem;
}

.categories h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.category-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-item {
  margin-bottom: 0.5rem;
}

.category-link {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--sidebar-bg);
  border-radius: 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
}

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

/* Gündem ve Debe Stilleri - ekşisözlük benzeri */
.section-heading {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
  text-transform: lowercase;
}

.trending,
.debe {
  margin-bottom: 2rem;
}

/* Pagination Stilleri */
.pagination {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-link {
  color: var(--link-color);
}

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

/* Form Stilleri */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(129, 193, 75, 0.25);
}

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

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

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

/* Profil Sayfası Stilleri */
.profile-header {
  background-color: var(--entry-bg);
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.profile-info {
  flex: 1;
}

.profile-username {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.generation-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 0.75rem;
}

.profile-rank {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

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

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.stat-label {
  font-size: 0.85rem;
  color: #6c757d;
}

.profile-bio {
  margin-top: 1rem;
  color: #6c757d;
}

.profile-tabs {
  margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
  color: #6c757d;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Footer Stilleri */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 0;
  margin-top: auto;
}

footer h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

footer a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

footer .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

footer .social-links a {
  font-size: 1.25rem;
}

/* Mobil Uyumluluğu - ekşisözlük benzeri */
@media (max-width: 767px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .profile-stats {
    justify-content: center;
  }

  .entry-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .entry-actions {
    margin-top: 0.5rem;
  }

  /* New mobile header styles */
  header {
    background-color: #222;
  }

  header .navbar {
    padding: 0.5rem 0;
  }

  header .container {
    padding: 0 0.5rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
    padding: 0;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
  }

  .navbar-brand img {
    width: 24px;
    height: auto;
    margin-right: 5px;
  }

  .search-form {
    flex: 1;
    margin: 0 0.5rem;
    max-width: 60%;
  }

  .search-form .form-control {
    height: 36px;
    font-size: 0.85rem;
    background-color: #333;
    border-color: #444;
    color: #fff;
  }

  .search-form .form-control::placeholder {
    color: #aaa;
  }

  .search-form .btn {
    background-color: #444;
    color: #fff;
  }

  .mobile-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    background-color: #333;
    border-bottom: 1px solid #444;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    justify-content: space-between;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .mobile-nav-item {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
  }

  .mobile-nav-item.active {
    color: var(--primary-color);
    font-weight: 500;
  }

  /* Add styles for login/register in mobile nav */
  @media (max-width: 767px) {
    .mobile-nav {
      display: flex;
      flex-wrap: nowrap;
      overflow-x: auto;
    }

    .mobile-nav-item:last-child {
      margin-right: 0.75rem;
    }
  }

  /* Hide desktop nav on mobile */
  .navbar-collapse .navbar-nav:not(.ms-auto) {
    display: none;
  }

  /* Remove hamburger button */
  .navbar-toggler {
    display: none;
  }

  /* Fix duplicate site name */
  .navbar-brand span {
    display: none;
  }

  /* Ensure logo is visible */
  .navbar-brand img {
    display: inline-block;
    width: 24px;
    height: auto;
  }

  /* Ensure search form is properly sized */
  .search-form {
    flex: 1;
    margin: 0 0.5rem;
    max-width: 70%;
  }

  /* Ensure mobile nav is visible */
  .mobile-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    background-color: #333;
    border-bottom: 1px solid #444;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  /* Mobil görünüm için logo düzenlemeleri */
  .navbar-brand {
    display: flex !important;
    align-items: center;
    margin-right: 0;
    padding: 0;
  }

  .navbar-brand img {
    max-height: 30px;
    width: auto;
    display: block !important;
  }

  .mobile-logo-container {
    width: auto;
    display: flex;
    align-items: center;
    margin-right: 10px;
  }

  .search-form {
    flex: 1;
    margin-left: 5px;
    max-width: 60%;
  }

  .navbar-toggler {
    display: none !important;
  }

  /* Hamburger menü ikonunu gizle */
  .navbar-toggler-icon {
    display: none !important;
  }

  /* Navbar'ı düzenle */
  .navbar > .container {
    padding: 0 10px;
    display: flex;
    align-items: center;
  }

  /* Mobil menü düzenlemeleri */
  .mobile-nav {
    padding: 5px 0;
    overflow-x: auto;
  }

  /* Add these mobile-specific styles for entry show page around line 1480 */

  /* Entry show page improvements */
  .entry {
    background-color: #1e1e1e !important;
    border: 1px solid #444 !important;
    border-radius: 8px;
    padding: 1.2rem !important;
    margin-bottom: 1.5rem;
  }

  .entry-content {
    color: #e0e0e0 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }

  .entry-header {
    margin-bottom: 15px;
  }

  .entry-author {
    font-weight: 600;
    color: #81c14b !important;
  }

  .entry-time {
    color: #aaa !important;
  }

  .entry-comments h4 {
    color: #81c14b !important;
    font-weight: 600;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
  }

  .comments-container {
    background-color: #2a2a2a !important;
    border-radius: 8px;
    padding: 1rem !important;
    margin-top: 1rem;
  }

  .comment {
    border-bottom: 1px solid #444 !important;
    padding: 12px 0 !important;
  }

  .comment-author {
    color: #81c14b !important;
    font-weight: 600;
  }

  .comment-time {
    color: #aaa !important;
  }

  .comment-content {
    color: #e0e0e0 !important;
    margin-top: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .comment-form textarea {
    background-color: #333 !important;
    border-color: #555 !important;
    color: #e0e0e0 !important;
  }

  .comment-form button {
    background-color: #81c14b !important;
    border-color: #81c14b !important;
  }

  /* Enhance the title in the entry show page */
  h1 a {
    color: #81c14b !important;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.4;
    word-break: break-word;
  }

  /* Enhance the entry action buttons */
  .entry-actions .btn {
    background-color: #333 !important;
    border-color: #555 !important;
    color: #e0e0e0 !important;
    margin-right: 5px;
  }

  .entry-actions .btn:hover {
    background-color: #444 !important;
  }

  .entry-actions .btn-outline-info {
    color: #81c14b !important;
    border-color: #81c14b !important;
  }

  .entry-actions .btn-outline-info:hover {
    background-color: #81c14b !important;
    color: #1a1a1a !important;
  }
}

/* Reklam Alanları Stilleri */
.ad-container {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--entry-bg);
  border-radius: 4px;
  text-align: center;
  overflow: hidden;
}

.ad-container.header {
  margin-bottom: 0;
  padding: 0.5rem 0;
  background-color: var(--header-bg);
}

.ad-container.between-entries {
  margin: 1rem 0;
}

.ad-container.sidebar {
  margin-top: 1.5rem;
}

.ad-label {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Popup Reklam */
.popup-ad {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-ad-content {
  position: relative;
  background-color: white;
  padding: 2rem;
  border-radius: 4px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
}

.popup-ad-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #6c757d;
}

.popup-ad-close:hover {
  color: var(--link-color);
}

/* Profile Photo Upload */
.profile-photo-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.profile-photo-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.profile-photo-upload {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid white;
}

.profile-photo-upload:hover {
  background-color: var(--link-hover-color);
}

.profile-photo-input {
  display: none;
}

/* Dark mode için ek stiller */
.dark-theme {
  --body-bg: #121212;
  --text-color: #e0e0e0;
  --entry-bg: #1e1e1e;
  --entry-border: #333;
  --sidebar-bg: #1e1e1e;
}

.dark-theme .title-link {
  color: var(--primary-color);
}

.dark-theme .entry {
  background-color: var(--entry-bg);
  border-color: var(--entry-border);
}

.dark-theme .entry-content-short::after {
  background: linear-gradient(transparent, var(--entry-bg));
}

/* Admin panel için ek stiller */
.admin-sidebar {
  background-color: var(--secondary-color);
  min-height: calc(100vh - 56px); /* header yüksekliğini çıkar */
  padding: 1rem 0;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link.active {
  border-left: 3px solid var(--primary-color);
}

.admin-sidebar .nav-item {
  margin-bottom: 0.25rem;
}

.admin-content {
  padding: 1.5rem;
}

.admin-card {
  margin-bottom: 1.5rem;
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.admin-card-header {
  background-color: white;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
}

/* Yardımcı sınıflar */
.cursor-pointer {
  cursor: pointer;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ekşi sözlük benzeri pager stili */
.eksi-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.eksi-pager-item {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin: 0 0.25rem;
  border: 1px solid #dee2e6;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.eksi-pager-item:hover {
  background-color: #f0f0f0;
  color: var(--link-color);
}

.eksi-pager-item.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.eksi-pager-item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Ekşi sözlük benzeri arama kutusu */
.search-form {
  position: relative;
}

.search-form .form-control {
  border-radius: 20px;
  padding-right: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.9rem;
}

.search-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.search-form .btn {
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 0 20px 20px 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
}

.search-form .btn:hover {
  color: #fff;
}

.search-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Ekşi sözlük benzeri başlık listesi */
.eksi-title-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.eksi-title-item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.eksi-title-link {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
}

.eksi-title-link:hover {
  color: var(--primary-color);
}

.eksi-title-meta {
  display: flex;
  font-size: 0.8rem;
  color: #777;
  margin-top: 3px;
}

.eksi-title-meta > div {
  margin-right: 15px;
}

.eksi-title-meta i {
  margin-right: 5px;
}

/* Ekşi sözlük benzeri entry stili */
.entry-card {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 1rem;
  box-shadow: none;
}

.entry-card .card-body {
  padding: 1rem 0;
}

.entry-content {
  font-family: "Source Sans Pro", "Arial", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.entry-footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.entry-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-author a {
  font-weight: 500;
  color: #81c14b;
  text-decoration: none;
}

.entry-author a:hover {
  text-decoration: underline;
}

.entry-actions {
  display: flex;
  gap: 0.5rem;
}

.entry-actions .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Ekşi sözlük benzeri başlık stili */
h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Yorum stili */
.comments-container {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.25rem;
  margin-top: 1rem;
}

.comment {
  border-bottom: 1px solid #e9ecef;
  padding: 0.75rem 0;
}

.comment:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.comment-author {
  font-weight: 500;
  color: #81c14b;
  text-decoration: none;
}

.comment-time {
  color: #6c757d;
}

.comment-content {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Entry ekleme formu */
.card-header h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.eksi-entry {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.eksi-entry-content {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.eksi-entry-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #777;
}

.eksi-entry-author {
  font-weight: 500;
}

.eksi-entry-date {
  color: #999;
}

.eksi-entry-actions {
  display: flex;
  gap: 15px;
}

.eksi-entry-action {
  color: #777;
  cursor: pointer;
}

.eksi-entry-action:hover {
  color: var(--primary-color);
}

/* Ekşi sözlük benzeri tema değişkenleri */
.eksi-theme {
  --primary-color: #81c14b;
  --secondary-color: #2d2d2d;
  --body-bg: #fff;
  --text-color: #333;
  --link-color: #81c14b;
  --link-hover-color: #5a8c35;
  --header-bg: #2d2d2d;
  --header-text: #fff;
  --entry-bg: #f8f9fa;
  --entry-border: #e9ecef;
  --sidebar-bg: #f8f9fa;
  --footer-bg: #2d2d2d;
  --footer-text: #fff;
}

.eksi-dark-theme {
  --primary-color: #81c14b;
  --secondary-color: #2d2d2d;
  --body-bg: #121212;
  --text-color: #e0e0e0;
  --link-color: #81c14b;
  --link-hover-color: #5a8c35;
  --header-bg: #1a1a1a;
  --header-text: #fff;
  --entry-bg: #1e1e1e;
  --entry-border: #333;
  --sidebar-bg: #1e1e1e;
  --footer-bg: #1a1a1a;
  --footer-text: #fff;
}

/* Categories section styles */
.categories-section {
  margin-bottom: 2rem;
}

.categories-section h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #81c14b; /* Updated to match the green accent color */
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
  text-transform: lowercase;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.category-item {
  margin-bottom: 0.5rem;
}

.category-link {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #333; /* Darker background for better contrast */
  border-radius: 20px;
  color: #e0e0e0; /* Lighter text for better readability */
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid #444; /* Subtle border */
}

.category-link:hover {
  background-color: #81c14b;
  color: #1a1a1a; /* Darker text on hover for contrast */
}

/* Dark theme for mobile */
@media (max-width: 767px) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }

  .container {
    background-color: #121212;
  }

  /* Improve section heading visibility */
  .section-heading {
    color: #81c14b;
    border-bottom-color: #444;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  /* Improve title item visibility */
  .eksi-title-item {
    border-bottom-color: #444;
    padding: 10px 0;
  }

  .eksi-title-link {
    color: #e0e0e0;
    font-weight: 500;
  }

  .eksi-title-link:hover {
    color: #81c14b;
  }

  /* Improve entry readability */
  .entry-card {
    background-color: #1e1e1e;
    border-color: #333;
    margin-bottom: 1rem;
    padding: 0.75rem;
  }

  .entry-content {
    color: #e0e0e0;
    line-height: 1.6;
  }

  .entry-preview {
    color: #e0e0e0;
    background-color: #1e1e1e;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    line-height: 1.5;
  }

  /* Improve button visibility */
  .read-more {
    background-color: #333;
    color: #81c14b;
    border: 1px solid #444;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 0.5rem;
  }

  /* Improve navigation visibility */
  .mobile-nav-item {
    color: #81c14b;
    font-weight: 500;
  }

  .mobile-nav-item.active {
    color: #fff;
    font-weight: 700;
  }

  /* Improve card styling */
  .card {
    background-color: #1e1e1e;
    border-color: #333;
  }

  .card-title,
  .card-body {
    color: #e0e0e0;
  }

  /* Improve form controls */
  .form-control {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
  }

  .form-control::placeholder {
    color: #aaa;
  }

  /* Improve category badges visibility */
  .category-link {
    padding: 0.5rem 0.85rem;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 8px;
    border: 1px solid #555;
  }

  /* Improve section headings for categories */
  .categories-section h2 {
    color: #81c14b;
    border-bottom-color: #444;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  /* Improve entry meta data */
  .entry-meta,
  .eksi-title-meta {
    color: #aaa;
  }

  /* Improve entry actions */
  .entry-actions .btn {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
  }

  /* Improve entry title */
  h1 {
    color: #e0e0e0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    word-break: break-word;
  }
}

/* Add styles for entry previews on homepage */
.entry-preview {
  font-size: 0.9rem;
  color: #777;
  margin: 0.5rem 0;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (max-width: 767px) {
  .entry-preview {
    color: #bbb;
  }
}

/* Mobile improvements */
@media (max-width: 767px) {
  /* Improve contrast for navigation items */
  .mobile-nav {
    background-color: #333;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 0;
    margin-bottom: 15px;
  }

  .mobile-nav .mobile-nav-item {
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 500;
  }

  .mobile-nav .mobile-nav-item.active {
    background-color: #4caf50;
    border-radius: 4px;
  }

  /* Improve entry readability */
  .entry-card {
    margin-bottom: 15px;
    border-radius: 8px;
  }

  .entry-card .card-body {
    padding: 15px;
  }

  .entry-preview,
  .entry-full {
    font-size: 16px;
    line-height: 1.6;
  }

  .read-more {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 10px;
  }

  .read-more:hover {
    background-color: #45a049;
  }

  /* Improve heading contrast */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #fff;
  }

  /* Improve button visibility */
  .btn-outline-primary,
  .btn-outline-secondary,
  .btn-outline-success,
  .btn-outline-danger,
  .btn-outline-info {
    border-width: 2px;
  }

  /* Improve navbar contrast */
  .navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
  }

  .navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
  }

  /* Fix entry actions spacing */
  .entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
  }
}

/* Bildirim stili */
.entry-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.entry-notification.show {
  opacity: 1;
}

.entry-notification.error {
  background-color: #f44336;
  color: white;
}

.entry-notification.success {
  background-color: #4caf50;
  color: white;
}

.entry-notification.info {
  background-color: #2196f3;
  color: white;
}
