/*
Theme Name: Stiri Iasi
Theme URI: https://ecoultargului.ro
Author: OpenCode
Author URI: https://ecoultargului.ro
Description: Tema WordPress de stiri locale pentru Iasi. Un design curat, aerisit, cu nuante moderne de rosu luminos.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stiri-iasi
*/

:root {
  /* O paleta de rosu mult mai "usoara", corai/luminos, care nu oboseste ochiul */
  --red-light: #fff0f0;
  --red-hover: #ff7575;
  --red-primary: #ef233c; /* Rosu "Iasi" modern, vibrant, curat */
  --red-dark: #d90429;
  
  --text-dark: #2b2d42;
  --text-gray: #6c757d;
  --text-light: #8d99ae;
  
  --bg-body: #f8f9fa;
  --bg-white: #ffffff;
  
  --border-light: #e9ecef;
  --radius-sm: 8px;
  --radius-md: 16px;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.06);
  --transition: all 0.2s ease-in-out;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: var(--red-primary);
  text-decoration: none;
  transition: var(--transition);
}

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

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.top-bar {
  background-color: var(--red-primary);
  color: var(--bg-white);
  font-size: 0.85rem;
  padding: 8px 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.top-bar a {
  color: var(--red-light);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1px;
}

.site-logo span {
  color: var(--red-primary);
}

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.site-nav a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--red-primary);
}

/* Main Content */
.main-content {
  padding: 40px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background-color: var(--red-primary);
  border-radius: 4px;
}

/* Hero Article */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.hero-article {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
  background-color: var(--text-dark);
}

.hero-article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: var(--transition);
}

.hero-article:hover img {
  opacity: 0.9;
  transform: scale(1.02);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: var(--bg-white);
}

.category-badge {
  display: inline-block;
  background-color: var(--red-primary);
  color: var(--bg-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.hero-title a {
  color: var(--bg-white);
}

.hero-meta {
  font-size: 0.85rem;
  color: #ccc;
}

/* Side List (Ultimele stiri) */
.side-news {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.side-news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-news-item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.side-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-news-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-body);
}

.side-news-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.side-news-title a {
  color: var(--text-dark);
}

.side-news-title a:hover {
  color: var(--red-primary);
}

.side-news-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

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

.news-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.news-card-img {
  aspect-ratio: 16/10;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
  background: var(--bg-body);
}

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.news-card-title a {
  color: var(--text-dark);
}

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

.news-card-excerpt {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: auto;
}

.news-card-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red-primary);
}

/* Pagination */
.pagination {
  margin-top: 40px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap; /* Prevents overflow */
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-weight: 600;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--red-primary);
  color: var(--bg-white);
  border-color: var(--red-primary);
}

/* Footer */
.site-footer {
  background-color: var(--text-dark);
  color: var(--bg-white);
  padding: 60px 0 20px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widget h3 {
  color: var(--red-primary);
  font-size: 1.2rem;
  margin: 0 0 20px 0;
}

.footer-widget p {
  color: var(--text-light);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: var(--bg-white);
}

.footer-nav a:hover {
  color: var(--red-hover);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-main {
    flex-direction: column;
    gap: 16px;
  }
  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Mobile optimization for Hero Article */
  .hero-article {
    aspect-ratio: auto;
    min-height: 350px;
  }
  
  .hero-content {
    position: relative;
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 20px;
  }
  
  .hero-title a {
    color: var(--text-dark);
  }
  
  .hero-meta {
    color: var(--text-gray);
  }
  
  .hero-article img {
    position: relative;
    height: 250px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
}

/* Single Article specific styles */
.single-container {
  max-width: 800px; /* Latime optima pentru citit (65-75 caractere pe linie) */
  margin: 40px auto 80px;
  background: var(--bg-white);
  padding: 40px 60px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.single-header {
  text-align: center;
  margin-bottom: 30px;
}

.single-meta {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
}

.single-category a {
  background-color: var(--red-light);
  color: var(--red-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.single-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px 0;
  color: var(--text-dark);
}

.single-author {
  font-size: 0.95rem;
  color: var(--text-gray);
}

.single-author strong {
  color: var(--text-dark);
}

.single-featured-image {
  margin-bottom: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.single-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: var(--shadow-sm);
}

.single-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.single-content p {
  margin-bottom: 24px;
}

.single-content h2, .single-content h3, .single-content h4 {
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

.single-content h2 { font-size: 1.8rem; }
.single-content h3 { font-size: 1.5rem; }

.single-content img {
  border-radius: var(--radius-sm);
  margin: 20px 0;
  max-width: 100%;
  height: auto;
}

.single-content blockquote {
  border-left: 4px solid var(--red-primary);
  margin: 30px 0;
  padding: 10px 20px;
  background: var(--bg-body);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-gray);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.single-content ul, .single-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.single-content li {
  margin-bottom: 8px;
}

.single-tags {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.single-tags a {
  display: inline-block;
  background: var(--bg-body);
  padding: 6px 16px;
  border-radius: 20px;
  color: var(--text-gray);
  margin-right: 8px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

.single-tags a:hover {
  background: var(--red-primary);
  color: var(--bg-white);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.post-navigation > div {
  width: 48%;
}

.nav-next {
  text-align: right;
}

.post-navigation a {
  font-weight: 700;
  color: var(--red-primary);
  font-size: 1.1rem;
  line-height: 1.4;
  display: block;
}

.post-navigation a:hover {
  color: var(--red-dark);
}

.comments-section-wrapper {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px dashed var(--border-light);
}

@media (max-width: 768px) {
  .single-container {
    padding: 20px;
    margin: 20px auto;
    border: none;
    box-shadow: none;
  }
  
  .single-content {
    font-size: 1.05rem;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 20px;
  }
  
  .post-navigation > div {
    width: 100%;
  }
  
  .nav-next {
    text-align: left;
  }
}
