/*
Theme Name: Asta-i România
Theme URI: https://astairomania.eu
Author: Asta-i România
Description: Temă WordPress personalizată pentru știri, optimizată pentru mobil și AdSense.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: astairomania
Tags: news, mobile-first, adsense, romanian
*/

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rosu: #CC0000;
  --rosu-inchis: #A00000;
  --rosu-deschis: #FF1A1A;
  --negru: #111111;
  --gri-inchis: #222222;
  --gri-mediu: #555555;
  --gri-deschis: #f5f5f5;
  --alb: #ffffff;
  --border: #e0e0e0;
  --font-titlu: 'Georgia', 'Times New Roman', serif;
  --font-corp: 'Helvetica Neue', Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 1px 4px rgba(0,0,0,0.08);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-corp);
  background: var(--gri-deschis);
  color: var(--negru);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===================== HEADER ===================== */
#site-header {
  background: var(--rosu);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo a {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-titlu);
  font-size: 24px;
  font-weight: 700;
  color: var(--alb);
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 9px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions a {
  color: var(--alb);
  font-size: 20px;
  display: flex;
  align-items: center;
}


.header-actions button {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  color: var(--alb) !important;
}

.header-actions button:focus,
.header-actions button:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

/* Search form în header */
.header-search-form {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--rosu-inchis);
  padding: 10px 14px;
}

.header-search-form.open { display: block; }

.header-search-form input {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
}


/* ===================== NAV CATEGORII ===================== */
#nav-categorii {
  background: var(--rosu-inchis);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#nav-categorii::-webkit-scrollbar { display: none; }

#nav-categorii ul {
  display: flex;
  padding: 0 10px;
  min-width: max-content;
}

#nav-categorii ul li a {
  display: block;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.15s;
}

#nav-categorii ul li a:hover,
#nav-categorii ul li.current-menu-item a,
#nav-categorii ul li.current-cat a {
  color: var(--alb);
  border-bottom: 2px solid var(--alb);
}

/* ===================== BREAKING NEWS ===================== */
#breaking-news {
  background: var(--negru);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 34px;
}

.breaking-label {
  background: var(--rosu);
  color: var(--alb);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.breaking-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.breaking-ticker ul {
  display: flex;
  animation: ticker 30s linear infinite;
  width: max-content;
}

.breaking-ticker ul li {
  padding: 0 40px 0 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}

.breaking-ticker ul li::before {
  content: '▶';
  color: var(--rosu);
  margin-right: 8px;
  font-size: 8px;
}

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

/* ===================== AD BANNER TOP ===================== */
.ad-banner-top {
  background: var(--alb);
  border-bottom: 1px solid var(--border);
  padding: 6px 14px;
  text-align: center;
  position: relative;
}

.ad-label {
  font-size: 9px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.ad-banner-top ins,
.ad-mid ins,
.ad-sidebar ins,
.ad-after-post ins {
  display: block;
  margin: 0 auto;
}

/* ===================== LAYOUT PRINCIPAL ===================== */
#continut-principal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 10px 20px;
}

/* Grid principal - mobil first */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
  }
}

/* ===================== ARTICOL HERO ===================== */
.hero-articol {
  background: var(--alb);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-articol .post-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.hero-articol .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-articol:hover .post-thumbnail img { transform: scale(1.02); }

.hero-articol .categorie-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--rosu);
  color: var(--alb);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 2px;
}

.hero-body {
  padding: 14px;
}

.hero-articol .post-title {
  font-family: var(--font-titlu);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--negru);
  margin-bottom: 8px;
}

.hero-articol .post-title a:hover { color: var(--rosu); }

.hero-articol .post-excerpt {
  font-size: 14px;
  color: var(--gri-mediu);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================== META ARTICOL ===================== */
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-meta span {
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 3px;
}

.post-meta .categorie-link {
  color: var(--rosu);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===================== HEADER SECTIUNE ===================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--negru);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  background: var(--rosu);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-header .vezi-toate {
  font-size: 11px;
  color: var(--rosu);
  font-weight: 600;
}

/* ===================== GRID ARTICOLE ===================== */
.articole-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 600px) {
  .articole-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .articole-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Card articol compact */
.card-articol {
  background: var(--alb);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.card-articol:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.12); }

.card-articol .post-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-articol .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card-articol:hover .post-thumbnail img { transform: scale(1.03); }

.card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-articol .post-title {
  font-family: var(--font-titlu);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--negru);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-articol .post-title a:hover { color: var(--rosu); }

/* Card lista (orizontal) - pentru sidebar și liste */
.card-lista {
  background: var(--alb);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  gap: 0;
  box-shadow: var(--shadow);
}

.card-lista .post-thumbnail {
  width: 90px;
  min-height: 70px;
  flex-shrink: 0;
  overflow: hidden;
}

.card-lista .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-lista .card-body {
  padding: 8px 10px;
}

.card-lista .post-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--negru);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-lista .post-title a:hover { color: var(--rosu); }

/* ===================== AD MIDDLE ===================== */
.ad-mid {
  background: var(--alb);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  text-align: center;
  margin: 10px 0;
}

/* ===================== SIDEBAR ===================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-widget {
  background: var(--alb);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.widget-title {
  background: var(--negru);
  color: var(--alb);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 9px 14px;
}

.widget-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-sidebar {
  background: var(--alb);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  text-align: center;
  position: sticky;
  top: 100px;
}

/* ===================== PAGINARE ===================== */
.paginare {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.paginare ul.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paginare li {
  display: flex;
}

.paginare a,
.paginare span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--alb);
  color: var(--negru);
  transition: all 0.15s;
}

.paginare a:hover { background: var(--rosu); color: var(--alb); border-color: var(--rosu); }
.paginare span.current { background: var(--rosu); color: var(--alb); border-color: var(--rosu); }

/* ===================== PAGINA ARTICOL SINGLE ===================== */
.single-articol {
  background: var(--alb);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.single-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.single-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-body {
  padding: 16px 14px;
}

.single-titlu {
  font-family: var(--font-titlu);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--negru);
  margin-bottom: 10px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.single-meta span {
  font-size: 12px;
  color: #888;
}

.single-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gri-inchis);
}

.single-content p { margin-bottom: 16px; }
.single-content h2 { font-family: var(--font-titlu); font-size: 20px; margin: 20px 0 10px; }
.single-content h3 { font-family: var(--font-titlu); font-size: 18px; margin: 16px 0 8px; }
.single-content img { border-radius: var(--radius); margin: 16px 0; }
.single-content blockquote {
  border-left: 4px solid var(--rosu);
  padding: 10px 16px;
  margin: 16px 0;
  background: var(--gri-deschis);
  font-style: italic;
  color: var(--gri-mediu);
}
.single-content ul, .single-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.single-content li { margin-bottom: 4px; }

/* Butoane share */
.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px;
  border-top: 1px solid var(--border);
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--alb);
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}

.share-btn:hover { opacity: 0.85; }
.share-btn.facebook { background: #1877F2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.copy { background: var(--gri-mediu); }

/* Ad după articol */
.ad-after-post {
  background: var(--alb);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  text-align: center;
  margin: 10px 0;
}

/* ===================== FOOTER ===================== */
#site-footer {
  background: var(--negru);
  color: rgba(255,255,255,0.8);
  margin-top: 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 28px 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-logo { font-family: var(--font-titlu); font-size: 22px; font-weight: 700; color: var(--alb); margin-bottom: 8px; }
.footer-desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.6); }

.footer-heading {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--alb);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links li { margin-bottom: 7px; }
.footer-links li a { font-size: 13px; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-links li a:hover { color: var(--alb); }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--alb);
  font-size: 16px;
  transition: background 0.2s;
}

.footer-social a:hover { background: var(--rosu); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 14px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  max-width: 1200px;
  margin: 0 auto;
}

/* ===================== NO IMAGE PLACEHOLDER ===================== */
.no-image {
  background: var(--gri-deschis);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
}

.no-image span {
  font-size: 32px;
  opacity: 0.3;
}

/* ===================== UTILITIES ===================== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

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

/* ===================== RESPONSIVE TABLET/DESKTOP ===================== */
@media (min-width: 768px) {
  .hero-articol .post-title { font-size: 26px; }
  .single-titlu { font-size: 28px; }
  .logo-text { font-size: 28px; }
}

