/*
Theme Name: Oltean Media
Theme URI: https://olteanmedia.ro/
Author: Oltean Media
Author URI: https://olteanmedia.ro/
Description: Tema modernă pentru publicația locală Oltean Media. Include design responsive, secțiune Breaking News, widget meteo și multe altele.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oltean-media
Tags: news, blog, custom-colors, custom-menu, featured-images, footer-widgets, full-width-template, post-formats, theme-options, translation-ready

Tema personalizată pentru Oltean Media - Orașul tău, știrile tale.
*/

/* ==========================================================================
   CSS Variables (Design System)
   ========================================================================== */
:root {
  --background: 150 4% 89%;
  --foreground: 220 15% 20%;
  --card: 150 4% 89%;
  --card-foreground: 220 15% 20%;
  --popover: 150 4% 89%;
  --popover-foreground: 220 15% 20%;
  --primary: 207 79% 38%;
  --primary-foreground: 150 4% 89%;
  --primary-hover: 207 79% 33%;
  --secondary: 206 20% 92%;
  --secondary-foreground: 206 50% 20%;
  --muted: 206 15% 88%;
  --muted-foreground: 206 25% 45%;
  --accent: 206 50% 85%;
  --accent-foreground: 206 60% 25%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 150 4% 89%;
  --border: 206 20% 82%;
  --input: 206 20% 82%;
  --ring: 206 54% 40%;
  --news-primary: 207 79% 38%;
  --news-secondary: 207 79% 30%;
  --news-accent: 206 100% 80%;
  --news-text: 220 15% 20%;
  --news-text-light: 206 25% 45%;
  --gradient-primary: linear-gradient(135deg, hsl(206, 54%, 40%), hsl(206, 50%, 30%));
  --gradient-hero: linear-gradient(135deg, hsl(206, 54%, 40%) 0%, hsl(206, 50%, 30%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(150, 4%, 89%) 0%, hsl(206, 15%, 92%) 100%);
  --shadow-card: 0 4px 6px -1px hsla(206, 50%, 70%, 0.15), 0 2px 4px -1px hsla(206, 50%, 70%, 0.1);
  --shadow-card-hover: 0 10px 15px -3px hsla(206, 50%, 60%, 0.15), 0 4px 6px -2px hsla(206, 50%, 60%, 0.1);
  --shadow-header: 0 1px 3px 0 hsla(206, 50%, 70%, 0.15), 0 1px 2px 0 hsla(206, 50%, 70%, 0.1);
  --radius: 0.5rem;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: hsl(var(--news-primary));
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: hsl(var(--news-secondary));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: hsl(var(--news-text));
  line-height: 1.2;
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.min-h-screen {
  min-height: 100vh;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 50;
  background: hsla(var(--background), 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-header);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--border));
  flex-wrap: wrap;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-branding a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.site-branding a:hover {
  color: inherit;
}

.site-logo {
  height: 5rem;
  width: auto;
  transition: transform 0.3s ease;
}

.site-branding a:hover .site-logo {
  transform: scale(1.05) translateY(-2px) rotate(1deg);
}

@media (min-width: 768px) {
  .site-logo {
    height: 7rem;
  }
}

@media (min-width: 1024px) {
  .site-logo {
    height: 8rem;
  }
}

.site-title-wrapper {
  display: block;
  text-align: left;
}

.site-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #1567ac;
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.site-branding a:hover .site-title {
  transform: scale(1.02);
  color: #0f5a96;
}

@media (min-width: 640px) {
  .site-title {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .site-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .site-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1280px) {
  .site-title {
    font-size: 3rem;
  }
}

.site-tagline {
  font-size: 0.875rem;
  font-weight: 800;
  color: #283641;
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .site-tagline {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .site-tagline {
    font-size: 1.25rem;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Search Form */
.search-form-wrapper {
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .search-form-wrapper {
    display: block;
  }
}

.search-form {
  position: relative;
}

.search-input {
  width: 16rem;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: hsl(var(--news-primary));
  box-shadow: 0 0 0 2px hsla(var(--news-primary), 0.2);
}

.search-button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: hsl(var(--news-text-light));
  transition: color 0.2s ease;
}

.search-button:hover {
  color: hsl(var(--news-primary));
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: none;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  background: hsl(var(--accent));
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--news-text));
}

/* Navigation */
.main-navigation {
  display: none;
  padding: 1rem 0;
}

.main-navigation.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .main-navigation {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
  }
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
  }
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: hsl(var(--news-text));
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  background: hsl(var(--accent));
  color: hsl(var(--news-primary));
}

.nav-menu svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--news-primary));
  flex-shrink: 0;
}

/* Weather Widget */
.weather-widget {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--accent));
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: hsl(var(--news-text));
}

.weather-widget svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--news-primary));
}

/* ==========================================================================
   Breaking News Bar
   ========================================================================== */
.breaking-news-bar {
  margin: 0.75rem 0;
}

.breaking-news-inner {
  display: flex;
  align-items: center;
  height: 3rem;
  background: linear-gradient(to right, #1567ac, #0f5a96);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.breaking-news-label {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 100%;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.breaking-dot {
  width: 0.75rem;
  height: 0.75rem;
  background: white;
  border-radius: 50%;
  margin-right: 0.75rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.breaking-news-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.marquee-wrapper {
  overflow: hidden;
}

.marquee {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  padding: 0 1rem;
  animation: marquee 20s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-size: 0.875rem;
  transition: opacity 0.2s ease;
}

.marquee a:hover {
  opacity: 0.8;
  color: white;
}

.marquee img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  object-fit: cover;
  flex-shrink: 0;
}

.marquee-separator {
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(to right, #1567ac, #0f5a96);
  color: white;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-section:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: background 0.3s ease;
}

.hero-section:hover .hero-overlay {
  background: rgba(0, 0, 0, 0.3);
}

/* Animated Circles Background */
.hero-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 20;
  pointer-events: none;
}

.hero-circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  animation: animate 25s linear infinite;
  bottom: -150px;
  border-radius: 50%;
}

.hero-circles li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.hero-circles li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.hero-circles li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.hero-circles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.hero-circles li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.hero-circles li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.hero-circles li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.hero-circles li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.hero-circles li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.hero-circles li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

.hero-content {
  position: relative;
  z-index: 30;
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-category {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.3s ease;
  width: fit-content;
}

.hero-section:hover .hero-category {
  background: rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: white;
  margin: 0;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-summary {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .hero-summary {
    font-size: 1.25rem;
  }
}

.hero-section:hover .hero-summary {
  color: white;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.hero-section:hover .hero-meta {
  color: rgba(255, 255, 255, 0.9);
}

.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

@media (min-width: 640px) {
  .hero-image {
    height: 16rem;
  }
}

@media (min-width: 768px) {
  .hero-image {
    height: 24rem;
  }
}

@media (min-width: 1024px) {
  .hero-image {
    height: 31.25rem;
  }
}

.hero-section:hover .hero-image {
  transform: scale(1.05);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  transition: background 0.3s ease;
}

.hero-section:hover .hero-image-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

/* ==========================================================================
   News Cards
   ========================================================================== */
.news-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, hsl(var(--background)), hsla(var(--news-accent), 0.1));
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--news-text));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--news-text-light));
}

.news-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* News Card */
.news-card {
  background: linear-gradient(to bottom right, white, hsla(var(--news-accent), 0.1));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.news-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-8px) scale(1.02);
}

.news-card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.news-card-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-image {
  transform: scale(1.05);
}

.news-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background: hsl(var(--news-primary));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-transform: uppercase;
}

.news-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--news-text));
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.news-card:hover .news-card-title {
  color: hsl(var(--news-primary));
}

.news-card-summary {
  font-size: 0.875rem;
  color: hsl(var(--news-text-light));
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.news-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--news-text-light));
}

.news-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-card-read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.news-card-read-time svg {
  width: 1rem;
  height: 1rem;
}

.news-card-author {
  color: hsl(var(--news-primary));
  font-weight: 500;
}

/* View All Button */
.view-all-wrapper {
  text-align: center;
  margin-top: 3rem;
}

.view-all-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: hsl(var(--news-primary));
  color: white;
  font-weight: 500;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.view-all-btn:hover {
  background: hsl(var(--news-secondary));
  color: white;
  transform: translateY(-2px);
}

/* ==========================================================================
   Most Viewed Section (Blue Background)
   ========================================================================== */
.most-viewed-section {
  position: relative;
  padding: 4rem 0;
  background: linear-gradient(to right, #1567ac, #0f5a96);
  color: white;
  overflow: hidden;
}

.most-viewed-section .section-title {
  color: white;
}

.most-viewed-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* White news cards in blue section */
.most-viewed-section .news-card {
  background: white;
}

/* ==========================================================================
   Single Article
   ========================================================================== */
.single-article {
  padding: 2rem 0 4rem;
}

.article-wrapper {
  max-width: 56rem;
  margin: 0 auto;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--news-text));
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.back-button:hover {
  color: hsl(var(--news-primary));
  background: hsl(var(--accent));
}

.back-button svg {
  width: 1rem;
  height: 1rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-category {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: hsla(var(--news-accent), 0.2);
  color: hsl(var(--news-text));
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.article-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--news-text));
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .article-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .article-title {
    font-size: 3rem;
  }
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: hsl(var(--news-text-light));
  font-size: 0.875rem;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta-item svg {
  width: 1rem;
  height: 1rem;
}

.article-meta a {
  color: hsl(var(--news-primary));
  text-decoration: underline;
}

.article-meta a:hover {
  color: hsl(var(--news-secondary));
}

.article-featured-image {
  width: 100%;
  height: 24rem;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* Article Content */
.article-content {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: hsl(var(--news-text));
  text-align: justify;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h1 { font-size: 1.5rem; }
.article-content h2 { font-size: 1.375rem; }
.article-content h3 { font-size: 1.25rem; }

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content a {
  color: hsl(var(--news-primary));
  text-decoration: underline;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: hsl(var(--news-secondary));
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid hsl(var(--news-primary));
  background: hsl(var(--accent));
  font-style: italic;
  color: hsl(var(--news-text-light));
}

.article-content ul,
.article-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Advertisement Placeholder */
.ad-placeholder {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.ad-placeholder-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--news-text));
  margin-bottom: 0.5rem;
}

.ad-placeholder-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 32rem;
  margin: 0 auto;
  padding: 1.5rem;
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.ad-placeholder-content {
  text-align: center;
}

.ad-placeholder-label {
  font-size: 0.875rem;
  color: hsl(var(--news-text-light));
  margin-bottom: 0.5rem;
}

.ad-placeholder-cta {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--news-text));
}

.ad-placeholder-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: #1567ac;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.ad-placeholder-button:hover {
  background: #0f5a96;
  color: white;
}

/* Article Footer */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--news-text));
}

.btn-outline:hover {
  background: hsl(var(--accent));
  color: hsl(var(--news-text));
}

.btn-primary {
  background: #1567ac;
  color: white;
}

.btn-primary:hover {
  background: #0f5a96;
  color: white;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

/* ==========================================================================
   Archive / Category Page
   ========================================================================== */
.archive-page {
  padding: 2rem 0 4rem;
}

.archive-header {
  margin-bottom: 2rem;
}

.archive-header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.archive-header svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--news-primary));
}

.archive-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--news-text));
  margin: 0;
}

@media (min-width: 768px) {
  .archive-title {
    font-size: 2.25rem;
  }
}

.archive-description {
  font-size: 1.125rem;
  color: hsl(var(--news-text-light));
}

.archive-count {
  color: hsl(var(--news-text-light));
  margin-bottom: 1.5rem;
}

/* Author Avatar Styles */
.author-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #1567ac;
  box-shadow: 0 4px 12px rgba(21, 103, 172, 0.3);
  flex-shrink: 0;
}

.author-avatar-large img,
.author-avatar-large .author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.author-avatar-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #1567ac;
}

.article-author-item .author-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--news-text-light));
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-author-item .author-link:hover {
  color: #1567ac;
}

/* ==========================================================================
   Search Results
   ========================================================================== */
.search-results-page {
  padding: 2rem 0 4rem;
}

.search-results-header {
  margin-bottom: 2rem;
}

.search-results-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--news-text));
  margin-bottom: 0.5rem;
}

.search-query {
  color: hsl(var(--news-primary));
}

.no-results {
  text-align: center;
  padding: 4rem 1rem;
}

.no-results-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: hsl(var(--news-text-light));
}

.no-results-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--news-text));
  margin-bottom: 0.5rem;
}

.no-results-text {
  color: hsl(var(--news-text-light));
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination a {
  color: hsl(var(--news-text));
  background: white;
  border: 1px solid hsl(var(--border));
}

.pagination a:hover {
  background: hsl(var(--accent));
  color: hsl(var(--news-primary));
}

.pagination .current {
  background: hsl(var(--news-primary));
  color: white;
  border: 1px solid hsl(var(--news-primary));
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: white;
  color: hsl(var(--news-text));
  border-top: 1px solid hsl(var(--border));
}

.footer-overlay {
  display: none;
}

.footer-content {
  position: relative;
  z-index: 10;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1567ac;
  margin: 0;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1567ac;
  margin: 0;
}

.footer-description {
  color: hsl(var(--news-muted));
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #1567ac;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #0f5a96;
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--news-muted));
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #1567ac;
}

.footer-links svg {
  width: 1rem;
  height: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: hsl(var(--news-muted));
}

.footer-contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: #1567ac;
}

.footer-bottom {
  position: relative;
  z-index: 10;
  padding: 1.5rem 0;
  border-top: 1px solid hsl(var(--border));
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: hsl(var(--news-muted));
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Page Templates (Contact, Privacy Policy)
   ========================================================================== */
.page-template {
  padding: 2rem 0 4rem;
}

.page-wrapper {
  max-width: 56rem;
  margin: 0 auto;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--news-text));
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }
}

.page-content {
  font-size: 1rem;
  line-height: 1.8;
  color: hsl(var(--news-text));
}

.page-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: hsl(var(--news-text));
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--news-primary));
  box-shadow: 0 0 0 2px hsla(var(--news-primary), 0.2);
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-submit {
  align-self: flex-start;
  padding: 0.75rem 2rem;
  background: hsl(var(--news-primary));
  color: white;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit:hover {
  background: hsl(var(--news-secondary));
}

/* ==========================================================================
   Cookie Consent
   ========================================================================== */
.cookie-consent {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 100;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: none;
}

.cookie-consent.is-visible {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .cookie-consent {
    left: auto;
    max-width: 24rem;
  }
}

.cookie-consent-text {
  font-size: 0.875rem;
  color: hsl(var(--news-text));
  margin-bottom: 1rem;
}

.cookie-consent-text a {
  color: hsl(var(--news-primary));
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
}

.cookie-accept-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  background: hsl(var(--news-primary));
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-accept-btn:hover {
  background: hsl(var(--news-secondary));
}

.cookie-decline-btn {
  padding: 0.625rem 1rem;
  background: transparent;
  color: hsl(var(--news-text-light));
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-decline-btn:hover {
  background: hsl(var(--accent));
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation delays */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Skeleton Loading
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, hsl(var(--muted)) 25%, hsl(var(--accent)) 50%, hsl(var(--muted)) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404 {
  padding: 4rem 0;
  text-align: center;
}

.error-404-title {
  font-size: 6rem;
  font-weight: 700;
  color: hsl(var(--news-primary));
  margin-bottom: 1rem;
  line-height: 1;
}

.error-404-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--news-text));
  margin-bottom: 1rem;
}

.error-404-text {
  color: hsl(var(--news-text-light));
  margin-bottom: 2rem;
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.wp-block-image {
  margin: 1.5rem 0;
}

.wp-block-image img {
  border-radius: var(--radius);
}

.wp-block-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid hsl(var(--news-primary));
  background: hsl(var(--accent));
  font-style: italic;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: hsl(var(--news-text-light));
  text-align: center;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Social Media Buttons (Header)
   ========================================================================== */
.header-social-links {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .header-social-links {
    display: flex;
  }
}

.header-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: white;
  transition: all 0.2s ease;
}

.header-social-links a:hover {
  transform: scale(1.1);
  color: white;
}

.header-social-links a.social-facebook {
  background: #1567ac;
}

.header-social-links a.social-facebook:hover {
  background: #0f5a96;
}

.header-social-links a.social-youtube {
  background: #dc2626;
}

.header-social-links a.social-youtube:hover {
  background: #b91c1c;
}

.header-social-links svg {
  width: 1rem;
  height: 1rem;
}

/* ==========================================================================
   Weather Widget (Updated - Fade In/Out)
   ========================================================================== */
.weather-widget {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  background: linear-gradient(to right, #1567ac, #0f5a96);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .weather-widget {
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

.weather-widget-label {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.7rem;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.2);
  margin: -0.35rem;
  margin-right: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .weather-widget-label {
    font-size: 0.75rem;
    margin: -0.5rem;
    margin-right: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

.weather-label-text {
  display: none;
}

@media (min-width: 640px) {
  .weather-label-text {
    display: inline;
    margin-left: 0.25rem;
  }
}

.weather-widget-content {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity 0.4s ease;
}

@media (min-width: 768px) {
  .weather-widget-content {
    gap: 0.5rem;
  }
}

.weather-widget-content.fade-out {
  opacity: 0;
}

.weather-widget-city {
  font-weight: 500;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .weather-widget-city {
    max-width: none;
  }
}

.weather-widget-temp {
  font-weight: 600;
}

.weather-widget-desc {
  display: none;
}

@media (min-width: 640px) {
  .weather-widget-desc {
    display: inline;
    opacity: 0.8;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: #1567ac;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #0f5a96;
  transform: scale(1.1);
}

.back-to-top svg {
  width: 1.5rem;
  height: 1.5rem;
}
