/*
Theme Name: ArtFX Block
Theme URI: https://artfx.ro
Author: ArtFX
Description: Temă editorială pentru blog, cu header maro-închis, conținut crem și accente roșii. Sidebar cu căutare, categorii, arhivă și articole recente cu imagine. Mobile-friendly.
Version: 1.2
License: Commercial
License URI: http://artfx.ro
Text Domain: artfx-block
*/

:root{
  --header-bg: #2d1500;
  --header-bg-soft: #2b1c0f;
  --page-bg: #2d1500;
  --content-bg: #ddcd9f;
  --card-bg: #e8dcba;
  --card-border: #cbb888;
  --cream: #ece1c4;
  --red: #9c1d1d;
  --red-bright: #b32424;
  --text-dark: #2c2113;
  --text-muted: #6b5d44;
  --text-faint: #8a7c5f;

  --font-heading: 'Roboto', Georgia, serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*{ box-sizing: border-box; }

html{ background: var(--page-bg); }

body{
  margin: 0;
  background: var(--page-bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; }

.screen-reader-text{
  position: absolute !important;
  left: -9999px;
}

/* ============ TOP SOCIAL BAR ============ */
.topbar{
  background: var(--header-bg-soft);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner{
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 24px;
  gap: 14px;
}
.social-icons{
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-icons a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-icons a:hover,
.social-icons a:focus-visible{
  background: var(--red-bright);
  color: #fff;
}
.social-icons svg{ width: 14px; height: 14px; fill: currentColor; }

/* ============ MAIN HEADER ============ */
.site-header{
  background: var(--header-bg);
}
.site-header-inner{
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 0 24px;
}
.site-branding{
  display: flex;
  align-items: center;
  padding: 18px 0;
  margin-right: auto;
}
.site-branding img.custom-logo{
  max-height: 52px;
  width: auto;
}
.site-title{
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  color: var(--red-bright);
  margin: 0;
  letter-spacing: -0.01em;
}
.site-title a{ text-decoration: none; color: inherit; }
.site-description{
  display: none;
}

.main-nav{
  display: flex;
  align-items: stretch;
}
.main-nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
}
.main-nav li{
  display: flex;
  align-items: stretch;
  position: relative;
}
.main-nav a{
  display: flex;
  align-items: center;
  padding: 0 18px;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible{
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.main-nav li.current-menu-item > a,
.main-nav li.current-menu-ancestor > a{
  background: var(--red-bright);
  color: #fff;
}
.main-nav ul ul{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  background: var(--header-bg-soft);
  min-width: 220px;
  z-index: 50;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}
.main-nav li:hover > ul,
.main-nav li:focus-within > ul{
  display: flex;
}
.main-nav ul ul a{ padding: 12px 18px; }

.header-search-toggle,
.menu-toggle{
  background: transparent;
  border: none;
  color: var(--cream);
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}
.header-search-toggle:hover,
.header-search-toggle:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible{
  color: var(--red-bright);
}
.menu-toggle{ display: none; }

.header-search-panel{
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.header-search-panel.is-open{
  max-height: 90px;
  padding-bottom: 16px;
}
.header-search-panel .search-form{
  display: flex;
  margin-top: 14px;
}

/* ============ LAYOUT ============ */
.site-content-wrap{
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}
@media (max-width: 900px){
  .site-content-wrap{ grid-template-columns: 1fr; }
}

.content-area{
  background: var(--content-bg);
  border-radius: 6px;
  padding: 40px;
}
@media (max-width: 600px){
  .content-area{ padding: 24px 18px; }
}

.page-intro h1,
.page-title{
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 38px;
  color: var(--text-dark);
  margin: 0 0 18px;
}
.page-intro p{ margin: 0 0 14px; }
.page-intro{ margin-bottom: 30px; }

/* ============ POST CARDS ============ */
.post-list{ list-style: none; margin: 0; padding: 0; }

.post-card{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  margin-bottom: 26px;
  display: flex;
  overflow: hidden;
}
.post-card .post-thumb{
  flex: 0 0 38%;
  max-width: 38%;
}
.post-card .post-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body{
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 600px){
  .post-card{ flex-direction: column; }
  .post-card .post-thumb{ max-width: 100%; flex-basis: auto; }
  .post-card .post-body{ padding: 22px 20px; }
}

.post-eyebrow{
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
  font-weight: 600;
}
.post-eyebrow a{ text-decoration: none; color: inherit; }
.post-eyebrow a:hover{ color: var(--red-bright); }

.post-card-title{
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 14px;
}
.post-card-title a{
  text-decoration: none;
  color: var(--red);
}
.post-card-title a:hover{ color: var(--red-bright); }

.post-excerpt{
  color: var(--text-dark);
  margin: 0 0 20px;
  flex-grow: 1;
}

.btn-readmore{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--red);
  color: #fff !important;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 3px;
  margin-bottom: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-readmore:hover,
.btn-readmore:focus-visible{
  background: var(--red-bright);
  transform: translateX(2px);
}

.post-meta{
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: auto;
}
.post-meta a{ text-decoration: none; color: inherit; }
.post-meta a:hover{ color: var(--red-bright); }
.post-meta .sep{ margin: 0 6px; }

/* ============ SINGLE POST ============ */
.single-post-header{ margin-bottom: 24px; }
.single-post-header .post-eyebrow{ margin-bottom: 12px; }
.single-post-title{
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 14px;
  line-height: 1.25;
}
.single-thumb{
  margin: 0 0 26px;
  border-radius: 6px;
  overflow: hidden;
}
.single-content{ font-size: 17px; }
.single-content p{ margin: 0 0 18px; }
.single-content h2,
.single-content h3{
  font-family: var(--font-heading);
  color: var(--text-dark);
}
.single-content a{ color: var(--red-bright); text-decoration: underline; }
.single-content blockquote{
  border-left: 4px solid var(--red);
  margin: 24px 0;
  padding: 4px 20px;
  font-style: italic;
  color: var(--text-muted);
}
.single-content img{ border-radius: 6px; }

.post-tags{
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  font-size: 13px;
}
.post-tags a{
  display: inline-block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 5px 12px;
  border-radius: 14px;
  margin: 0 6px 6px 0;
  text-decoration: none;
  color: var(--text-muted);
}
.post-tags a:hover{ border-color: var(--red-bright); color: var(--red-bright); }

.post-nav-links{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  font-size: 14px;
}
.post-nav-links a{ text-decoration: none; color: var(--red); font-weight: 600; }
.post-nav-links a:hover{ color: var(--red-bright); }
.post-nav-links span.label{
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
  margin-bottom: 4px;
}

/* ============ PAGINATION ============ */
.pagination-wrap{
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination-wrap a,
.pagination-wrap span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  text-decoration: none;
  color: var(--text-dark);
  font-size: 13px;
}
.pagination-wrap a:hover{ background: var(--red-bright); color: #fff; border-color: var(--red-bright); }
.pagination-wrap span.current{ background: var(--red); color: #fff; border-color: var(--red); }

/* ============ COMMENTS ============ */
.comments-area{
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--card-border);
}
.comments-title{
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text-dark);
  margin: 0 0 20px;
}
.comment-list{ list-style: none; margin: 0; padding: 0; }
.comment-list .comment-body{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.comment-author{ font-weight: 700; font-size: 14px; }
.comment-meta{ font-size: 12px; color: var(--text-faint); margin-bottom: 10px; }
.comment-list ul.children{ list-style: none; margin: 0 0 0 24px; padding: 0; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  font-family: var(--font-body);
  margin-bottom: 12px;
  background: #fff;
}
.comment-respond .submit{
  background: var(--red);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12.5px;
  cursor: pointer;
}
.comment-respond .submit:hover{ background: var(--red-bright); }

/* ============ SIDEBAR ============ */
.sidebar{ min-width: 0; }
.widget{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 22px;
}
.widget-title{
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
  margin: 0 0 16px;
  text-align: center;
}

.widget .search-form{
  display: flex;
}
.widget .search-form label{ flex: 1; margin: 0; }
.search-field{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 4px 0 0 4px;
  font-family: var(--font-body);
  background: #fff;
}
.search-submit{
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0 18px;
  border-radius: 0 4px 4px 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12.5px;
  cursor: pointer;
}
.search-submit:hover{ background: var(--red-bright); }

.widget ul{ list-style: none; margin: 0; padding: 0; }
.widget_categories ul li,
.widget_archive ul li{
  padding: 7px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 14.5px;
}
.widget_categories ul li:last-child,
.widget_archive ul li:last-child{ border-bottom: none; }
.widget_categories a,
.widget_archive a{
  text-decoration: none;
  color: var(--text-dark);
}
.widget_categories a:hover,
.widget_archive a:hover{ color: var(--red-bright); }

.widget select{
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  background: #fff;
  font-family: var(--font-body);
}

.recent-posts-list li{
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
}
.recent-posts-list li:last-child{ border-bottom: none; }
.recent-posts-list .rp-thumb{
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
}
.recent-posts-list .rp-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.recent-posts-list .rp-body{ flex: 1; min-width: 0; }
.recent-posts-list .rp-title{
  font-family: var(--font-heading);
  font-size: 14.5px;
  line-height: 1.35;
  margin: 0 0 4px;
}
.recent-posts-list .rp-title a{ color: var(--red); text-decoration: none; }
.recent-posts-list .rp-title a:hover{ color: var(--red-bright); }
.recent-posts-list .rp-date{
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ============ FOOTER ============ */
.site-footer{
  background: var(--header-bg);
  color: var(--cream);
  text-align: center;
  padding: 26px 24px;
  font-size: 13px;
}
.site-footer a{ color: var(--cream); text-decoration: underline; }

/* ============ MOBILE NAV ============ */
@media (max-width: 900px){
  .menu-toggle{ display: flex; }
  .main-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg-soft);
    flex-direction: column;
    display: none;
    z-index: 60;
  }
  .main-nav.is-open{ display: flex; }
  .main-nav ul{ flex-direction: column; width: 100%; }
  .main-nav li{ width: 100%; }
  .main-nav a{ padding: 14px 24px; width: 100%; }
  .main-nav ul ul{ position: static; box-shadow: none; }
  .site-header-inner{ position: relative; }
}

a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
}
