/* style.css — Main stylesheet for the site */


@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');




















/* --- New Theme & Typography --- */
body, html {
  margin: 0;
  padding: 0;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  font-size: 16px;
  background-color: #fafafa;
  color: #252525;
}
h1, h2, h3, .logo a, .total-bias, .column-header .bias-score-box, .publication {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  font-weight: bold;
}

.logo img {
    width: 270px;
    margin-left: 75px;
}

p, li, a, input, .description {
   font-family: "Franklin Gothic Condensed", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}






/* --- Page Layout (Mobile-First) --- */
.page-container { display: flex; flex-direction: column; min-height: 100vh; z-index:1000; }
.sidebar { display: none; }
.main-content { width: 100%; padding: 1rem; box-sizing: border-box; }

@media (min-width: 992px) {
  .page-container { flex-direction: row; }
  .sidebar {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 80px; writing-mode: vertical-rl; transform: rotate(180deg);
    border-right: 1px solid #ddd; position: fixed; top:35%;
  }
  .sidebar a {
    text-transform: uppercase; color: #d98806; text-decoration: none;
    letter-spacing: 2px; font-size: 1.5rem; padding: 1rem 0;
  }
  .main-content {
    flex-grow: 1; max-width: 1200px; margin: 0 auto; padding: 2rem 3rem;
  }
}

/* --- Fixed Header --- */
.header-new {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
  background-color: rgba(250, 250, 250, 0.45);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-bottom: 1px solid #efefef;
  border-top: solid 9px black;
}

.main-content {
  padding-top: 80px;
  position:relative;
  z-index:2000;
}
.header-new .logo a {
  font-size: 1.5rem; color: #252525; text-decoration: none; letter-spacing: 1px;
}
.header-new .subscribe a {
  color: #252525; text-decoration: none; border: 1px solid #ccc;
  padding: 0.5rem 1rem; border-radius: 8px; transition: background-color 0.2s;
}
.header-new .subscribe a:hover { background-color: rgba(0,0,0,0.05); }

/* --- Filters --- */
.filters-new {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.filters-new input {
  font: inherit; padding: .5rem .75rem; border-radius: 8px;
  border: 1px solid #ccc; background: #fff; color: #252525; outline: none;
}
.filters-new input[type="search"] { flex-grow: 1; max-width: 300px; }
.filters-new input[type="number"] { width: 120px; }

/* --- Article Viewer --- */
#article-viewer { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid #ddd; min-height: 400px; }
#article-viewer h1 { font-size: 2.5rem; line-height: 1.2; margin: 0 0 0.5rem 0; }
#article-viewer .publication { color: #d98806; text-transform: uppercase; margin-bottom: 1rem; }
#article-viewer .description { font-size: 1.1rem; line-height: 1.2; margin-bottom: 2rem; color:#bebebe; }

/* --- Comparison Section --- */
.comparison-section { display: flex; flex-direction: column; gap: 2rem; }
.bias-column { border: 1px solid #ddd; padding: 1.5rem; border-radius: 12px; }
.column-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1rem; border-bottom: 1px solid #eee; padding-bottom: 1rem;
}
.column-header h2 { margin: 0; font-size: 1rem; }
.column-header .bias-score-box { font-size: 1.75rem; padding: 0.25rem 0.75rem; border-radius: 6px; }
.bias-column.left .bias-score-box { border: 2px solid #000069; color: #000069; }
.bias-column.right .bias-score-box { border: 2px solid #690000; color: #690000; }
.bias-column h3 { font-size: 1rem; color: #888; text-transform: uppercase; letter-spacing: 1px; margin: 1.5rem 0 0.5rem 0; }
.bias-column .headline a { color: #252525; font-weight: bold; font-size: 1.2rem; text-decoration: none; }
.bias-column .headline a:hover { text-decoration: underline; }
.bias-column ul { padding-left: 20px; margin: 0; line-height: 1.6; color: #555; }
.bias-column ul li { margin-bottom: 0.5rem; }

@media (min-width: 768px) {
  .comparison-section { flex-direction: row; gap: 1.5rem; }
  .bias-column { flex: 1; }
  #article-viewer h1 { font-size: 3.25rem; }
}

/* --- Article List --- */
#article-list .article-link {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.1rem 0.5rem 0.1rem; text-decoration: none; color: #555;
  border-bottom: 1px solid #eee; transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
}
#article-list .article-link:hover { background-color: #f0f0f0; color: #252525; }
#article-list .article-link.active { background-color: #252525; color: #fafafa; }
.article-link .headline { flex-grow: 1; padding-right: 1rem; font-weight: bold; }
.article-link .total-bias { font-size: 3rem; margin-right:16px; font-weight:100px; flex-shrink: 0; width: 50px; text-align: right; }

/* --- Utilities & Footer --- */
.loading-row, .end-row { text-align: center; padding: 1.5rem; color: #888; }
#sentinel { height: 1px; }
.footer { text-align: center; padding: 2rem 1rem; color: #888; font-size: 0.9em; }
.footer a { color: #888; text-decoration: none; margin: 0 0.5rem; }
.footer a:hover { text-decoration: underline; }
#date-time {
    position: fixed; bottom: 15px; right: 20px; font-family: 'Orbitron', sans-serif;
    font-size: 4.25rem; font-weight: bold; color: #ccc; text-align: right; pointer-events: none; z-index: 1000; opacity:.3;
}



/* Main container for alignment and spacing */
.legend {
  display: flex;
  align-items: center;
  gap: 1rem; /* Adjust space between items */
  font-family: "Franklin Gothic Medium";
  font-size: 16px;
  margin-bottom: 17px;
}

/* Style for each legend item */
.legend-item {
  display: inline-flex; /* Aligns the pseudo-element and text */
  align-items: center;
  gap: 0.5rem; /* Space between the color box and text */
}

/* Creates the colored square before the text */
.legend-item::before {
  content: '';
  width: 1em; /* Makes the box scale with font size */
  height: 1em;
  display: inline-block;
}

/* Applies the specific colors */
.legend-item.left::before {
  background-color: #0000CD; /* MediumBlue */
}

.legend-item.right::before {
  background-color: #B22222; /* Firebrick Red */
}


/* Add this to the bottom of your style.css file */
#date-time div {
  line-height: 1.1; /* Adjust for tighter or looser spacing */
}



/* --- Add this to the bottom of style.css --- */

/* Container for the share buttons */
.share-buttons {
  margin: 1.5rem 0;
  display: flex;
  gap: 0.75rem;
}

/* Base style for each button */
.share-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  color: #fafafa;
  text-decoration: none;
  font-weight: bold;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  transition: opacity 0.2s;
}

.share-btn:hover {
  opacity: 0.85;
}

/* Brand colors */
.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter  { background-color: #1DA1F2; }
.share-btn.linkedin { background-color: #0A66C2; }
.share-btn.reddit { background-color: #FF4500; }
.share-btn.bluesky { background-color: #0085FF; }
