/* Custom styles for Daily Media Bias */

/* Scale banner logo to 50% */
.banner img {
  max-width: 50%;
  height: auto;
}

/* Smaller headlines on home page */
.article-list h1 {
  font-size: 1.1em;
}

/* Wider content area */
.header div, .container, .copyright, .menu {
  max-width: 1400px;
}

/* Section title for home page */
.section-title {
  font-size: 1.2em;
  color: #666;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

/* Archive link */
.archive-link {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #ddd;
  text-align: center;
}

.archive-link a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.archive-link a:hover {
  color: #000;
  text-decoration: underline;
}

/* ===== Bias Types Section ===== */

/* Category badge */
.bias-category {
  margin-bottom: 0.5em;
}

.bias-category a {
  display: inline-block;
  background: #e8e8e8;
  color: #555;
  padding: 0.25em 0.75em;
  border-radius: 3px;
  font-size: 0.85em;
  text-decoration: none;
}

.bias-category a:hover {
  background: #ddd;
  color: #333;
}

/* Description under title */
.bias-description {
  font-size: 1.1em;
  color: #666;
  font-style: italic;
  margin-top: 0.5em;
  border-left: 3px solid #ddd;
  padding-left: 1em;
}

/* Related biases box */
.related-biases {
  margin-top: 2em;
  padding: 1em;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 5px;
}

.related-biases h3 {
  margin-top: 0;
  font-size: 1em;
  color: #666;
}

.related-biases ul {
  margin: 0;
  padding-left: 1.5em;
}

.related-biases li {
  margin: 0.5em 0;
}

.related-biases a {
  color: #333;
}

.related-biases a:hover {
  color: #000;
}

/* Back navigation */
.bias-navigation {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #ddd;
}

.bias-navigation .back-link {
  color: #666;
  text-decoration: none;
}

.bias-navigation .back-link:hover {
  color: #333;
  text-decoration: underline;
}

/* Bias types index page */
.bias-types-content h2 {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #eee;
  color: #333;
}

.bias-types-content h2:first-of-type {
  border-top: none;
  margin-top: 1em;
}

.bias-types-content ul {
  list-style: none;
  padding-left: 0;
}

.bias-types-content ul li {
  margin: 0.5em 0;
  padding-left: 1.5em;
  position: relative;
}

.bias-types-content ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #999;
}

.bias-types-content ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.bias-types-content ul li a:hover {
  color: #000;
  text-decoration: underline;
}

/* Category descriptions in index */
.bias-types-content > p:first-of-type {
  font-size: 1.1em;
  color: #555;
}

.bias-types-content em {
  color: #666;
  font-style: italic;
}

.bias-types-content hr {
  border: none;
  border-top: 2px solid #ddd;
  margin: 2em 0;
}

/* ===== Archive Page ===== */

.archive-title {
  font-size: 1.5em;
  margin-bottom: 1.5em;
  color: #333;
}

.archive-month {
  margin-bottom: 2em;
}

.month-header {
  font-size: 1.2em;
  color: #555;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

.archive-day {
  margin-bottom: 1.5em;
  margin-left: 1em;
}

.day-header {
  font-size: 1em;
  color: #666;
  margin-bottom: 0.5em;
  font-weight: 500;
}

.day-posts {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.day-posts li {
  padding: 0.4em 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: baseline;
  gap: 1em;
}

.day-posts li:last-child {
  border-bottom: none;
}

.post-time {
  color: #999;
  font-size: 0.85em;
  min-width: 70px;
}

.day-posts a {
  color: #333;
  text-decoration: none;
  flex: 1;
}

.day-posts a:hover {
  color: #000;
  text-decoration: underline;
}

.post-category {
  font-size: 0.8em;
  color: #888;
  background: #f0f0f0;
  padding: 0.15em 0.5em;
  border-radius: 3px;
}
