* {
  font-family: serif;
}
a {
  color: #0366d6;
}

/* Author links should match default text color, not blue */
a[href*="/yazar/"],
.article-meta a[role="button"],
.card-title a[role="button"] {
  color: inherit !important;
  text-decoration: none;
}

a[href*="/yazar/"]:hover,
.article-meta a[role="button"]:hover,
.card-title a[role="button"]:hover {
  color: inherit !important;
  text-decoration: none;
}

code {
  color: #e01a76;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.dark-reader *:not(#darkModeToggle):not(i#darkModeToggle){
  color: #FFF;
  background-color: #000 !important;
  font-family: serif !important;
}

/* Dark mode toggle must be white and visible */
.dark-reader #darkModeToggle,
.dark-reader i#darkModeToggle {
  color: #FFF !important;
  background-color: transparent !important;
}

.dark-reader hr{
  background-color: red; height: 1px; border: 0;
}
.dark-reader .alert-danger{
  color: #721c24 !important;
  background-color: #f8d7da !important;
  border-color:#f5c6cb;
}

.dark-reader .list-group-item{
  border-bottom: 1px solid rgba(255,255,255,.125);
}

.dark-reader .navbar-toggler-icon{
  background-image :url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;

}

/* Dark mode toggle icon styling */
#darkModeToggle {
  color: #212529;
  transition: color 0.2s ease;
  background-color: transparent !important;
}

#darkModeToggle:hover {
  color: #0366d6;
  opacity: 0.8;
}

/* Ensure dark mode toggle icon is visible in dark mode - must override .dark-reader * */
.dark-reader #darkModeToggle,
.dark-reader i#darkModeToggle,
.dark-reader #darkModeToggle.fa,
.dark-reader #darkModeToggle.fa-sun-o,
.dark-reader #darkModeToggle.fa-moon-o {
  color: #FFF !important;
  background-color: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  font-family: "FontAwesome" !important;
}

.dark-reader #darkModeToggle:hover,
.dark-reader i#darkModeToggle:hover {
  color: #FFF !important;
  opacity: 0.8 !important;
}

.dark-reader .navbar {
  background-color: #000 !important;
}
.dark-reader .list-group-item-action{
  color:white !important;
}
.dark-reader .badge-dark{
  background-color: grey !important;
  color:black;
}
.special-header{
  text-align: right;
  display: block; 
  border-bottom: 1px solid;
  font-weight: bolder;
  font-size:small;
  padding-bottom: 3px;
}

.btn {
  border-radius: 0;
}
.dark-reader .btn , .dark-reader .tag {
  border-color: #000 !important;
  color: white !important;
}
.no-border{
  border: 0px !important;
}

.tag {
  font-weight: 100;
  border-radius: 0;
  font-size:x-small;
  margin-right: 3px;
  font-family: Arial, Helvetica, sans-serif;
  padding:0px 3px;
  zoom: 1;
  color: #212529;
  border:1px solid #f8f9fa;
  background-color: #f8f9fa;
}

/* Base font size for better readability - using rem for root-relative sizing */
html {
  font-size: 18px; /* Increased base size for desktop */
}

body {
  font-size: 1.125rem; /* 20.25px on desktop - larger for better readability */
  line-height: 1.4;
}

.reader {
  margin: auto 20%;
  font-size: 1.25rem; /* 22.5px - larger for better reading on desktop */
  display: block !important;
  visibility: visible !important;
  line-height: 1.4;
}

.article-content {
  display: block !important;
  visibility: visible !important;
}

.article-body {
  display: block !important;
  visibility: visible !important;
  font-size: 1.125rem; /* 20.25px base - larger for desktop */
  line-height: 1.4;
}

.article-body p {
  display: block !important;
  margin-bottom: 1.5em; /* Relative to font-size */
}

.article-title {
  font-size: 2rem; /* 36px - larger for headings on desktop */
  line-height: 1.4;
  margin-bottom: 1em;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.4;
}

.list-group-item {
  font-size: 1.125rem; /* 20.25px - larger for desktop */
  line-height: 1.4;
}

/* Article metadata styling for better layout with long author names */
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-meta .btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  flex-shrink: 1;
}

.article-meta time {
  flex-shrink: 0;
}

@media only screen and (max-width: 1400px) {
  .reader {
    margin: auto 10%;
    font-size: 1.25rem; /* Keep larger size for medium screens */
  }
}

@media only screen and (max-width: 768px) {
  html {
    font-size: 16px; /* Keep base size same for mobile */
  }
  
  .reader {
    margin: auto 5%;
    font-size: 1rem; /* 16px on mobile - comfortable reading size */
    line-height: 1.4;
  }
  
  body {
    font-size: 1rem; /* 16px */
  }
  
  .article-title {
    font-size: 1.5rem !important; /* 24px on mobile */
    line-height: 1.4;
  }
  
  .article-body {
    font-size: 1rem; /* 16px */
    line-height: 1.4;
  }
  
  .list-group-item {
    font-size: 0.9375rem; /* 15px - slightly smaller for list items */
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-size: 1.125rem; /* 18px for headings on mobile */
    line-height: 1.4;
  }
  
  /* Reduce date font size on mobile to accommodate long author names */
  .article-meta time {
    font-size: 0.875rem !important; /* 14px - smaller font for date on mobile */
  }
  
  /* Allow author name to take more space on mobile */
  .article-meta a[role="button"] {
    max-width: calc(100% - 120px); /* Reserve space for date */
    min-width: 0;
  }
}



