/*
Theme Name: Portal de Notícias
Description: Tema moderno para portal de notícias com design responsivo
Author: Seu Nome
Version: 1.0
Text Domain: portal-noticias
*/

:root {
  /* Cores principais */
  --background: 0 0% 100%;
  --foreground: 210 24% 16%;
  --surface: 0 0% 100%;
  
  --card: 0 0% 100%;
  --card-foreground: 210 24% 16%;
  
  --popover: 0 0% 100%;
  --popover-foreground: 210 24% 16%;
  
  --primary: 220 100% 50%;
  --primary-foreground: 0 0% 98%;
  --primary-hover: 220 100% 45%;
  
  --secondary: 120 60% 50%;
  --secondary-foreground: 0 0% 98%;
  
  --muted: 210 11% 96%;
  --muted-foreground: 210 12% 47%;
  
  --accent: 50 100% 50%;
  --accent-foreground: 210 24% 16%;
  
  --border: 210 20% 88%;
  --input: 210 20% 88%;
  --ring: 220 100% 50%;
  
  --radius: 0.5rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.875rem;
  font-weight: bold;
  color: hsl(var(--primary));
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: hsl(var(--primary));
}

/* Breaking News Ticker */
.breaking-news {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  padding: 0.75rem 0;
  overflow: hidden;
}

.breaking-badge {
  background: hsl(var(--accent-foreground));
  color: hsl(var(--accent));
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-weight: bold;
  font-size: 0.875rem;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ticker-scroll {
  animation: scroll 30s linear infinite;
  white-space: nowrap;
}

@keyframes scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Cards */
.news-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px hsla(var(--foreground), 0.1);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-category {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-title a {
  color: hsl(var(--foreground));
  text-decoration: none;
}

.card-title a:hover {
  color: hsl(var(--primary));
}

.card-excerpt {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

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

.hero-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.featured-card {
  grid-column: 1;
}

.featured-card img {
  height: 300px;
}

.sidebar-news {
  grid-column: 2;
}

.sidebar-news h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid hsl(var(--primary));
}

.compact-card {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.compact-card img {
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
}

.compact-content {
  flex: 1;
}

.compact-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Footer */
.site-footer {
  background: hsl(var(--muted));
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav ul {
    gap: 1rem;
  }
  
  .hero-section {
    grid-template-columns: 1fr;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .compact-card {
    flex-direction: column;
  }
  
  .compact-card img {
    width: 100%;
    height: 150px;
  }
}