/* === Feyenoord Dashboard Styles === */
:root {
  --red: #D00027;
  --red-dark: #A3001E;
  --red-light: #FF1744;
  --black: #1A1A1A;
  --dark: #222;
  --gray: #666;
  --gray-light: #E8E8E8;
  --gray-bg: #F5F5F5;
  --white: #FFFFFF;
  --green: #2E7D32;
  --yellow: #F9A825;
  --orange: #EF6C00;
  --negative: #D32F2F;
  --positive: #388E3C;
  --neutral: #FBC02D;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-bg);
  color: var(--black);
  line-height: 1.5;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(208, 0, 39, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.feyenoord-icon { width: 44px; height: 44px; flex-shrink: 0; }
.header h1 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.header-sub {
  font-size: 0.8rem;
  opacity: 0.85;
}
.header-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.meta-badge {
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
}

/* Match Widget */
.match-widget {
  background: var(--black);
  color: white;
  padding: 1.25rem 0;
}
.match-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}
.match-competition {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}
.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 100px;
}
.team-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.team-name { font-weight: 700; font-size: 1rem; }
.match-vs { text-align: center; }
.vs-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
}
.match-score {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red-light);
}
.match-date { font-size: 0.85rem; margin-top: 0.25rem; color: rgba(255,255,255,0.8); }
.match-countdown {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red-light);
  margin-top: 0.25rem;
}
.match-venue {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* Sentiment Section */
.sentiment-section {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.sentiment-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.sentiment-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sentiment-card h3 { font-size: 0.85rem; color: var(--gray); margin-bottom: 0.25rem; }
.fan-badge {
  background: var(--red);
  color: white;
  padding: 0.1rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  vertical-align: middle;
}
.sentiment-label {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.sentiment-bar-track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, var(--negative), var(--neutral), var(--positive));
  overflow: visible;
}
.sentiment-bar-marker {
  position: absolute;
  top: -4px;
  width: 20px;
  height: 20px;
  background: white;
  border: 3px solid var(--black);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left 0.6s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.sentiment-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--gray);
  margin-top: 0.35rem;
}

/* Trending Section */
.trending-section {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--black);
}
.trending-cloud {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}
.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  white-space: nowrap;
}
.tag:hover { transform: scale(1.1); }
.tag.active { background: var(--red) !important; color: white !important; }
.tag-1 { font-size: 0.75rem; background: var(--gray-light); color: var(--gray); }
.tag-2 { font-size: 0.85rem; background: #FBE9E7; color: #BF360C; }
.tag-3 { font-size: 1rem; background: #FFCDD2; color: var(--red-dark); }
.tag-4 { font-size: 1.15rem; background: #EF9A9A; color: var(--red-dark); font-weight: 600; }
.tag-5 { font-size: 1.3rem; background: var(--red); color: white; font-weight: 700; }

/* Stories Section */
.stories-section {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}
.story-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--red);
}
.story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.story-rank {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.story-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.story-summary {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.story-tone {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
}
.story-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  font-weight: 600;
}
.badge-official { background: #E3F2FD; color: #1565C0; }
.badge-fansite { background: #FBE9E7; color: #BF360C; }
.badge-wide { background: #FFF3E0; color: #E65100; }
.story-sentiment-mini {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--negative), var(--neutral), var(--positive));
  position: relative;
  margin-top: 0.5rem;
}
.story-sentiment-dot {
  position: absolute;
  top: -3px;
  width: 12px;
  height: 12px;
  background: white;
  border: 2px solid var(--black);
  border-radius: 50%;
  transform: translateX(-50%);
}
.story-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.source-tag {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.5rem;
  background: var(--gray-light);
  color: var(--gray);
}

/* News List Section */
.news-section {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.news-filters { display: flex; gap: 0.4rem; }
.filter-btn {
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--gray-light);
  background: white;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray);
  font-family: inherit;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.news-list { display: grid; gap: 0.75rem; }
.news-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.news-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.news-item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-light);
}
.news-item-content { flex: 1; min-width: 0; }
.news-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.news-item-desc {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-item-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.7rem;
  color: var(--gray);
}
.news-source-badge {
  padding: 0.1rem 0.4rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.65rem;
}
.news-source-official { background: #E3F2FD; color: #1565C0; }
.news-source-fansite { background: #FBE9E7; color: #BF360C; }

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
  font-size: 0.8rem;
  background: white;
  border-top: 1px solid var(--gray-light);
}

/* Skeleton loaders */
.skeleton-card, .skeleton-news {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  min-height: 180px;
  animation: shimmer 1.5s infinite;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
}
.skeleton-news { min-height: 80px; }
.skeleton-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.skeleton-tag {
  width: 70px;
  height: 28px;
  border-radius: 2rem;
  animation: shimmer 1.5s infinite;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .header-meta { justify-content: center; }
  .sentiment-bars { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .match-teams { gap: 1rem; }
  .team-logo { width: 40px; height: 40px; }
  .team-name { font-size: 0.85rem; }
  .news-item-img { width: 60px; height: 60px; }
}
@media (max-width: 480px) {
  .header h1 { font-size: 1.1rem; }
  .match-teams { gap: 0.5rem; }
  .match-team { min-width: 70px; }
  .story-title { font-size: 0.95rem; }
  .news-filters { gap: 0.25rem; }
  .filter-btn { padding: 0.25rem 0.6rem; font-size: 0.75rem; }
}
