/* 🌌 Background + Base Reset */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d2236; /* dark navy */
    color: #e0eaf3; /* soft white-blue */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 🧭 Header Styling */
.site-header {
    position: fixed;
    width: 98%;
    z-index: 1000; 
    background-color: rgba(13, 34, 54, 0.9); /* semi-transparent navy */
    padding: 1.2rem 2rem;
    border-bottom: 2px solid #17365a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.header-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.content-wrapper {
    padding-top: 100px; /* Make sure this pushes below fixed header */
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    height: 100px;
    width: auto;
    vertical-align: middle;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    color: #61a0d1;
    margin: 0;
    text-shadow: 1px 1px 2px #17365a;
}

.tagline-and-translate {
    text-align: center;
    margin-top: 0.75rem;
}

.header-tagline {
    margin: 0.25rem 0;
    font-size: 1.1rem;
    color: #e0eaf3;
    font-weight: 600;
}

.header-title-block {
    text-align: center;
    margin-top: 0.5rem;
}

.site-subtitle {
    font-size: 1.1rem;
    color: #e0eaf3;
    font-weight: 500;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.language-block {
  margin-top: 0.4rem;
}

.translate-block {
    margin-top: 0auto;
}

.translate-block select {
    padding: 0.4rem;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.translate-note {
    font-size: 0.85rem;
    color: #899ab8;
    margin: 0.3;
}

.tagline-and-translate select {
    margin-top: 0.3rem;
}

#language-select {
    padding: 0.4rem 0.75rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #899ab8;
    background-color: #0d2236;
    color: #e0eaf3;
}

.translate-note {
  font-size: 0.85rem;
  color: #899ab8;
  margin-top: 0.3rem;

} 

/* 🌐 Navigation */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;

}

.nav-links li a {
    text-decoration: none;
    font-weight: 600;
    color: #e8f0fe;
    transition: color 0.2s ease;
}

.nav-links li a:hover {
    color: #61a0d1;
}

/* 📰 Main Container */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-banner {
    padding-top: 110px; /* adjust based on your fixed header */
    padding-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #61a0d1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: #e0eaf3;
    font-size: 1.25rem;
    font-weight: 500;
}

/* 🧠 Topic Blocks */
.topic h3 {
    font-size: 1.5rem;
    color: #3b0a98;
    font-weight: 800;
}

/* 🎯 Bias Tags */
.bias-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: bold;
}

.bias-liberal {
    background-color: #3b82f6;
    color: white;
}

.bias-conservative {
    background-color: #ef4444;
    color: white;
}

.bias-moderate {
    background-color: #9333ea;
    color: white;
}

.bias-satire {
    background-color: #facc15;
    color: black;
}

.bias-libertarian {
    background-color: #f97316;
    color: white;
}

.badge-breaking {
  background: linear-gradient(135deg, #ff4e50, #f9d423);
  color: #0d2236;
  font-weight: bold;
  padding: 0.35em 0.6em;
  border-radius: 8px;
  font-size: 0.75rem;
  box-shadow: 0 0 8px rgba(255, 78, 80, 0.4);
  animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 6px rgba(255, 78, 80, 0.3); }
  50% { box-shadow: 0 0 12px rgba(255, 78, 80, 0.8); }
  100% { box-shadow: 0 0 6px rgba(255, 78, 80, 0.3); }
}

/* 📸 Article Card */
.article .card {
    transition: transform 0.2s ease;
}

.article .card:hover {
    transform: translateY(-5px);
}

/* 🖼️ Images */
.article img,
img.article-preview {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 10px;
    display: block;
    background-color: #1e293b;
}

/* 🦶 Footer */
footer {
    text-align: center;
    font-size: 0.9rem;
    color: #899ab8;
    margin-top: 4rem;
}

/* 🔎 Framing Analysis */
.framing-analysis {
    background-color: #112f45;
    border-top: 1px solid #3b0a98;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
}

.framing-analysis summary {
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95rem;
    color: #e8f0fe;
    margin-bottom: 0.5rem;
}

.framing-analysis ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.framing-analysis li {
    margin-bottom: 0.3rem;
    color: #e0eaf3;
}

.framing-analysis p.text-muted {
    color: #a0b3c9;
    margin-top: 0.5rem;
}

/* 🎭 Framing Tags */
.framing-tag {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid transparent;
}

.framing-tag.framing-light {
    background-color: #e8f0fe;
    border-color: #a7c0f2;
    color: #2c5282;
}

.framing-tag.framing-heavy {
    background-color: #fdf6e3;
    border-color: #facc15;
    color: #92400e;
}

.framing-tag.propaganda-soft {
    background-color: #fff5f5;
    border-color: #feb2b2;
    color: #c53030;
}

.framing-tag.propaganda-hard {
    background-color: #ffe4e6;
    border-color: #f87171;
    color: #9b1c1c;
}

@media (max-width: 768px) {
  .site-header {
    position: static !important;
}

.global-meta-bar {
  background-color: #0d2236;
  border-bottom: 1px solid #17365a;
  font-family: monospace;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.clock-strip span {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .global-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.75rem;
  }
  .translate-strip {
    width: 100%;
    margin-top: 6px;
  }
}
