/*
Theme Name:  Mihail.info
Theme URI:  https://mihail.info
Description:  Tema v3 — dark & bold, bazată pe mockup.
Author:  Mihail, Sebastian și Claude
Author URI:  https://ssebastian.ro
Version:  3.0
License:  GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
iframe, embed, object { max-width: 100%; }

/* ============================================================
   FONT AWESOME (local)
   ============================================================ */
@font-face{font-family:'FontAwesome';font-style:normal;font-weight:400;src:url(fonts/fontawesome-webfont.eot);src:url(fonts/fontawesome-webfont.eot?#iefix) format("embedded-opentype"),url(fonts/fontawesome-webfont.woff2) format("woff2"),url(fonts/fontawesome-webfont.woff) format("woff"),url(fonts/fontawesome-webfont.ttf) format("truetype"),url(fonts/fontawesome-webfont.svg#fontawesomeregular) format("svg")}
.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.fa-external-link:before{content:"\f08e"}.fa-th-large:before{content:"\f009"}.fa-file-text-o:before{content:"\f0f6"}.fa-calendar-o:before{content:"\f133"}.fa-eye:before{content:"\f06e"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-meh-o:before{content:"\f11a"}.fa-times:before{content:"\f00d"}.fa-chevron-up:before{content:"\f077"}.fa-clock-o:before{content:"\f017"}.fa-comments-o:before{content:"\f0e6"}.fa-bars:before{content:"\f0c9"}.fa-rss:before{content:"\f09e"}.fa-plus-square:before{content:"\f0fe"}.fa-youtube-play:before{content:"\f16a"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-facebook-o:before{content:"\f09a"}.fa-twitter-o:before{content:"\f099"}.fa-youtube-o:before{content:"\f16a"}.fa-user-o:before{content:"\f2c0"}

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --accent: #bc243c;
  --accent-bright: #e03050;
  --bg: #111111;
  --surface: #1a1a1a;
  --surface2: #222222;
  --surface3: #2a2a2a;
  --border: #2e2e2e;
  --text: #e8e8e8;
  --text-muted: #666;
  --text-dim: #999;
}

/* ============================================================
   BODY
   ============================================================ */
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  font-size: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.admin-bar .site-header { top: 32px; }
@media screen and (max-width:782px) { .admin-bar .site-header { top: 46px; } }

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25em;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}
.site-logo .dot { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
/* WP generates ul.nav-menu > li > a */
.site-nav .nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav .nav-menu li { margin: 0; padding: 0; border: none; }
.site-nav .nav-menu li a,
.site-nav > a {
  font-family: 'Inter', sans-serif;
  font-size: .62em;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  display: block;
}
.site-nav .nav-menu li a:hover,
.site-nav > a:hover { color: #fff; background: var(--surface2); }
.site-nav .nav-menu li.current-menu-item a,
.site-nav > a.active { color: #fff; }

.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.theme-switch { display: inline-flex; position: relative; width: 44px; height: 22px; cursor: pointer; flex-shrink: 0; }
.theme-switch input { display: none; }
.toggle-track { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--surface3); border-radius: 22px; transition: background .4s; }
.toggle-thumb { position: absolute; height: 16px; width: 16px; left: 3px; top: 3px; background: var(--accent); border-radius: 50%; z-index: 5; transition: transform .4s; }
.theme-switch input:checked + .toggle-track .toggle-thumb { transform: translateX(22px); }
.toggle-sun { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); font-size: 9px; line-height: 1; z-index: 2; color: #ffb700; opacity: 1; transition: opacity .3s; pointer-events: none; }
.toggle-moon { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); font-size: 8px; line-height: 1; z-index: 2; color: #d0d0ff; opacity: 0.35; transition: opacity .3s; pointer-events: none; }
.theme-switch input:checked + .toggle-track .toggle-sun { opacity: 0.25; }
.theme-switch input:checked + .toggle-track .toggle-moon { opacity: 1; }

/* mobile menu */
.slicknav_menu { display: none; }
.site-nav-mobile { display: none; }

/* ============================================================
   LAYOUT — main grid: content + sidebar
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ============================================================
   HERO — full-width thumbnail, overlay at bottom
   ============================================================ */
.post-hero {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
  cursor: pointer;
  transition: box-shadow .4s ease;
  display: block;
}
.post-hero:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.3);
}
.post-hero:hover .hero-img img {
  transform: scale(1.03);
  filter: brightness(.75);
}

.hero-img {
  position: relative;
  width: 100%;
  padding-top: 50%;
  overflow: hidden;
}
.hero-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease, filter .4s;
  filter: brightness(.8);
}

.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 60px 32px 28px;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 50%, transparent 100%);
  z-index: 2;
}

.hero-overlay .badge {
  font-family: 'Inter', sans-serif;
  font-size: .62em;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.hero-overlay .badge::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 8px;
  transition: color .2s;
}
.hero-title a { color: #fff; }
.post-hero:hover .hero-title,
.post-hero:hover .hero-title a { color: var(--accent-bright); }

.hero-excerpt {
  font-size: .86em;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  font-family: 'Source Serif 4', Georgia, serif;
  margin-bottom: 10px;
  max-width: 680px;
}

.post-meta {
  font-family: 'Inter', sans-serif;
  font-size: .65em;
  color: rgba(255,255,255,.45);
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.post-meta a { color: inherit; }
.post-meta a:hover { color: #fff; }
.post-meta--dark { color: #888; }
.post-meta--dark a { color: #888; }
.post-meta--dark a:hover { color: var(--accent-bright); }

.meta-dot {
  width: 2px; height: 2px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}

.post-meta .fa,
.footer-links .fa {
  margin-right: 3px;
  font-size: .92em;
}

/* Desktop hero visible, mobile hidden by default */
.post-hero--mobile.post-card { display: none; }

/* ============================================================
   POSTS GRID
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .35s ease, transform .3s ease, border-color .3s;
  display: block;
}
.post-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.25);
  transform: translateY(-2px);
  border-color: var(--surface3);
}
.post-card:hover .card-img img { transform: scale(1.05); filter: brightness(1); }
.post-card:hover .card-title { color: var(--accent-bright); }

.card-img {
  position: relative;
  padding-top: 56%;
  overflow: hidden;
}
.card-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .3s;
  filter: brightness(.8);
}

.card-body { padding: 18px 20px 20px; }

.card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.35;
  color: #e8e8e8;
  margin-bottom: 8px;
  letter-spacing: -.01em;
  transition: color .2s;
}
.card-title a { color: inherit; }

.card-excerpt {
  font-size: .84em;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 12px;
  font-family: 'Source Serif 4', Georgia, serif;
}

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

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px;
}

/* ● WIDGET TITLE — bullet (cerc) */
.widget-title,
.widget h4 {
  font-family: 'Inter', sans-serif;
  font-size: .65em;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: none;
  padding-left: 0;
}
.widget-title::before,
.widget h4::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* widget: recent posts */
.widget ul { list-style: none; }
.widget li { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.widget-articole li {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.widget-articole li:last-child { padding: 0; margin: 0; border: none; }

.widget-photo { flex-shrink: 0; }
.widget-photo img {
  width: 52px; height: 52px;
  border-radius: 3px;
  object-fit: cover;
  filter: brightness(.85);
  transition: filter .2s;
}
.widget-articole li:hover .widget-photo img { filter: brightness(1); }

.widget-a-description {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: .78em;
  font-weight: 600;
  line-height: 1.35;
  color: #ddd;
  margin-bottom: 4px;
  margin-left: 0;
}
.widget-a-description a { color: #ddd; transition: color .2s; }
.widget-articole .widget-a-description a { font-size: 1em; }
.widget-articole li:hover .widget-a-description a { color: var(--accent-bright); }

.widget-time {
  font-family: 'Inter', sans-serif;
  font-size: .65em;
  color: var(--text-muted);
  letter-spacing: .04em;
  margin-left: 0;
  margin-top: 3px;
}

/* widget generic links */
.widget li a {
  color: #ccc;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: .78em;
  transition: color .2s;
}
.widget li a:hover { color: var(--accent-bright); }

/* blogroll widget */
.mihail-blogroll-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mihail-blogroll-list li { margin: 0; padding: 0; border: none; }
.mihail-blogroll-list li a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: .75em;
  font-weight: 600;
  color: #ccc;
  transition: box-shadow .25s, color .2s, background .2s, border-color .2s;
}
.mihail-blogroll-list li a:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  color: #fff;
  background: var(--surface3);
  border-color: var(--surface3);
}
.mihail-blogroll-list .bl-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* about widget */
.mihail-about-widget { text-align: center; }
.mihail-about-img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 12px;
  display: inline-block;
}
.mihail-about-bio,
.about-bio {
  font-size: .76em;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-family: 'Source Serif 4', Georgia, serif;
  text-align: left;
}
.mihail-about-link,
.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: .65em;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.mihail-about-link:hover,
.about-btn:hover { background: var(--accent); color: #fff; }

/* links widget */
.mihail-links-list li {
  margin-bottom: 10px;
  padding: 8px 10px 8px 14px;
  border-left: 3px solid var(--accent);
  background: rgba(188,36,60,.08);
  border-radius: 0 5px 5px 0;
  border-bottom: none;
  transition: background .18s;
}
.mihail-links-list li:last-child { margin-bottom: 0; }
.mihail-links-list li:hover { background: rgba(188,36,60,.15); }
.mihail-links-list li a { color: #ddd; font-weight: 600; line-height: 1.4; }
.mihail-links-list li a:hover { color: var(--accent); }
.mihail-link-date { display: block; font-size: .65em; color: var(--text-muted); margin-top: 3px; font-family: 'Inter', sans-serif; }

/* social widget */
.mihail-social-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.mihail-social-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border-radius: 6px; background: var(--surface2); color: #ccc;
  font-size: .75em; font-family: 'Inter', sans-serif; font-weight: 600;
  border: 1px solid var(--border); transition: background .2s, color .2s, transform .15s;
}
.mihail-social-btn .fa { font-size: 1.1em; color: var(--social-color, #ccc); }
.mihail-social-btn:hover { background: var(--social-color, var(--accent)); color: #fff; border-color: transparent; transform: translateY(-2px); }
.mihail-social-btn:hover .fa { color: #fff; }

/* tag cloud */
.widget_tag_cloud .tagcloud a {
  display: inline-block; background: var(--surface2); color: #ccc !important;
  border: 1px solid var(--border); border-radius: 20px; padding: 3px 11px;
  margin: 3px 2px; font-size: .82em !important; font-family: 'Inter', sans-serif;
  transition: background .2s, color .2s, border-color .2s;
}
.widget_tag_cloud .tagcloud a:hover { background: var(--accent); color: #fff !important; border-color: var(--accent); }

/* search widget */
.widget_search { background: transparent; border: none; padding: 0; }
.widget_search .widget-title,
.widget_search h4 { display: none; }
#s, #side-search, .search-field {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 4px;
  width: 100%;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: .82em;
}
#s:focus, .search-field:focus { border-color: var(--accent); outline: none; }

/* comments widget */
#recentcomments li { border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px; }
#recentcomments li:last-child { border: none; padding: 0; margin: 0; }
#recentcomments li a { color: #ddd; font-weight: 600; }
#recentcomments li a:hover { color: var(--accent-bright); }
.recentcomments { font-size: .75em; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 20px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05em;
  font-weight: 700;
  color: #fff;
}
.footer-logo .dot { color: var(--accent); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: .62em;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: .62em;
  color: #333;
  width: 100%;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   SINGLE ARTICLE — HERO
   ============================================================ */
.single-hero {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0;
}
.single-hero-img {
  width: 100%;
  padding-top: 45%;
  position: relative;
  overflow: hidden;
}
.single-hero-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.7);
}
.single-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 80px 0 32px;
  background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 55%, transparent 100%);
  z-index: 2;
}
.single-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.category-badge {
  font-family: 'Inter', sans-serif;
  font-size: .65em;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.category-badge::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.single-hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 2em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 14px;
  max-width: 720px;
}

/* Desktop hero visible, mobile hidden */
.single-hero--mobile { display: none; }

/* Mobile flat hero (card-like) */
.single-hero-img-flat { overflow: hidden; border-radius: 6px 6px 0 0; }
.single-hero-img-flat img { width: 100%; display: block; border-radius: 6px 6px 0 0; }
.single-hero-flat-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 20px 24px 24px;
  margin-bottom: 0;
}
.single-hero-flat-body h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 10px;
}
.single-hero-flat-body .category-badge { margin-bottom: 8px; }

/* ============================================================
   SINGLE — ARTICLE CONTENT
   ============================================================ */
.article-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.article-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 40px;
}
.article-content p {
  font-size: 1em;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 18px;
}
.article-content p:last-child { margin-bottom: 0; }
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  color: #fff;
  margin: 28px 0 14px;
  letter-spacing: -.01em;
}
.article-content h2 { font-size: 1.35em; }
.article-content h3 { font-size: 1.15em; }
.article-content a { color: var(--accent); border-bottom: 1px solid rgba(188,36,60,.3); transition: border-color .2s; }
.article-content a:hover { border-color: var(--accent); }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px; margin: 20px 0;
  background: var(--surface2);
  border-radius: 0 4px 4px 0;
  color: var(--text-dim);
  font-style: italic;
}
.article-content code {
  background: var(--surface3);
  color: var(--accent-bright);
  font-family: monospace;
  font-size: .88em;
  padding: 2px 6px;
  border-radius: 3px;
}
.article-content pre {
  background: #1e2433;
  color: #abb2bf;
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 18px;
  font-size: .88em;
  line-height: 1.6;
}
.article-content img { border-radius: 4px; margin: 12px 0; }
.article-content ul, .article-content ol { margin: 0 0 18px 20px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 6px; color: var(--text); font-size: .92em; line-height: 1.75; }

/* Tags */
.article-tags {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.article-tags a {
  font-family: 'Inter', sans-serif;
  font-size: .65em;
  font-weight: 600;
  padding: 5px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-dim);
  transition: all .2s;
  text-transform: lowercase;
}
.article-tags a:hover {
  color: #fff;
  border-color: var(--surface3);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.post-nav-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow .3s, border-color .3s;
}
.post-nav-link:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
  border-color: var(--surface3);
}
.post-nav-label {
  font-family: 'Inter', sans-serif;
  font-size: .62em;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.post-nav-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: .82em;
  font-weight: 600;
  color: #ddd;
  line-height: 1.35;
  transition: color .2s;
}
.post-nav-link:hover .post-nav-title { color: var(--accent-bright); }
.post-nav-link.next { text-align: right; }

/* Related articles */
.related-section { margin-top: 24px; }
.related-title {
  font-family: 'Inter', sans-serif;
  font-size: .65em;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-title::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: block;
  transition: box-shadow .3s, transform .25s, border-color .3s;
}
.related-card:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
  transform: translateY(-2px);
  border-color: var(--surface3);
}
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card:hover .related-card-name { color: var(--accent-bright); }
.related-card-img {
  position: relative;
  padding-top: 56%;
  overflow: hidden;
}
.related-card-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.8);
  transition: transform .5s;
}
.related-card-body { padding: 14px 16px 16px; }
.related-card-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: .82em;
  font-weight: 600;
  color: #ddd;
  line-height: 1.35;
  margin-bottom: 6px;
  transition: color .2s;
}
.related-card-date {
  font-family: 'Inter', sans-serif;
  font-size: .65em;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 32px;
}
.comments-title {
  font-family: 'Inter', sans-serif;
  font-size: .65em;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.comments-title::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
/* WP comment list */
ol.commentlist { list-style: none; }
ol.commentlist li { padding: 18px 0; border-bottom: 1px solid var(--border); margin: 0; }
ol.commentlist li:last-child { border-bottom: none; }
ol.commentlist .comment-author img { border-radius: 50%; float: left; margin-right: 14px; }
.fn { font-family: 'Inter', sans-serif; font-size: .72em; font-weight: 700; color: #ddd; }
.comment-meta { font-family: 'Inter', sans-serif; font-size: .62em; color: var(--text-muted); margin-bottom: 8px; }
.comment-meta a { color: var(--text-muted); }
.comment-content { font-size: .78em; line-height: 1.65; color: var(--text-dim); font-family: 'Source Serif 4', Georgia, serif; }
.comment-content p { margin-bottom: 12px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-body .reply { margin: 12px 0 0; }
.comment-body .reply a {
  font-family: 'Inter', sans-serif; font-size: .62em; font-weight: 600;
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 3px;
  color: var(--text-muted); transition: all .2s;
}
.comment-body .reply a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
ol.commentlist li.comment ul.children { padding-left: 30px; margin-top: 0; }

/* comment form */
.comment-respond {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 32px;
  margin-top: 24px;
}
#respond h3 {
  font-family: 'Inter', sans-serif;
  font-size: .65em;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
#respond h3::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 4px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: .8em;
  width: 100%;
  transition: border-color .2s;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea#comment { min-height: 100px; resize: vertical; }
#author, #email, #url { margin: 5px 0 10px; }
#commentform p { margin-bottom: 10px; }
.form-submit .submit, button, input[type="submit"] {
  padding: 9px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: .7em;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.form-submit .submit:hover, button:hover, input[type="submit"]:hover { background: var(--accent-bright); }
#cancel-comment-reply-link { color: var(--accent); font-size: .72em; }
.comment-notes { font-size: .6em; color: var(--text-muted); margin: 8px 0; }
.comment-notes a { color: var(--accent); }
.logged-in-as { font-size: .72em; color: var(--text-muted); margin-bottom: 10px; }
.logged-in-as a { color: var(--accent); font-weight: 600; }

/* ============================================================
   ARCHIVE / SEARCH TITLE
   ============================================================ */
.title-as {
  font-family: 'Inter', sans-serif;
  font-size: .65em;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.title-as span { color: var(--accent); font-weight: 700; }

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 40px;
}
.page-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.8em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.navigation {
  font-size: .82em;
  clear: both;
  text-align: center;
  margin-top: 20px;
}
.navigation span a {
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-block;
  border-radius: 4px;
  font-weight: 500;
  margin-right: 5px;
  padding: 5px 10px;
  font-size: .85em;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
}
.navigation .active a, .navigation a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.navigation .nav-sep { display: inline-block; margin-right: 5px; color: var(--text-muted); }

/* ============================================================
   MISC
   ============================================================ */
.post-error p { color: var(--accent); font-weight: 700; }
.sticky { background: var(--surface2); padding: 20px; border-radius: 6px; }
.cd-top {
  background: var(--accent); border-radius: 8px 8px 0 0; bottom: 0;
  color: #fff; font-size: 22px; line-height: 1; opacity: 0; z-index: 999;
  padding: 2px 7px; position: fixed; right: 20px;
}
.cd-top:hover { background: #9e1e33; color: #fff; }
.cd-top.cd-is-visible { visibility: visible; opacity: 1; }
.iframe { position: relative; padding-bottom: 56.25%; height: 0; }
.iframe iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
img.wp-smiley, img.emoji { display: inline; border: 0; box-shadow: none; height: 1em; width: 1em; margin: 0 .07em; vertical-align: -.1em; background: none; padding: 0; }
.wp-caption { margin-bottom: 1.5em; }
.wp-caption-text { text-align: center; font-size: .8em; color: var(--text-muted); margin-top: 6px; }
.gallery-item { display: inline-block; text-align: center; vertical-align: top; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin: 0 auto 1em; }

/* ============================================================
   LIGHT MODE
   ============================================================ */
[data-theme="light"] {
  --bg: #f5ede5;
  --surface: #faf7f4;
  --surface2: #f0ebe6;
  --surface3: #e8e0d8;
  --border: #ddd5cc;
  --text: #3f3f3f;
  --text-muted: #888;
  --text-dim: #666;
}
[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] .site-header { background: #333; border-bottom-color: #222; }
[data-theme="light"] .site-logo { color: #fff; }
[data-theme="light"] .site-nav .nav-menu li a { color: rgba(255,255,255,.6); }
[data-theme="light"] .site-nav .nav-menu li a:hover { color: #fff; background: rgba(255,255,255,.1); }
[data-theme="light"] .site-nav .nav-menu li.current-menu-item a { color: #fff; }
[data-theme="light"] .toggle-wrap { border-left-color: rgba(255,255,255,.2); }

[data-theme="light"] .post-card { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .post-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04); }
[data-theme="light"] .card-title { color: #1a1a1a; }
[data-theme="light"] .card-title a { color: #1a1a1a; }
[data-theme="light"] .post-card:hover .card-title { color: var(--accent); }
[data-theme="light"] .card-excerpt { color: #666; }
[data-theme="light"] .card-img img { filter: brightness(1); }

[data-theme="light"] .widget { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .widget-title, [data-theme="light"] .widget h4 { color: #555; border-bottom-color: var(--border); }
[data-theme="light"] .widget li a { color: #333; }
[data-theme="light"] .widget li a:hover { color: var(--accent); }
[data-theme="light"] .widget-a-description a { color: #222; }
[data-theme="light"] .widget-articole li:hover .widget-a-description a { color: var(--accent); }
[data-theme="light"] .widget-time { color: #999; }

[data-theme="light"] .mihail-blogroll-list li a { background: var(--surface2); border-color: var(--border); color: #444; }
[data-theme="light"] .mihail-blogroll-list li a:hover { background: var(--surface3); color: #111; }
[data-theme="light"] .mihail-about-bio, [data-theme="light"] .about-bio { color: #555; }
[data-theme="light"] .mihail-links-list li { background: rgba(188,36,60,.04); }
[data-theme="light"] .mihail-links-list li:hover { background: rgba(188,36,60,.08); }
[data-theme="light"] .mihail-links-list li a { color: #222; }
[data-theme="light"] .mihail-link-date { color: #aaa; }

[data-theme="light"] .mihail-social-btn { background: var(--surface2); border-color: var(--border); color: #444; }

[data-theme="light"] .widget_tag_cloud .tagcloud a { background: var(--surface2); border-color: var(--border); color: #444 !important; }

[data-theme="light"] #s, [data-theme="light"] .search-field { background: #fff; border-color: var(--border); color: #333; }

[data-theme="light"] .site-footer { background: #1a1a1a; border-top-color: #111; }

/* light mode: single article */
[data-theme="light"] .article-content { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .article-content p { color: #3f3f3f; }
[data-theme="light"] .article-content h2, [data-theme="light"] .article-content h3 { color: #1a1a1a; }
[data-theme="light"] .article-content blockquote { background: var(--surface2); color: #555; }
[data-theme="light"] .article-content code { background: var(--surface2); color: var(--accent); }
[data-theme="light"] .article-tags a { background: var(--surface2); border-color: var(--border); color: #555; }

[data-theme="light"] .post-nav-link { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .post-nav-link:hover { box-shadow: 0 4px 18px rgba(0,0,0,.06); }
[data-theme="light"] .post-nav-title { color: #333; }

[data-theme="light"] .related-card { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .related-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.08); }
[data-theme="light"] .related-card-name { color: #222; }
[data-theme="light"] .related-card-date { color: #999; }
[data-theme="light"] .related-card-img img { filter: brightness(1); }

[data-theme="light"] .comments-section { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .comments-title { color: #555; border-bottom-color: var(--border); }
[data-theme="light"] .fn { color: #222; }
[data-theme="light"] .comment-content { color: #555; }
[data-theme="light"] ol.commentlist li { border-bottom-color: var(--border); }

[data-theme="light"] .comment-respond { background: var(--surface); border-color: var(--border); }
[data-theme="light"] #respond h3 { color: #555; border-bottom-color: var(--border); }
[data-theme="light"] input[type="text"], [data-theme="light"] input[type="email"],
[data-theme="light"] input[type="url"], [data-theme="light"] textarea {
  background: #fff; border-color: var(--border); color: #333;
}

[data-theme="light"] .post-meta--dark { color: #999; }
[data-theme="light"] .post-meta--dark a { color: #999; }
[data-theme="light"] .title-as { color: #666; border-bottom-color: var(--border); }
[data-theme="light"] .page-title { color: #1a1a1a; }

[data-theme="light"] .navigation span a { border-color: var(--border); color: #444; }

[data-theme="light"] .post-hero:hover { box-shadow: 0 6px 28px rgba(0,0,0,.12); }

[data-theme="light"] .single-hero-flat-body { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .single-hero-flat-body h1 { color: #1a1a1a; }

[data-theme="light"] #recentcomments li { border-bottom-color: var(--border); }
[data-theme="light"] #recentcomments li a { color: #222; }
[data-theme="light"] .recentcomments { color: #888; }
[data-theme="light"] .recommauth { color: #222; }
[data-theme="light"] .widget-photo img { filter: brightness(1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media only screen and (max-width: 960px) {
  .container, .article-container { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { order: 2; }
}
@media only screen and (max-width: 768px) {
  #site-navigation .nav-menu { display: none; }
  .slicknav_menu { display: block; }
  .slicknav_btn { color: #fff; font-size: 1.6em; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 5; }
  .slicknav_nav { background: var(--surface); }
  .slicknav_nav li { border-bottom: 1px solid var(--border); }
  .slicknav_nav li a { display: block; color: var(--text); font-size: .85em; font-weight: 600; padding: 10px 16px; text-transform: uppercase; font-family: 'Inter', sans-serif; letter-spacing: .06em; }
  .slicknav_nav li a:hover { background: var(--surface2); color: #fff; }
  /* Toggle: pozitionat absolut langa hamburger, nu mai e in flow-ul nav-ului */
  .toggle-wrap {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    border: none;
  }
  .posts-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-nav-title { display: none; }
  .hero-title { font-size: 1.4em; }
  .single-hero h1 { font-size: 1.6em; }
  .article-content { padding: 24px 20px; }
  /* Single: swap hero desktop → mobile flat card */
  .single-hero--desktop { display: none; }
  .single-hero--mobile { display: block; }
  /* Homepage/archive: swap hero desktop → mobile card */
  .post-hero--desktop { display: none; }
  .post-hero--mobile.post-card { display: block; margin-bottom: 16px; }
}
@media only screen and (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .container, .article-container { padding: 20px 16px; }
  .hero-overlay { padding: 40px 20px 20px; }
  .single-hero-overlay { padding: 50px 0 20px; }
  .single-hero-inner { padding: 0 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 16px; }
}