/**
 * style.css — locuiestibine.ro
 * Editorial/magazine design: terracotta + forest green + warm linen
 * CSS prefix: lb-
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --lb-terra:      #C1694F;
  --lb-terra-dark: #A0523A;
  --lb-terra-pale: #F0D9D1;
  --lb-forest:     #2C5F4A;
  --lb-forest-dark:#1E4233;
  --lb-forest-pale:#D4E6DF;
  --lb-bg:         #FAF6F1;
  --lb-surface:    #FFFFFF;
  --lb-border:     #E4D9CF;
  --lb-text:       #1E1A17;
  --lb-text-muted: #6B5E54;
  --lb-text-light: #9B8C83;

  --lb-ff-heading: 'DM Serif Display', Georgia, serif;
  --lb-ff-body:    'Inter', system-ui, sans-serif;

  --lb-shadow-sm:  0 1px 3px rgba(30,26,23,.08), 0 1px 2px rgba(30,26,23,.05);
  --lb-shadow-md:  0 4px 12px rgba(30,26,23,.10), 0 2px 4px rgba(30,26,23,.06);
  --lb-shadow-lg:  0 8px 24px rgba(30,26,23,.13), 0 4px 8px rgba(30,26,23,.07);

  --lb-radius:     0px;
  --lb-transition: 180ms ease;

  --lb-container:  1200px;
  --lb-gap:        24px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--lb-ff-body);
  background: var(--lb-bg);
  color: var(--lb-text);
  line-height: 1.65;
  min-height: 100vh;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   CONTAINER
   ============================================================ */
.lb-container {
  max-width: var(--lb-container);
  margin: 0 auto;
  padding: 0 var(--lb-gap);
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.lb-section-heading {
  font-family: var(--lb-ff-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lb-terra);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.lb-section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--lb-border);
}

/* ============================================================
   CATEGORY BADGE
   ============================================================ */
.lb-badge {
  display: inline-block;
  font-family: var(--lb-ff-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--lb-terra);
  color: #fff;
  line-height: 1.4;
}
.lb-badge--green { background: var(--lb-forest); }
.lb-badge--outline {
  background: transparent;
  border: 1px solid var(--lb-terra);
  color: var(--lb-terra);
}

/* ============================================================
   HERO — FULL-BLEED FEATURED ARTICLE
   ============================================================ */
.lb-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--lb-text);
}

.lb-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease;
}
.lb-hero:hover .lb-hero-img { transform: scale(1.03); }

.lb-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,14,10,.88) 0%,
    rgba(20,14,10,.50) 50%,
    rgba(20,14,10,.10) 100%
  );
}

.lb-hero-body {
  position: relative;
  z-index: 2;
  padding: 48px var(--lb-gap) 48px;
  max-width: 760px;
}

.lb-hero-body .lb-badge { margin-bottom: 14px; }

.lb-hero-title {
  font-family: var(--lb-ff-heading);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 16px;
}
.lb-hero-title a { color: #fff; }
.lb-hero-title a:hover { color: var(--lb-terra-pale); }

.lb-hero-summary {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 20px;
  max-width: 600px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lb-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .78rem;
  color: rgba(255,255,255,.65);
}

.lb-hero-placeholder {
  background: linear-gradient(135deg, var(--lb-terra) 0%, var(--lb-forest) 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--lb-gap);
}
.lb-hero-placeholder .lb-hero-body { max-width: 640px; text-align: center; }

/* ============================================================
   BENTO GRID
   ============================================================ */
.lb-main-wrap {
  padding: 48px 0 64px;
}

.lb-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--lb-gap);
  margin-bottom: 48px;
}

.lb-bento-large {
  grid-column: span 6;
  position: relative;
  background: var(--lb-surface);
  box-shadow: var(--lb-shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lb-bento-large:hover { box-shadow: var(--lb-shadow-lg); }
.lb-bento-large:hover .lb-card-img { transform: scale(1.03); }

.lb-bento-medium {
  grid-column: span 4;
  background: var(--lb-surface);
  box-shadow: var(--lb-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lb-bento-medium:hover { box-shadow: var(--lb-shadow-md); }
.lb-bento-medium:hover .lb-card-img { transform: scale(1.03); }

.lb-bento-small {
  grid-column: span 3;
  background: var(--lb-surface);
  box-shadow: var(--lb-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lb-bento-small:hover { box-shadow: var(--lb-shadow-md); }

.lb-card-img-wrap {
  overflow: hidden;
  position: relative;
  background: var(--lb-terra-pale);
}
.lb-bento-large  .lb-card-img-wrap { aspect-ratio: 16/9; }
.lb-bento-medium .lb-card-img-wrap { aspect-ratio: 4/3; }
.lb-bento-small  .lb-card-img-wrap { aspect-ratio: 16/9; }

.lb-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--lb-transition);
}

.lb-card-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--lb-terra-pale) 0%, var(--lb-forest-pale) 100%);
}

.lb-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lb-bento-small .lb-card-body { padding: 16px; }

.lb-card-body .lb-badge { margin-bottom: 10px; }

.lb-card-title {
  font-family: var(--lb-ff-heading);
  font-weight: 400;
  color: var(--lb-text);
  line-height: 1.25;
  margin-bottom: 10px;
  transition: color var(--lb-transition);
}
.lb-bento-large  .lb-card-title { font-size: 1.5rem; }
.lb-bento-medium .lb-card-title { font-size: 1.2rem; }
.lb-bento-small  .lb-card-title { font-size: 1rem; }

.lb-card-title a:hover { color: var(--lb-terra); }

.lb-card-summary {
  font-size: .88rem;
  color: var(--lb-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  flex: 1;
}
.lb-bento-small .lb-card-summary { -webkit-line-clamp: 2; margin-bottom: 10px; }

.lb-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .74rem;
  color: var(--lb-text-light);
  margin-top: auto;
}

.lb-bento-large .lb-card-body::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--lb-terra);
  margin-bottom: 16px;
}

/* ============================================================
   HORIZONTAL CARDS — recent articles
   ============================================================ */
.lb-recent-section { margin-bottom: 48px; }

.lb-h-card {
  display: flex;
  gap: 0;
  background: var(--lb-surface);
  box-shadow: var(--lb-shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow var(--lb-transition);
}
.lb-h-card:hover { box-shadow: var(--lb-shadow-md); }
.lb-h-card:hover .lb-h-card-img { transform: scale(1.04); }

.lb-h-card-img-wrap {
  width: 200px;
  min-width: 200px;
  overflow: hidden;
  background: var(--lb-terra-pale);
  position: relative;
}
.lb-h-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--lb-transition);
}
.lb-h-card-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 130px;
  background: linear-gradient(135deg, var(--lb-terra-pale) 0%, var(--lb-forest-pale) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-h-card-body {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lb-h-card-title {
  font-family: var(--lb-ff-heading);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--lb-text);
  line-height: 1.3;
  transition: color var(--lb-transition);
}
.lb-h-card-title a:hover { color: var(--lb-terra); }

.lb-h-card-summary {
  font-size: .82rem;
  color: var(--lb-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lb-h-card-meta {
  font-size: .72rem;
  color: var(--lb-text-light);
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.lb-sidebar-widget {
  background: var(--lb-surface);
  box-shadow: var(--lb-shadow-sm);
  margin-bottom: 32px;
  overflow: hidden;
}

.lb-sidebar-widget-head {
  background: var(--lb-terra);
  color: #fff;
  font-family: var(--lb-ff-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 18px;
}
.lb-sidebar-widget-head--green { background: var(--lb-forest); }

.lb-sidebar-link-list { padding: 6px 0; }
.lb-sidebar-link-list li { border-bottom: 1px solid var(--lb-border); }
.lb-sidebar-link-list li:last-child { border-bottom: none; }
.lb-sidebar-link-list a {
  display: block;
  padding: 10px 18px;
  font-size: .85rem;
  color: var(--lb-text);
  line-height: 1.35;
  transition: background var(--lb-transition), color var(--lb-transition);
}
.lb-sidebar-link-list a:hover {
  background: var(--lb-bg);
  color: var(--lb-terra);
}
.lb-sidebar-link-list time {
  display: block;
  font-size: .7rem;
  color: var(--lb-text-light);
  margin-top: 3px;
}

/* ============================================================
   CATEGORY CHIPS
   ============================================================ */
.lb-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 32px;
}
.lb-cat-chip {
  display: inline-block;
  padding: 6px 16px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--lb-surface);
  border: 1.5px solid var(--lb-border);
  color: var(--lb-text-muted);
  transition: border-color var(--lb-transition), color var(--lb-transition), background var(--lb-transition);
}
.lb-cat-chip:hover,
.lb-cat-chip--active {
  border-color: var(--lb-terra);
  color: var(--lb-terra);
  background: var(--lb-terra-pale);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.lb-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 48px 0 0;
}
.lb-pagination a,
.lb-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: .85rem;
  font-weight: 600;
  border: 1.5px solid var(--lb-border);
  background: var(--lb-surface);
  color: var(--lb-text-muted);
  transition: all var(--lb-transition);
}
.lb-pagination a:hover,
.lb-pagination span.lb-pagination--current {
  background: var(--lb-terra);
  border-color: var(--lb-terra);
  color: #fff;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.lb-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--lb-text-muted);
}
.lb-empty h2 {
  font-family: var(--lb-ff-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--lb-text);
}

/* ============================================================
   2-COLUMN LAYOUT
   ============================================================ */
.lb-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .lb-layout { grid-template-columns: 1fr; }
  .lb-layout aside { order: 2; }
  .lb-bento-large  { grid-column: span 12; }
  .lb-bento-medium { grid-column: span 6; }
  .lb-bento-small  { grid-column: span 6; }
}

@media (max-width: 768px) {
  :root { --lb-gap: 16px; }
  .lb-hero { min-height: 380px; }
  .lb-hero-body { padding: 32px var(--lb-gap); }
  .lb-hero-summary { display: none; }
  .lb-bento-medium { grid-column: span 12; }
  .lb-bento-small  { grid-column: span 12; }
  .lb-h-card-img-wrap { width: 120px; min-width: 120px; }
  .lb-h-card-body { padding: 12px 16px; }
  .lb-h-card-summary { display: none; }
}

@media (max-width: 480px) {
  .lb-bento { gap: 12px; }
  .lb-h-card-img-wrap { width: 90px; min-width: 90px; }
  .lb-cat-chips { gap: 6px; }
}
