/* ==========================================================================
   SWL Theme — Main Stylesheet
   Dark adult blog theme | Hotwife Lifestyle Hub
   ========================================================================== */

/* ── Custom Properties ────────────────────────────────────────────────────── */
:root {
  --bg:           #0d0d0d;
  --bg-card:      #1a1a1a;
  --bg-header:    #111111;
  --bg-footer:    #0a0a0a;
  --accent:       #e91e63;
  --accent-hover: #ff4081;
  --accent-dark:  #c2185b;
  --text:         #f0f0f0;
  --text-muted:   #888888;
  --border:       #2a2a2a;
  --radius:       6px;
  --shadow:       0 4px 20px rgba(0,0,0,.5);
  --transition:   .2s ease;
  --container:    1200px;
  --sidebar-w:    300px;
  --gap:          1.5rem;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }

/* ── Container ────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap) 2rem;
  align-items: start;
  padding-block: 2rem;
}

.layout-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding-block: 2rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn--primary  { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost    { background: transparent; border-color: var(--border); color: var(--text-muted); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm       { padding: .4rem 1rem; font-size: .82rem; }
.btn--lg       { padding: .9rem 2.2rem; font-size: 1.05rem; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.site-header__logo,
.site-header__logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  text-decoration: none;
}

.site-header__logo img { height: 40px; width: auto; }

/* Nav */
.site-nav__list {
  display: flex;
  gap: .25rem;
}

.site-nav__item a,
.site-nav__list > li > a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem .8rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.site-nav__list > li > a:hover,
.site-nav__list > .current-menu-item > a {
  color: var(--text);
  background: rgba(255,255,255,.06);
}

/* Mobile nav toggle */
.site-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.site-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Posts Grid ───────────────────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.posts-grid--related {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ── Post Card ────────────────────────────────────────────────────────────── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.post-card__thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.post-card__thumb--no-img .post-card__thumb-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
}

.post-card__body {
  padding: 1rem 1.2rem 1.2rem;
}

.post-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-block: .5rem .6rem;
}

.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--accent); }

.post-card__excerpt {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: .9rem;
}

/* ── Post Meta ────────────────────────────────────────────────────────────── */
.post-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  color: var(--text-muted);
}

.post-meta__cat {
  background: rgba(233, 30, 99, .15);
  color: var(--accent);
  padding: .15rem .55rem;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .72rem;
}
.post-meta__cat:hover { background: rgba(233,30,99,.3); color: var(--accent); }

/* ── Single Post ──────────────────────────────────────────────────────────── */
.single-post__title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-block: .75rem 1.25rem;
}

.single-post__hero {
  margin-bottom: 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.single-post__hero img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.entry-content {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.85;
}

.entry-content p       { margin-bottom: 1.2rem; }
.entry-content h2,
.entry-content h3      { color: var(--text); margin-block: 1.8rem .75rem; font-weight: 700; }
.entry-content a       { color: var(--accent); text-decoration: underline; }
.entry-content ul,
.entry-content ol      { margin-block: 1rem; padding-left: 1.5rem; }
.entry-content li      { margin-bottom: .4rem; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: .75rem 1.25rem;
  margin-block: 1.5rem;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
.entry-content img {
  border-radius: var(--radius);
  margin-block: 1rem;
}

/* Post footer */
.single-post__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list li a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: .2rem .7rem;
  border-radius: 3px;
  font-size: .8rem;
  color: var(--text-muted);
}
.tag-list li a:hover { border-color: var(--accent); color: var(--accent); }

.single-post__share { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--text-muted); }
.single-post__share a { font-weight: 600; }

/* Inline affiliate CTA */
.post-affiliate-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.post-affiliate-cta p { margin-bottom: 1rem; color: var(--text-muted); }

.post-affiliate-cta__banners {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Related posts */
.related-posts { margin-top: 2.5rem; }
.related-posts__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ── Archive header ───────────────────────────────────────────────────────── */
.archive-header { margin-bottom: 1.5rem; }
.archive-header__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  margin-bottom: .5rem;
}
.archive-header__desc { color: var(--text-muted); font-size: .95rem; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.widget__title {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .85rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.widget-affiliate { text-align: center; }
.affiliate-banner { display: inline-block; }
.affiliate-banner img { border-radius: var(--radius); }

.affiliate-link {
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
}

.widget-categories__list { display: flex; flex-direction: column; gap: .3rem; }
.widget-categories__list a {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: .9rem;
  padding: .25rem 0;
  border-bottom: 1px solid var(--border);
}
.widget-categories__list a:hover { color: var(--accent); }
.widget-categories__count { font-size: .78rem; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination { margin-top: 2rem; }
.pagination__list { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination__item a,
.pagination__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding-inline: .6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--text-muted);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pagination__item a:hover { border-color: var(--accent); color: var(--accent); }
.pagination__item .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Age Gate ─────────────────────────────────────────────────────────────── */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.97);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.age-gate.is-hidden { display: none; }

.age-gate__box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
}

.age-gate__logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.age-gate__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .75rem;
}

.age-gate__text {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-bottom: 1.25rem;
}

.age-gate__btn-enter { font-size: 1rem; }

.age-gate__legal {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.age-gate__legal a { color: var(--text-muted); text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-block: 2.5rem 1.5rem;
}

.site-footer__inner { display: flex; flex-direction: column; gap: 2rem; }

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer__logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.site-footer__tagline { color: var(--text-muted); font-size: .85rem; margin-top: .3rem; }

.site-footer__nav-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__nav-list a { color: var(--text-muted); font-size: .88rem; }
.site-footer__nav-list a:hover { color: var(--text); }

.site-footer__legal {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.site-footer__disclaimer {
  font-size: .73rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: .75rem;
  opacity: .7;
}

.site-footer__copyright {
  font-size: .8rem;
  color: var(--text-muted);
}
.site-footer__copyright a { color: var(--text-muted); text-decoration: underline; }

/* ── Page: 404 ────────────────────────────────────────────────────────────── */
.error-404 { text-align: center; }
.error-404__code {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .5rem;
}
.error-404__msg { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.1rem; }

/* ── Page titles ──────────────────────────────────────────────────────────── */
.page-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.page-title span { color: var(--accent); }

/* ── No results ───────────────────────────────────────────────────────────── */
.no-results { color: var(--text-muted); padding: 2rem 0; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar { order: -1; }   /* sidebar above posts on mobile */

  .posts-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .site-nav.is-open { display: block; }

  .site-nav__list { flex-direction: column; gap: .1rem; }

  .site-nav__toggle { display: flex; }

  .site-footer__top { flex-direction: column; }

  .post-affiliate-cta__banners { flex-direction: column; align-items: center; }
}
