/* =========================================================
   BASE.CSS — Shared layout, structure and component anatomy
   Applied on top of Bootstrap 5, before any theme CSS.
   ========================================================= */

/* ---------- Layout ---------- */
body {
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.container {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* ---------- Navbar ---------- */
.site-navbar {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

/* ---------- Site badge ---------- */
.site-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.65em;
  border-radius: 30px;
  vertical-align: middle;
  margin-left: 0.4em;
}

/* ---------- Index hero ---------- */
.hero-section {
  padding: 3.5rem 0 2.5rem;
}

.hero-section h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 560px;
  opacity: 0.75;
  margin-top: 0.75rem;
}

/* ---------- Article Card (index grid) ---------- */
.article-card {
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.article-card-meta {
  font-size: 0.78rem;
  opacity: 0.55;
  margin-bottom: 1rem;
}

.article-card-desc {
  font-size: 0.88rem;
  opacity: 0.7;
  flex: 1;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ---------- Read-more button ---------- */
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--btn-radius, var(--radius));
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-read-more svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-read-more:hover svg {
  transform: translateX(3px);
}

/* ---------- Article page ---------- */
.article-header {
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  opacity: 0.55;
  flex-wrap: wrap;
}

.article-content {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 760px;
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

/* ---------- Pros / Cons Block ---------- */
.pros-cons-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
}

@media (max-width: 600px) {
  .pros-cons-block {
    grid-template-columns: 1fr;
  }
}

.pros-list,
.cons-list {
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
}

.pros-list h4,
.cons-list h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pros-list ul,
.cons-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-list li,
.cons-list li {
  font-size: 0.9rem;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.pros-list li::before,
.cons-list li::before {
  position: absolute;
  left: 0;
  top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pros-list li::before {
  content: "✓";
}

.cons-list li::before {
  content: "✗";
}

/* ---------- Verdict Block ---------- */
.verdict-block {
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  border-left: 3px solid var(--accent);
}

.verdict-block .verdict-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.verdict-block p {
  font-size: 1rem;
  margin: 0;
  line-height: 1.75;
}

/* ---------- Affiliate CTA ---------- */
.affiliate-cta {
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.affiliate-cta-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.affiliate-cta-subtitle {
  font-size: 0.88rem;
  opacity: 0.65;
  margin-bottom: 1.5rem;
}

.btn-affiliate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 2.25rem;
  border-radius: var(--btn-radius, var(--radius));
  text-decoration: none;
  transition: all 0.22s ease;
  letter-spacing: 0.01em;
}

.btn-affiliate:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

/* ---------- Rating Badge ---------- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.25em 0.7em;
  border-radius: 20px;
}

/* ---------- Empty state ---------- */
.empty-state {
  padding: 5rem 1rem;
  text-align: center;
  opacity: 0.5;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767px) {
  .article-content {
    font-size: 0.97rem;
  }

  .verdict-block {
    padding: 1.25rem 1.25rem;
  }

  .affiliate-cta {
    padding: 1.5rem 1rem;
  }
}
