:root {
  --primary: #FFC107;
  /* SignageOS Yellow */
  --primary-hover: #FFD54F;
  --text-main: #272A2D;
  --text-muted: #6C757D;
  --bg-body: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-header: #FFFFFF;
  --border-color: #E9ECEF;

  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --score-high: #10B981;
  --score-mid: #F59E0B;
  --score-low: #EF4444;
}

/* AI Banner */
.ai-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fffbea 0%, #fff8e1 100%);
  border: 1px solid #ffe08a;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 14px 20px;
  margin: 24px auto 20px;
  max-width: 900px;
  font-size: 0.88rem;
  color: #5a4500;
  line-height: 1.5;
}

.ai-banner-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.ai-banner-text strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.9rem;
  color: #42330a;
}


* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top: 0;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

/* Header */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  gap: 2rem;
}

.site-header nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

/* Main Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Simple (Full width, no image) */
.hero-simple {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 4rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.hero-content-full {
  max-width: 800px;
  margin: 0 auto;
}

.logo-sub {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* Hero Section */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.source-tag {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-excerpt {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-opinion {
  background: #FFFBE6;
  /* Light yellow tint */
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
  text-align: left;
}

.opinion-pending {
  border-left-color: var(--text-muted);
  background: #F3F4F6;
  font-style: italic;
  color: var(--text-muted);
}

.opinion-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #B45309;
  margin-bottom: 0.5rem;
}

.opinion-label-sm {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #B45309;
  margin-bottom: 0.25rem;
}

.opinion-reasoning {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
}

.visual-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 900;
  font-size: 3rem;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.visual-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4xIi8+PC9zdmc+');
}

/* Feed Header */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.refresh-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #E8F5E9;
  color: #2E7D32;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Grid */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Cards */
.news-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.source-pill {
  font-weight: 600;
  color: var(--text-main);
}

.date-pill {
  color: var(--text-muted);
}

.score-pill {
  margin-left: auto;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
  font-size: 0.75rem;
}

.card-opinion {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: #4B5563;
  font-style: italic;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* AI Badge Colors */
.badge-high {
  background-color: var(--score-high);
  color: white;
}

.badge-mid {
  background-color: var(--score-mid);
  color: white;
}

.badge-neutral {
  background-color: var(--text-muted);
  color: white;
}

.ai-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .site-header {
    height: auto;
    padding: 1rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
}