/*
Theme Name: Recomandări
Theme URI: https://recomandari.net
Author: Mihail
Description: Temă tech modernă pentru recomandari.net
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: recomandari
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* Colors */
  --accent:       #3333dd;
  --accent-h:     #2222bb;
  --accent-rgb:   51, 51, 221;

  --bg:           #ffffff;
  --bg-alt:       #f4f6fb;
  --bg-card:      #ffffff;
  --border:       #e2e6f0;
  --shadow:       0 2px 12px rgba(0,0,0,.07);
  --shadow-hover: 0 6px 24px rgba(51,51,221,.13);

  --text:         #1a1a2e;
  --text-muted:   #6b7280;
  --heading:      #0f0f23;
  --link:         #3333dd;
  --link-h:       #2222bb;

  /* Typography */
  --font-body:    'Encode Sans', sans-serif;
  --font-head:    'Encode Sans Semi Condensed', sans-serif;
  --font-nav:     'Encode Sans Semi Condensed', sans-serif;
  --fz:           16px;
  --lh:           1.75;

  /* Layout */
  --max-width:    1280px;
  --radius:       8px;
  --radius-lg:    14px;
}

html.dark-mode {
  --bg:           #0f0f1a;
  --bg-alt:       #1a1a2e;
  --bg-card:      #161628;
  --border:       #2a2a45;
  --shadow:       0 2px 12px rgba(0,0,0,.3);
  --shadow-hover: 0 6px 24px rgba(51,51,221,.25);

  --text:         #e2e4f0;
  --text-muted:   #8b92b0;
  --heading:      #f0f0ff;
  --accent:       #5555ee;
  --accent-h:     #7777ff;
  --link:         var(--text-muted);
  --link-h:       #8888ff;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html,body,div,span,h1,h2,h3,h4,h5,h6,p,blockquote,pre,
a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,
small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,
fieldset,form,label,legend,table,caption,tbody,tfoot,
thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,
footer,header,hgroup,menu,nav,output,ruby,section,summary,
time,mark,audio,video { margin:0; padding:0; border:0; font-size:100%; vertical-align:baseline; }

ul, ol { list-style: none; }
img    { display:block; max-width:100%; height:auto; }
html   { scroll-behavior:smooth; }
body   { overflow-x:hidden; }

/* ============================================================
   BASE
   ============================================================ */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fz);
  line-height: var(--lh);
  font-weight: 400;
  transition: background .25s, color .25s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--link-h); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.25;
  letter-spacing: -.2px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  padding: 36px 0 56px;
  align-items: flex-start;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .25s, border-color .25s;
}

/* WordPress admin bar offset */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

/* Logo */
.site-logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo-link img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-light { display: block; }
.logo-dark  { display: none; }
html.dark-mode .logo-light { display: none; }
html.dark-mode .logo-dark  { display: block; }

/* Nav - pushed to right */
.main-nav { margin-left: auto; display: flex; align-items: center; }

.main-nav .menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}

.main-nav .menu a {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: .82em;
  line-height: 1;
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
}

.main-nav .menu a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 16px;
}

/* Dark mode toggle */
.dark-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.dark-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.dark-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 12px;
  transition: background .25s;
}

.dark-toggle input:checked + .dark-toggle-track {
  background: var(--accent);
}

.dark-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.dark-toggle input:checked ~ .dark-toggle-thumb {
  transform: translateX(20px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Mobile nav */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  opacity: 0;
  transition: opacity .3s;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: var(--bg);
  z-index: 201;
  overflow-y: auto;
  transition: left .3s ease;
  padding: 24px 20px;
  border-right: 1px solid var(--border);
}

.mobile-nav-panel.open { left: 0; }
.mobile-nav-overlay.open { opacity: 1; display: block; }

.mobile-nav-panel .menu {
  list-style: none;
  margin: 24px 0 0; padding: 0;
}

.mobile-nav-panel .menu li a {
  display: block;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 1em;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-panel .menu li a:hover { color: var(--accent); }

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--text);
  float: right;
}

/* ============================================================
   CATEGORY BADGES
   ============================================================ */
.cat-badge {
  display: inline-block;
  font-family: var(--font-nav);
  font-size: .72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), .08);
  padding: 3px 9px;
  border-radius: 4px;
  line-height: 1.6;
}

html.dark-mode .cat-badge {
  color: #fff;
  background: #5555ee;
}

/* ============================================================
   HERO ARTICLE (first post)
   ============================================================ */
.post-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  transition: box-shadow .25s;
}

.post-hero:hover { box-shadow: var(--shadow-hover); }

.post-hero .hero-thumb {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--bg-alt);
}

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

.post-hero:hover .hero-thumb img { transform: scale(1.03); }

.post-hero .hero-body {
  padding: 24px 28px 28px;
}

.post-hero .hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.post-hero .hero-title {
  font-size: 1.65em;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.post-hero .hero-title a { color: var(--heading); }
.post-hero .hero-title a:hover { color: var(--accent); }

.post-hero .hero-excerpt {
  color: var(--text-muted);
  font-size: .97em;
  line-height: 1.7;
  margin-bottom: 18px;
}

.post-hero .hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   POST LIST ITEMS (thumb left + text right)
   ============================================================ */
.post-list { display: flex; flex-direction: column; gap: 16px; }

.post-item-h {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow .25s;
}

.post-item-h:hover { box-shadow: var(--shadow-hover); }

.post-item-h .post-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}

.post-item-h .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.post-item-h:hover .post-thumb img { transform: scale(1.05); }

.post-item-h .post-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.post-item-h .post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-item-h .post-title {
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.post-item-h .post-title a { color: var(--heading); }
.post-item-h .post-title a:hover { color: var(--accent); }

.post-item-h .post-excerpt {
  color: var(--text-muted);
  font-size: .88em;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   META ELEMENTS
   ============================================================ */
.post-date {
  font-size: .8em;
  color: var(--text-muted);
  font-family: var(--font-nav);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: .85em;
  color: var(--text-muted);
  transition: gap .2s, color .2s;
}

.read-more:hover { gap: 10px; color: var(--accent); }
.read-more::after { content: '→'; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: .9em;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all .2s;
}

.pagination a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* WordPress paginate_links generates ul>li>a */
.pagination ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pagination ul li a,
.pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  font-family: var(--font-nav); font-weight: 700; font-size: .9em;
  border: 1px solid var(--border); color: var(--text); transition: all .2s;
}
.pagination ul li a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination ul li span.current { background: var(--accent); color: #fff; border-color: var(--accent); }

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

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-family: var(--font-head);
  font-size: .85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Search widget - covers both our custom widget and WP default */
.widget-search .search-form,
.widget .search-form,
.sidebar .search-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.widget-search .search-field,
.widget .search-field,
.sidebar .search-field {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .92em;
  outline: none;
  transition: background .2s;
}

.widget-search .search-field:focus,
.widget .search-field:focus { background: var(--bg); }

.widget-search .search-submit,
.widget .search-submit,
.sidebar .search-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 1em;
  transition: background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.widget-search .search-submit:hover,
.widget .search-submit:hover { background: var(--accent-h); }

/* Recent posts widget */
.widget_recomandari_recent_posts ul { list-style: none; margin: 0; padding: 0; }

.widget_recomandari_recent_posts li {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.widget_recomandari_recent_posts li:last-child { border-bottom: none; padding-bottom: 0; }

.widget_recomandari_recent_posts .rp-thumb {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
}

.widget_recomandari_recent_posts .rp-thumb img {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  display: block !important;
}

.widget_recomandari_recent_posts .rp-info {
  flex: 1;
  min-width: 0;
}

.widget_recomandari_recent_posts .rp-title {
  font-family: var(--font-head);
  font-size: .93em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--heading);
  margin-bottom: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget_recomandari_recent_posts .rp-title a { color: var(--heading); text-decoration: none; }
.widget_recomandari_recent_posts .rp-title a:hover { color: var(--accent); }

.widget_recomandari_recent_posts .rp-date {
  font-size: .78em;
  color: var(--text-muted);
  font-family: var(--font-nav);
  margin-top: 1px;
}

/* Fallback: if rp-info div has no class (old functions.php), target direct div */
.widget_recomandari_recent_posts li > div:not(.rp-thumb) {
  flex: 1;
  min-width: 0;
}

/* All widget links default - no blue */
.widget a { color: var(--text); text-decoration: none; }
.widget a:hover { color: var(--accent); }
.widget .cat-badge { color: var(--accent); }

/* Categories widget */
.widget-categories ul { list-style: none; margin: 0; padding: 0; }

.widget-categories li {
  border-bottom: 1px solid var(--border);
}

.widget-categories li:last-child { border-bottom: none; }

.widget-categories li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-family: var(--font-nav);
  font-size: .92em;
  font-weight: 600;
  color: var(--text);
  transition: color .2s, padding .2s;
}

.widget-categories li a:hover { color: var(--accent); padding-left: 4px; }

.widget-categories .cat-count {
  font-size: .78em;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.single-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 21/8;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 0;
}

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

.single-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.single-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  padding: 36px 0 56px;
  align-items: flex-start;
}

.single-header {
  padding: 32px 0 24px;
}

.single-cats {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.single-title {
  font-size: 2em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: .88em;
  font-family: var(--font-nav);
  flex-wrap: wrap;
}

.single-meta-item { display: flex; align-items: center; gap: 5px; }

/* Article content */
.the-content {
  font-size: 1.02em;
  line-height: var(--lh);
  color: var(--text);
}

.the-content p { margin-bottom: 1.4em; }

.the-content h2 { font-size: 1.5em; margin: 1.8em 0 .6em; color: var(--heading); }
.the-content h3 { font-size: 1.25em; margin: 1.5em 0 .5em; color: var(--heading); }
.the-content h4 { font-size: 1.08em; margin: 1.3em 0 .4em; color: var(--heading); }

.the-content img {
  border-radius: var(--radius);
  margin: .5em 0 1.2em;
  max-width: 100%;
  height: auto;
}

.the-content a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .35); }
.the-content a:hover { color: var(--link-h); text-decoration-color: var(--accent); }

.the-content ul,
.the-content ol { margin: .6em 0 1.3em 1.6em; }

.the-content ul { list-style: none; }
.the-content ol { list-style: decimal; }
.the-content ol li { padding-left: .3em; }

.the-content ul li { position: relative; padding-left: .2em; }
.the-content ul li::before {
  content: '';
  position: absolute;
  left: -1.1em;
  top: calc(var(--lh) * .5em - 3.5px);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.the-content li { margin-bottom: .45em; }

.the-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.5em 0;
  padding: 1em 1.3em;
  background: var(--bg-alt);
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.the-content blockquote p { margin: 0; }

.the-content pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2em 1.4em;
  overflow-x: auto;
  font-size: .9em;
  line-height: 1.6;
  margin-bottom: 1.4em;
}

.the-content code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .15em .4em;
  font-size: .88em;
}

.the-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.the-content table { display: block; overflow-x: auto; max-width: 100%; margin-bottom: 1.4em; }
.the-content table th,
.the-content table td { padding: .6em 1em; border: 1px solid var(--border); text-align: left; }
.the-content table th { background: var(--bg-alt); font-weight: 700; }

/* Embed responsive */
.the-content .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.the-content .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.the-content iframe,
.the-content embed,
.the-content object { max-width: 100% !important; }

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-tags a {
  font-family: var(--font-nav);
  font-size: .82em;
  font-weight: 600;
  color: var(--text-muted) !important;
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all .2s;
  text-decoration: none;
}

.post-tags a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .06);
}

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.related-title {
  font-size: 1.15em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading);
  font-family: var(--font-head);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: box-shadow .25s;
}

.related-item:hover { box-shadow: var(--shadow-hover); }

.related-item .rel-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}

.related-item .rel-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.related-item:hover .rel-thumb img { transform: scale(1.05); }

.related-item .rel-body {
  padding: 14px;
}

.related-item .rel-cat {
  margin-bottom: 6px;
}

.related-item .rel-title {
  font-size: .92em;
  font-weight: 700;
  line-height: 1.3;
}

.related-item .rel-title a { color: var(--heading); }
.related-item .rel-title a:hover { color: var(--accent); }

.related-item .rel-date {
  font-size: .78em;
  color: var(--text-muted);
  font-family: var(--font-nav);
  margin-top: 6px;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  margin-top: 48px;
  border-top: 2px solid var(--border);
}

.comments-title {
  font-size: 1.15em;
  font-weight: 700;
  margin-bottom: 28px;
}

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

.comment { margin-bottom: 24px; }

.comment-body {
  display: flex;
  gap: 14px;
  background: var(--bg-alt);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comment-author img { border-radius: 50%; width: 44px; height: 44px; flex-shrink: 0; }

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comment-author-name {
  font-weight: 700;
  font-family: var(--font-head);
  font-size: .95em;
}

.comment-date { font-size: .8em; color: var(--text-muted); font-family: var(--font-nav); }
.comment-text { font-size: .95em; line-height: 1.7; }
.comment-text p { margin-bottom: .6em; }
.comment-text p:last-child { margin-bottom: 0; }

.reply a {
  font-size: .82em;
  font-weight: 700;
  font-family: var(--font-nav);
  color: var(--accent);
  margin-top: 8px;
  display: inline-block;
}

.children { margin-left: 36px; margin-top: 16px; list-style: none; padding: 0; }

/* Comment form */
.comment-respond { margin-top: 40px; }

.comment-respond h3 {
  font-size: 1.05em;
  margin-bottom: 20px;
}

.comment-form-group { margin-bottom: 16px; }

.comment-form-group label {
  display: block;
  font-family: var(--font-nav);
  font-size: .85em;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.comment-form-group input,
.comment-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95em;
  transition: border .2s;
  outline: none;
}

.comment-form-group input:focus,
.comment-form-group textarea:focus { border-color: var(--accent); }

.comment-form-group textarea { min-height: 120px; resize: vertical; }

.comment-form-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: var(--radius);
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: .95em;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.submit-btn:hover { background: var(--accent-h); transform: translateY(-1px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

.footer-copy {
  font-family: var(--font-nav);
  font-size: .88em;
  color: var(--text-muted);
}

.footer-copy a { color: var(--text-muted); }
.footer-copy a:hover { color: var(--accent); }

/* ============================================================
   ARCHIVE / CATEGORY HEADER
   ============================================================ */
.archive-header {
  padding: 32px 0 4px;
}

.archive-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 6px;
}

.archive-desc {
  color: var(--text-muted);
  font-size: .95em;
}

/* ============================================================
   404 / NO RESULTS
   ============================================================ */
.not-found-wrap {
  text-align: center;
  padding: 80px 24px;
}

.not-found-wrap h1 {
  font-size: 5em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.not-found-wrap h2 { font-size: 1.4em; margin-bottom: 12px; }
.not-found-wrap p { color: var(--text-muted); margin-bottom: 28px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .site-content,
  .single-grid {
    grid-template-columns: 1fr;
  }

  .sidebar { order: 2; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* Header: logo stânga, [toggle + hamburger] dreapta */
  .header-inner { gap: 0; }
  .site-logo-link img { height: 30px; width: auto; max-width: none; }
  .main-nav { display: none; }
  .header-right { margin-left: auto; gap: 10px; }
  .hamburger { display: flex; }

  .post-hero .hero-title { font-size: 1.3em; }
  .post-hero .hero-body { padding: 18px 18px 20px; }

  .post-item-h {
    grid-template-columns: 1fr 1fr;
  }
  .post-item-h .post-body { padding: 14px 16px; }
  .article-card .single-header { padding: 16px 14px 12px; }
  .article-card .the-content { padding: 0 14px 16px; }
  .article-card .post-tags { margin: 0 14px 16px; }
  .page-card { padding: 16px 14px; }

  .single-title { font-size: 1.45em; }
  .single-hero { aspect-ratio: 16/7; }

  .related-grid { grid-template-columns: 1fr; }
  .comment-form-rows { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .post-item-h {
    grid-template-columns: 1fr;
  }
  .post-item-h .post-thumb { aspect-ratio: 16/9; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .post-hero .hero-thumb { aspect-ratio: 16/9; }
  .single-hero { aspect-ratio: 16/9; }
  .single-title { font-size: 1.25em; }
}

/* ============================================================
   ARTICLE / PAGE CARD BACKGROUND
   ============================================================ */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}

/* Clip the featured image corners at top */
.single-hero + .single-wrap .article-card { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }

.article-card .single-header {
  padding: 28px 32px 20px;
}

.article-card .the-content {
  padding: 0 32px 32px;
}

.article-card .post-tags {
  margin: 0 32px 32px;
  padding-top: 20px;
}

/* Page card */
.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}

/* Recent comments widget */
.widget_recomandari_recent_comments ul { list-style: none; margin: 0; padding: 0; }

.widget_recomandari_recent_comments li {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.widget_recomandari_recent_comments li:last-child { border-bottom: none; padding-bottom: 0; }

.widget_recomandari_recent_comments .rc-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
}

.widget_recomandari_recent_comments .rc-avatar img {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  display: block !important;
  border-radius: 0 !important;
}


.widget_recomandari_recent_comments .rc-body { flex: 1; min-width: 0; }

.widget_recomandari_recent_comments .rc-title {
  font-family: var(--font-head);
  font-size: .88em;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget_recomandari_recent_comments .rc-title .rc-author {
  font-weight: 700;
  color: var(--heading);
}

.widget_recomandari_recent_comments .rc-title a {
  color: var(--heading);
  font-weight: 600;
}

.widget_recomandari_recent_comments .rc-title a:hover { color: var(--accent); }

.widget_recomandari_recent_comments .rc-date {
  font-size: .75em;
  color: var(--text-muted);
  font-family: var(--font-nav);
  margin-top: 2px;
}