/* CMI — Light Theme Foundation */
:root {
  --bg: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --light: #9ca3af;
  --line: #e5e7eb;
  --card: #f9fafb;
  --accent: #3e9ef7;
  --cb: #f47421;
  --sc: #b5232a;
  --bc: #6c2d82;
  --cs: #00aced;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Header --- */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
}
.site-nav {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
}
.site-logo img {
  height: 36px;
  display: block;
}
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a.active { color: var(--ink); font-weight: 600; }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
  line-height: 1;
}
@media (max-width: 600px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 12px 20px;
    flex-direction: column;
    gap: 12px;
    min-width: 140px;
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .site-nav { position: relative; }
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--light);
}
.footer-inner nav { display: flex; gap: 16px; }
.footer-inner nav a { color: var(--light); }

/* --- Badges --- */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.badge-chaturbate { border-color: var(--cb); color: var(--cb); }
.badge-stripchat  { border-color: var(--sc); color: var(--sc); }
.badge-bongacams  { border-color: var(--bc); color: var(--bc); }
.badge-camsoda    { border-color: var(--cs); color: var(--cs); }

/* --- Main content container --- */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

/* --- Model Page --- */
.model-header { margin-bottom: 4px; }
.model-header h1 { font-size: 26px; margin-bottom: 8px; }
.platform-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.about-section,
.platforms-section,
.snap-note-section,
.related-section,
.hub-links-section {
  margin-bottom: 28px;
}

section h2 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--ink);
}

.about-section p {
  color: var(--muted);
  margin-bottom: 10px;
}

/* --- Platform Blocks --- */
.platform-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.platform-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.handle { color: var(--muted); font-size: 14px; }

.snap-scroll-wrap {
  position: relative;
  margin-bottom: 12px;
}
.snap-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.snap-row::-webkit-scrollbar { display: none; }
.snap-row img {
  border-radius: 6px;
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
  width: 240px;
  height: 135px;
}
.snap-chevron {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  color: var(--text);
  transition: opacity 0.2s;
}
.snap-chevron:hover { background: rgba(255,255,255,1); }

.platform-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.snap-note {
  color: var(--light);
  font-size: 13px;
  font-style: italic;
}

/* --- Related Models --- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

/* --- Hub Links --- */
.hub-links {
  font-size: 14px;
  color: var(--muted);
}
.hub-link { margin-right: 8px; }

/* --- Model Index --- */
.index-page h1 { font-size: 24px; margin-bottom: 6px; }
.index-subtitle { color: var(--muted); margin-bottom: 20px; }
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.model-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
}
.model-card:hover { border-color: var(--accent); text-decoration: none; }
.model-badges { display: flex; gap: 4px; }
.model-badges .badge { font-size: 10px; padding: 2px 6px; }

/* --- Homepage --- */
.hero { text-align: center; padding: 40px 0 30px; }
.hero h1 { font-size: 32px; margin-bottom: 10px; }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.hub-card {
  text-align: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.hub-card:hover { border-color: var(--accent); text-decoration: none; }

.entry-points {
  text-align: center;
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
}
.entry-link {
  padding: 10px 24px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: 1fr; }
  .snap-row { flex-direction: row; }
}

/* === TWO-COLUMN LAYOUT === */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.content-main { min-width: 0; }

/* === SIDEBAR === */
.sidebar {
  position: sticky;
  top: 24px;
}
.sidebar-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.sidebar-block h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.sidebar-list {
  list-style: none;
}
.sidebar-list li {
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { display: block; }
.sidebar-list .meta { color: var(--light); font-size: 12px; }
.sidebar-platforms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* === HERO IMAGE === */
.hero-image {
  margin-top: 16px;
  margin-bottom: 24px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}
.hero-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}
.hero-image .hero-caption {
  font-size: 12px;
  color: var(--light);
  padding: 6px 12px;
  line-height: 1.4;
  background: var(--card);
}

/* === BLOG POST BODY === */
.post-body h2 {
  font-size: 18px;
  margin: 24px 0 10px;
  color: var(--ink);
}
.post-body p { margin-bottom: 12px; color: var(--muted); }
.post-body ul { margin: 10px 0 16px 20px; }
.post-body li { margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.post-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* === RELATED GRID (in main content) === */
.related-grid a {
  display: block;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
}
.related-grid a:hover { border-color: var(--accent); text-decoration: none; }
.related-grid .plat-count { color: var(--light); font-size: 11px; }

/* === TOP ROW (H1 + tools card) === */
.top-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
  margin-bottom: 8px;
}
.top-left {}
.top-right {}

.directory-tools {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.directory-tools h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.directory-tools ul {
  list-style: none;
}
.directory-tools li {
  padding: 3px 0;
  font-size: 13px;
}

/* Platform summary line */
.platform-summary {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 4px;
  line-height: 1.5;
}

/* Micro sections */
.micro-section {
  margin-bottom: 20px;
}
.micro-section h2 {
  font-size: 15px;
  margin-bottom: 6px;
}
.micro-section p {
  color: var(--muted);
  font-size: 14px;
}

/* Related grid cards (main column) */
.related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.related-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
}
.related-card:hover { border-color: var(--accent); text-decoration: none; }
.related-card .plat-pills { display: flex; gap: 3px; }
.related-card .plat-pills .dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.dot-chaturbate { background: var(--cb); }
.dot-stripchat { background: var(--sc); }
.dot-bongacams { background: var(--bc); }
.dot-camsoda { background: var(--cs); }

/* === RESPONSIVE: stack sidebar below on mobile === */
@media (max-width: 840px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }
  .top-row {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
}


/* ========== Homepage ========== */
.home-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.home-hero {
  text-align: center;
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.home-hero h1 {
  font-size: 26px;
  margin-bottom: 10px;
}
.home-hero .subhead {
  color: var(--muted);
  font-size: 15px;
  max-width: 680px;
  margin: 0 auto 14px;
}
.home-hero .intro {
  color: var(--ink);
  font-size: 14px;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}
.home-section {
  margin-bottom: 36px;
}
.home-section h2 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* Platform cards */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s;
}
.platform-card:hover {
  text-decoration: none;
  border-color: var(--accent);
}
.platform-card strong { font-size: 15px; }
.platform-card span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.platform-card-cb { border-top: 3px solid var(--cb); }
.platform-card-sc { border-top: 3px solid var(--sc); }
.platform-card-bc { border-top: 3px solid var(--bc); }
.platform-card-cs { border-top: 3px solid var(--cs); }

/* Model card grid */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.model-card, .blog-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s;
  position: relative;
}
.model-card:hover, .blog-card:hover {
  text-decoration: none;
  border-color: var(--accent);
}
.card-thumb {
  height: 150px;
  overflow: hidden;
  background: var(--card);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-thumb-empty {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}
.card-body {
  padding: 10px 12px;
}
.card-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.card-badges .badge { font-size: 10px; padding: 1px 6px; }
.card-date {
  font-size: 12px;
  color: var(--light);
}
.card-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 1;
}

/* Blog grid (3 cols) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* CTA button */
.section-cta {
  margin-top: 16px;
  text-align: center;
}
.cta-btn {
  display: inline-block;
  padding: 8px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}
.cta-btn:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* About block */
.home-about {
  background: var(--card);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.home-about h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}
.home-about p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.home-about p:last-child { margin-bottom: 0; }

/* Homepage responsive */
@media (max-width: 840px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .platform-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
}


/* ========== Static Pages ========== */
.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.static-page h1 {
  font-size: 22px;
  margin: 24px 0 16px;
}
.static-page h2 {
  font-size: 17px;
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.static-page p {
  margin: 10px 0;
  line-height: 1.7;
  color: var(--muted);
  font-size: 14px;
}
.static-page a { color: var(--accent); }

/* ========== Contact Form ========== */
.contact-form { max-width: 640px; }
.contact-form .field { margin: 14px 0; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: var(--ink); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form button {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.contact-form button:hover { opacity: 0.9; }
.form-note { font-size: 12px; color: var(--light); margin-top: 12px; }

/* ========== Sort Controls ========== */
.sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
}
.sort-label { color: var(--light); font-weight: 500; }
.sort-option {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}
.sort-option.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.sort-option:hover { text-decoration: none; border-color: var(--accent); }
button.sort-option { cursor: pointer; font-family: inherit; font-size: inherit; }

/* ========== Page Intro ========== */
.page-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 780px;
}

/* ========== Blog Index Cards ========== */
.post-list { display: flex; flex-direction: column; gap: 32px; }
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.post-card.has-thumb .post-thumb {
  float: left;
  width: 200px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 20px 12px 0;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card h2 { font-size: 18px; margin: 0 0 4px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card .post-meta { font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.post-card .post-meta a { color: var(--accent); }
.post-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 10px;
}
.read-more {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }
@media (max-width: 580px) {
  .post-card { padding: 16px; }
  .post-card.has-thumb .post-thumb { float: none; width: 100%; height: 160px; margin: 0 0 12px; }
}

/* ========== Platform Hub Pages ========== */
.platform-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.platform-hero {
  margin-bottom: 28px;
}
.platform-hero h1 {
  font-size: 24px;
  margin-bottom: 6px;
}
.platform-hero .subhead {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}
.platform-intro {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 820px;
}
.platform-intro p { margin: 0 0 10px; }
.platform-intro .intro-links {
  font-size: 13px;
  color: var(--light);
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.platform-intro .intro-links a { color: var(--accent); }

/* Stats row */
.platform-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  min-width: 140px;
}
.stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.stat-key {
  font-size: 12px;
  color: var(--light);
  margin-top: 2px;
}
.stat-tags {
  flex: 1 1 100%;
}
.stat-tags .stat-val {
  font-size: 14px;
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.tag-pill {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.tag-pill.muted { color: var(--light); border-style: dashed; }

/* Platform models section */
.platform-models {
  margin-bottom: 32px;
}
.platform-models h2 {
  font-size: 18px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
}
.page-link {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.page-link.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.page-link:hover { border-color: var(--accent); text-decoration: none; }

/* Platform editorial */
.platform-editorial {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.platform-editorial h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 32px 20px;
  color: var(--light);
  font-size: 14px;
}
.empty-state a { color: var(--accent); }

/* Responsive */
@media (max-width: 640px) {
  .platform-stats { gap: 10px; }
  .stat { min-width: 100px; padding: 10px 14px; }
  .stat-val { font-size: 18px; }
}

/* ========== Blog Pagination ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}
.page-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
button.page-link { cursor: pointer; font-family: inherit; font-size: inherit; }
.page-link.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.snap-label {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 6px;
}
