/*
Theme Name: Galicia Online
Theme URI: https://galiciauniversal.org
Author: SOLTIA Digital
Author URI: https://soporteclientes.net
Description: Tema profesional para periódico digital de Galicia con IA integrada, diseño moderno y optimización SEO avanzada
Version: 1.0
License: GPL v2 or later
Text Domain: galicia-online
*/

/* Tailwind CSS será cargado via CDN o compilado */
:root {
  --go-primary: #18181b;
  --go-secondary: #3b82f6;
  --go-accent: #10b981;
  --go-dark-bg: #09090b;
  --go-dark-card: #18181b;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #fafafa;
  color: #18181b;
  line-height: 1.6;
}

.dark body {
  background: var(--go-dark-bg);
  color: #fafafa;
}

/* Container */
.go-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Breaking News Ticker */
.breaking-ticker {
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin: 1rem 0;
}

.dark .breaking-ticker {
  background: var(--go-dark-card);
  border-color: #27272a;
}

.breaking-label {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--go-primary);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
}

.dark .breaking-label {
  background: white;
  color: var(--go-primary);
}

.breaking-content {
  padding: 0.75rem 1rem 0.75rem 8rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

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

/* Article Cards */
.article-card {
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dark .article-card {
  background: var(--go-dark-card);
  border-color: #27272a;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.article-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

/* Navigation */
.nav-categories {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: none;
}

.nav-categories::-webkit-scrollbar {
  display: none;
}

.nav-category {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-category:hover {
  background: #f4f4f5;
}

.dark .nav-category:hover {
  background: #27272a;
}

.nav-category.active {
  background: var(--go-primary);
  color: white;
}

.dark .nav-category.active {
  background: white;
  color: var(--go-primary);
}

/* Hero Section */
.hero-featured {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 500px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2), transparent);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: white;
}

/* Sidebar */
.sidebar-card {
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.dark .sidebar-card {
  background: var(--go-dark-card);
  border-color: #27272a;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  font-size: 0.875rem;
}

.dark .newsletter-input {
  background: var(--go-dark-bg);
  border-color: #27272a;
  color: white;
}

/* Responsive Grid */
@media (min-width: 768px) {
  .article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
  
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ad Spaces */
.ad-banner {
  background: #f4f4f5;
  border: 2px dashed #d4d4d8;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .ad-banner {
  background: var(--go-dark-card);
  border-color: #3f3f46;
}

.ad-leaderboard {
  min-height: 90px;
}

.ad-sidebar {
  min-height: 600px;
}
