/*
Theme Name: MO30
*/

/* ============================================================
   THEME CONFIGURATION — edit values here to restyle the site
   ============================================================

   DARK MODE (default)
   ---------------------------------------------------------- */
:root {
  /* ── Brand colors — change these when deploying to a new site ── */
  --accent:             #c0392b;
  --accent-hover:       #a93226;  /* darker accent for hover states */
  --accent-glow:        rgba(192, 57, 43, 0.6);
  --footer-accent:      #cc4444;  /* accent color in footer logo */
  --pill-bg-active:     var(--accent);  /* selected pill background */
  --pill-border-active: var(--accent);  /* selected pill border */

  /* ── Backgrounds ─────────────────────────────────────────────── */
  --bg-base:       #0d0d0d;  /* page background */
  --bg-surface:    #141414;  /* cards, inputs */
  --bg-raised:     #1a1a1a;  /* hover states, dropdowns */
  --border:        #1f1f1f;  /* dividers */
  --border-input:  #444444;  /* input borders — needs more contrast than dividers */

  /* ── Text ────────────────────────────────────────────────────── */
  --text-primary:  #ffffff;
  --text-secondary:#aaaaaa;
  --text-muted:    #888888;

  /* ── Semantic ────────────────────────────────────────────────── */
  --green-live:    #2ecc71;  /* live indicator dot */
  --overlay-bg:    rgba(0, 0, 0, 0.65); /* thumbnail scrim */
  --overlay-text:  #eeeeee;             /* text on thumbnail scrim */

  /* ── Footer ──────────────────────────────────────────────────── */
  --footer-bg:     #080808;
  --footer-text:   #999999;

  /* ── Pill buttons (cams filter / age filter) ─────────────────── */
  --pill-bg:           #2a2a2a;
  --pill-bg-hover:     #383838;
  --pill-border:       #444444;
  --pill-border-hover: #666666;
  --pill-text:         #cccccc;
  --pill-text-hover:   #ffffff;
  --pill-text-active:  #ffffff;

  /* ── Age pill (outlined variant) ─────────────────────────────── */
  --age-pill-text:         #999999;
  --age-pill-border:       #333333;
  --age-pill-bg-hover:     #2a2a2a;
  --age-pill-border-hover: #555555;
  --age-pill-bg-active:    #2a2a2a;
  --age-pill-border-active:#888888;
  --age-pill-text-active:  #ffffff;
  --age-filter-border:     #2a2a2a;  /* separator above age pills */

  /* ── A–Z letter nav ──────────────────────────────────────────── */
  --alphanav-bg:   #303030;

  /* ── Mobile filter panel ─────────────────────────────────────── */
  --filter-panel-bg:     #1e1e1e;
  --filter-panel-border: #444444;
  --filter-toggle-bg:    #2a2a2a;
  --filter-toggle-border:#444444;
  --filter-toggle-text:  #cccccc;
  --filter-toggle-icon:  #888888;
  --filter-divider:      #2a2a2a;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* LIGHT MODE
   ---------------------------------------------------------- */
[data-theme="light"] {
  /* ── Brand colors — change these when deploying to a new site ── */
  --accent:        #c0392b;
  --accent-hover:  #a93226;
  --accent-glow:   rgba(192, 57, 43, 0.35);
  --footer-accent: var(--accent);

  /* ── Backgrounds ─────────────────────────────────────────────── */
  --bg-base:       #f5f5f5;
  --bg-surface:    #ffffff;
  --bg-raised:     #f0f0f0;
  --border:        #e8e8e8;
  --border-input:  #cccccc;
  --overlay-bg:    rgba(0, 0, 0, 0.65);

  /* ── Text ────────────────────────────────────────────────────── */
  --text-primary:  #111111;
  --text-secondary:#555555;
  --text-muted:    #999999;

  /* ── Footer — follows light theme ───────────────────────────── */
  --footer-bg:     var(--bg-surface);
  --footer-text:   var(--text-secondary);

  /* ── Pills — light overrides ─────────────────────────────────── */
  --pill-bg:           #ffffff;
  --pill-bg-hover:     #f0f0f0;
  --pill-border:       #cccccc;
  --pill-border-hover: #999999;
  --pill-text:         #444444;
  --pill-text-hover:   #111111;

  /* ── Age pills — light overrides ─────────────────────────────── */
  --age-pill-text:         #666666;
  --age-pill-border:       #cccccc;
  --age-pill-bg-hover:     #f0f0f0;
  --age-pill-border-hover: #999999;
  --age-pill-bg-active:    #e8e8e8;
  --age-pill-border-active:#888888;
  --age-pill-text-active:  #111111;
  --age-filter-border:     #e0e0e0;

  /* ── Mobile filter panel — light overrides ───────────────────── */
  --filter-panel-bg:     #fafafa;
  --filter-panel-border: #dddddd;
  --filter-toggle-bg:    #ffffff;
  --filter-toggle-border:#cccccc;
  --filter-toggle-text:  #444444;
  --filter-toggle-icon:  #999999;
  --filter-divider:      #eeeeee;

  --alphanav-bg: var(--bg-surface);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-base);
  text-align: left;
}

h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; color: var(--text-primary); }
ul, ul li { margin: 0; padding: 0; list-style: none; }
ul.bulleted, ul.bulleted li { list-style: disc; }
ul.bulleted { padding-left: 1.5em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a img { border: 0; }
:focus { outline: 0; }
.clear { clear: both; }
img { display: block; max-width: 100%; height: auto; }

/* === NAVIGATION === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}

/* Top row: logo + live badge + theme toggle */
.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg-base);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 1px;
  text-decoration: none;
  line-height: 1.1;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo__name { white-space: nowrap; }
.nav-logo__accent { color: var(--accent); }
.nav-logo__tagline {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Pulsing live badge */
.nav-live-badge {
  background: var(--accent);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: 0 0 10px var(--accent-glow);
  animation: livepulse 1.4s ease-in-out infinite;
}
.nav-live-badge:hover { text-decoration: none; opacity: 0.9; }
.nav-live-badge--mobile { display: none; }
.nav-live-badge-wrap { display: none; }

@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50%       { box-shadow: 0 0 20px var(--accent-glow); }
}

/* Theme toggle pill */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  transition: background 0.2s;
}
.theme-toggle:hover { background: var(--bg-surface); }
.theme-toggle__track {
  width: 28px;
  height: 14px;
  background: var(--border);
  border-radius: 7px;
  position: relative;
  transition: background 0.2s;
}
[data-theme="light"] .theme-toggle__track { background: var(--accent); }
.theme-toggle__thumb {
  width: 10px;
  height: 10px;
  background: var(--text-muted);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s, background 0.2s;
}
[data-theme="light"] .theme-toggle__thumb { background: #fff; }

/* Nav bar row */
.nav-bar {
  background: var(--bg-surface);
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border);
  border-bottom: 2px solid transparent;
}
[data-theme="light"] .nav-bar { border-bottom-color: var(--accent); }

.nav-bar__link {
  color: var(--text-secondary);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
}
.nav-bar__link:hover,
.nav-bar__link.active {
  background: var(--bg-raised);
  color: var(--text-primary);
  text-decoration: none;
}
[data-theme="light"] .nav-bar__link.active {
  color: var(--accent);
  background: var(--bg-raised);
}

/* Dropdown menus */
.nav-bar__item { position: relative; }
.nav-bar__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  z-index: 999;
  padding: 4px 0;
}
.nav-bar__item:hover .nav-bar__dropdown,
.nav-bar__item:focus-within .nav-bar__dropdown { display: block; }
.nav-bar__dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-bar__dropdown a:last-child { border-bottom: 0; }
.nav-bar__dropdown a:hover { background: var(--bg-raised); color: var(--text-primary); }

.nav-spacer { flex: 1; }

/* Search in nav bar */
.nav-search {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-left: 1px solid var(--border);
}
.nav-search__input {
  background: var(--bg-raised);
  border: 1px solid var(--border-input);
  color: var(--text-primary);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  width: 180px;
  outline: none;
  font-family: var(--font);
}
.nav-search__input::placeholder { color: var(--text-muted); }
.nav-search__input:focus { border-color: var(--accent); }


/* === FOOTER === */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}

.site-footer__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__logo {
  font-size: 14px;
  font-weight: 900;
  color: var(--footer-text);
  letter-spacing: 2px;
}
.site-footer__logo span { color: var(--footer-accent); }

.site-footer__links { display: flex; gap: 16px; }
.site-footer__links a { color: var(--footer-text); font-size: 11px; }
.site-footer__links a:hover { color: var(--text-secondary); text-decoration: none; }

.site-footer__copy { color: var(--footer-text); font-size: 11px; }

/* === MAIN LAYOUT === */
.main {
  max-width: 1556px; /* 5col × 300px + 4 gutters × 8px + 24px padding = 1556px */
  margin: 0 auto;
  padding: 0 12px;
}

/* === GALLERY GRID === */
.posts {
  display: block;
  padding: 16px 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.posts.is-visible {
  opacity: 1;
}


.posts__sizer {
  width: calc(20% - 6.4px);
}

.post {
  display: inline-block;
  width: calc(20% - 6.4px);
  padding-bottom: 8px;
  vertical-align: top;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-surface);
}

.post a {
  display: block;
  text-decoration: none;
}

.post a img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Overlay — sits at top of thumbnail, always visible */
.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: var(--overlay-bg);
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px 6px 0 0;
}

.post-model {
  font-size: 12px;
  font-weight: 600;
  color: var(--overlay-text);
}

/* Hover-only overlay — used on model taxonomy pages */
.post-overlay--hover {
  top: auto;
  bottom: 8px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 24px 10px 8px;
  opacity: 0;
  transition: opacity 0.2s;
}
.post:hover .post-overlay--hover { opacity: 1; }
.post-title-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--overlay-text);
  display: block;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .post-overlay--hover { opacity: 1; }
}

.post-tag {
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

/* Horizontal ad row */
/* Full-width break inside masonry grid for adblock includes.
   Not a .post so masonry ignores it for item positioning. */
.grid-break {
  width: 100%;
  clear: both;
}

.az {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}
.az > div {
  flex: 1 1 auto;
}

/* Toplist items — short masonry tiles, same width/gutter as thumbnails */
.post.post--toplist {
  background: var(--bg-surface);
  overflow: visible;
  min-width: 0;
}
.post.post--toplist a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  min-width: 0;
  background: var(--accent);
  border-radius: 6px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post.post--toplist a:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

/* Ad slot in masonry grid */
.post.exo {
  width: calc(20% - 6.4px);
  min-height: 250px;
  overflow: hidden;
}

/* Page/section headings */
.page-title, .post-title {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0 12px;
  padding: 0 4px;
}

/* === MODEL PAGE === */
.model-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 4px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.model-avatar {
  flex-shrink: 0;
  width: 120px;
}
.model-avatar img {
  width: 120px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.model-header__info { flex: 1; min-width: 0; }
.model-header__info .page-title { margin-top: 0; }
.model-gallery-count {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0 0 10px;
  padding: 0 4px;
}
.model-bio {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  padding: 0 4px;
}

@media (max-width: 480px) {
  .model-header { flex-direction: column; }
  .model-avatar, .model-avatar img { width: 100%; height: auto; }
}

/* Paginator */
.paginator {
  padding: 20px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  clear: both;
}
.paginator span,
.paginator a {
  display: inline-block;
  padding: 7px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.paginator a:hover { background: var(--bg-raised); color: var(--text-primary); text-decoration: none; }
.paginator .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.paginator .page-previous,
.paginator .page-next { font-weight: 700; }

/* === LIVE CAMS PAGE === */
.cams-page { padding: 0 0 40px; }

/* Filter pills */
/* Mobile category toggle button — hidden on desktop */
.cams-filter-toggle {
  display: none;
}

.cams-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  padding: 4px 0;
}

@media (max-width: 768px) {
  .cams-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--filter-toggle-bg);
    border: 1px solid var(--filter-toggle-border);
    border-radius: 4px;
    padding: 10px 14px;
    color: var(--filter-toggle-text);
    font-size: 13px;
    font-family: var(--font);
    cursor: pointer;
    margin-bottom: 4px;
  }
  .cams-filter-toggle strong { color: var(--accent); }
  .cams-filter-toggle__icon { font-size: 16px; color: var(--filter-toggle-icon); }

  .cams-filter {
    display: none;
    flex-direction: column;
    background: var(--filter-panel-bg);
    border: 1px solid var(--filter-panel-border);
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
    gap: 4px;
  }
  .cams-filter.is-open { display: flex; }

  .cams-filter__pill {
    border-radius: 3px;
    padding: 9px 14px;
    font-size: 12px;
    text-align: left;
    border-color: transparent;
    border-bottom-color: var(--filter-divider);
  }
  .cams-filter__pill:last-child { border-bottom-color: transparent; }
  .cams-filter__pill.active { border-color: var(--accent); }
}

/* Category pills — primary filter, solid bordered chips */
.cams-filter__pill {
  background: var(--pill-bg);
  color: var(--pill-text);
  border: 1px solid var(--pill-border);
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-block;
}
.cams-filter__pill:hover {
  background: var(--pill-bg-hover);
  color: var(--pill-text-hover);
  border-color: var(--pill-border-hover);
  text-decoration: none;
}
.cams-filter__pill.active {
  background: var(--pill-bg-active);
  color: var(--pill-text-active);
  border-color: var(--pill-border-active);
  box-shadow: 0 0 8px var(--accent-glow);
}

.cams-age-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--age-filter-border);
}

/* Age pills — secondary filter, smaller, outlined style */
.cams-age-pill {
  background: transparent;
  color: var(--age-pill-text);
  border: 1px solid var(--age-pill-border);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-block;
}
.cams-age-pill:hover  { background: var(--age-pill-bg-hover); color: var(--age-pill-text-active); border-color: var(--age-pill-border-hover); text-decoration: none; }
.cams-age-pill.active { background: var(--age-pill-bg-active); color: var(--age-pill-text-active); border-color: var(--age-pill-border-active); }

/* Cam grid — same masonry as gallery */
.cams-grid {
  column-width: 300px;
  column-gap: 8px;
}

/* Cam card */
.cam-item {
  break-inside: avoid;
  width: 100%;
  margin-bottom: 8px;
  display: inline-block;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-surface);
  vertical-align: top;
  cursor: pointer;
}

.cam-item a { display: block; text-decoration: none; }
.cam-item img { width: 100%; height: auto; display: block; }

.cam-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 32px 10px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
}

.cam-overlay__left { flex: 1; min-width: 0; }
.cam-overlay__right { text-align: right; flex-shrink: 0; max-width: 50%; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cam-meta--right { justify-content: flex-end; }

.cam-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cam-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.cam-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-live);
  box-shadow: 0 0 6px var(--green-live);
  flex-shrink: 0;
}

.cam-viewers { font-size: 10px; color: var(--text-secondary); }
.cam-age     { font-size: 10px; color: var(--text-secondary); }
.cam-online  { font-size: 10px; color: var(--text-muted); }

.cam-country {
  font-size: 10px;
  color: var(--text-secondary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cam-hd {
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
}

/* Skeleton loading state */
.cam-item--skeleton { pointer-events: none; }
.cam-skeleton-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-raised) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty/error state */
.cams-empty {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.cams-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0 16px;
}

.cams-page-btn {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
.cams-page-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.cams-page-btn:disabled { opacity: 0.35; cursor: default; }

.cams-page-info {
  color: var(--text-muted);
  font-size: 12px;
}

.cams-noscript {
  color: var(--text-muted);
  font-size: 13px;
  padding: 40px 0;
  text-align: center;
}

/* === SINGLE POST === */
.single-wrap { padding: 16px 0; }

/* === MODEL A–Z NAV === */
.alphanav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 20px;
}
.alphanav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--alphanav-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.alphanav a:hover { background: var(--bg-raised); color: var(--text-primary); text-decoration: none; }
.alphanav a.selected { background: var(--accent); color: #fff; border-color: var(--accent); }


.single-post { padding: 0 4px; }

.single-post .post-copy {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.single-post .gallery-info {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 4px;
}

.single-post .gallery-info a {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  color: var(--text-secondary);
  font-size: 15px;
  margin: 2px 2px;
  display: inline-block;
}

@media (max-width: 768px) {
  .single-post .gallery-info { font-size: 14px; }
  .single-post .gallery-info a { font-size: 12px; padding: 2px 6px; margin: 2px 2px; }
}
.single-post .gallery-info a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

.gallery-link { text-align: center; margin: 16px 0; }
.gallery-link a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 36px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.gallery-link a:hover { opacity: 0.9; text-decoration: none; }
@media (max-width: 768px) {
  .gallery-link a { font-size: 24px; }
}

/* === WP GALLERY SHORTCODE === */
.gallery {
  margin: 0 -4px;
  column-width: 300px;
  column-gap: 8px;
}
.gallery .gallery-item {
  float: none;
  display: inline-block;
  width: 100% !important;
  break-inside: avoid;
  margin-bottom: 8px;
  text-align: center;
}
.gallery .gallery-item img { width: 100%; max-width: 230px; border: 2px solid var(--border); border-radius: 4px; }
.gallery .gallery-caption { color: var(--text-muted); font-size: 11px; }

/* === SEARCH === */
.searchform { padding: 16px 0; }
.searchform #s {
  background: var(--bg-surface);
  border: 1px solid var(--border-input);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  width: 100%;
  max-width: 260px;
}
.searchform #searchsubmit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  margin-left: 4px;
}

/* === WP CORE ALIGNMENT === */
.alignnone  { margin: 0 3px 3px 0; }
.aligncenter, div.aligncenter { display: block; margin: 3px auto; }
.alignright { float: right; margin: 0 0 3px 3px; }
.alignleft  { float: left; margin: 0 3px 3px 0; }
.wp-caption { background: var(--bg-surface); border: 1px solid var(--border); max-width: 96%; padding: 5px 3px 10px; text-align: center; }
.wp-caption img { border: 0; height: auto; max-width: 98.5%; }
.wp-caption p.wp-caption-text { font-size: 11px; color: var(--text-muted); margin: 0; padding: 0 4px 5px; }

/* === SCREEN READER ONLY === */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* === AGE VERIFICATION === */
#age-verification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.age-verification-container {
  background-color: #fff;
  width: 80%;
  max-width: 1000px;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.age-verification-header {
  text-align: center;
  margin-bottom: 30px;
}

.age-verification-header h2 {
  font-size: 22px;
  color: #333;
  margin-top: 0;
}

.age-verification-terms {
  height: 250px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 20px;
  line-height: 1.6;
  background-color: #f9f9f9;
  text-align: left;
  font-size: 14px;
}

.age-verification-buttons {
  display: flex;
  justify-content: space-between;
  max-width: 500px;
  margin: 0 auto;
}

.age-verification-button {
  padding: 15px 40px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
}

.age-verification-exit {
  background-color: #f44336;
  color: white;
}

.age-verification-exit:hover { background-color: #d32f2f; }

.age-verification-agree {
  background-color: #4CAF50;
  color: white;
}

.age-verification-agree:hover { background-color: #388E3C; }

@media (max-width: 768px) {
  .age-verification-container { width: 90%; padding: 25px; }
  .age-verification-header h2 { font-size: 24px; }
  .age-verification-terms { height: 200px; font-size: 15px; }
  .age-verification-button { padding: 12px 30px; font-size: 16px; min-width: 150px; }
}

@media (max-width: 576px) {
  .age-verification-container { width: 95%; padding: 20px; }
  .age-verification-header h2 { font-size: 20px; }
  .age-verification-terms { height: 150px; font-size: 15px; }
  .age-verification-buttons { flex-direction: column; gap: 15px; }
  .age-verification-button { width: 100%; min-width: 0; }
}
/* === END AGE VERIFICATION === */

/* === MOBILE / RESPONSIVE === */

/* Prevent horizontal overflow globally */
body { overflow-x: hidden; }

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1555px) {
  /* 4 columns × 300px: 4×300 + 3×8 + 24px padding = 1248px */
  .main { max-width: 1248px; }
  .posts__sizer, .post { width: calc(25% - 6px); }
  .post.exo { width: calc(25% - 6px); }
}

@media (max-width: 1247px) {
  /* 3 columns × 300px: 3×300 + 2×8 + 24px padding = 940px */
  .main { max-width: 940px; }
  .posts__sizer, .post { width: calc(33.333% - 5.333px); }
  .post.exo { width: calc(33.333% - 5.333px); }
}

@media (max-width: 650px) {
  /* 2 columns */
  .posts__sizer, .post { width: calc(50% - 4px); }
  .post.exo { width: calc(50% - 4px); }
  .gallery .gallery-item { width: 48% !important; }
}

/* ── Categories drawer nav group ────────────────────── */
.nav-cats-group {
  display: flex;
  align-items: stretch;
  border-right: 1px solid var(--border);
}
.nav-cats-group__link {
  color: var(--text-secondary);
  padding: 12px 14px 12px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
}
.nav-cats-group__link:hover {
  background: var(--bg-raised);
  color: var(--text-primary);
  text-decoration: none;
}
.nav-cats-group__chevron {
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.2s;
  display: flex;
  align-items: center;
  line-height: 1;
}
.nav-cats-group__chevron:hover {
  background: var(--bg-raised);
  color: var(--text-primary);
}
.nav-cats-group__chevron.is-open {
  transform: rotate(180deg);
  color: var(--text-primary);
}
/* Mobile chevron — hidden on desktop */
.nav-cats-mobile-chevron { display: none; }

/* ── Drawer overlay ──────────────────────────────────── */
#cats-overlay {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1090;
}
#cats-overlay.is-visible { display: block; }

/* ── Categories drawer panel ─────────────────────────── */
#cats-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
  overflow: hidden;
}
#cats-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
}
.cats-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cats-drawer__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  text-transform: uppercase;
}
.cats-drawer__close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}
.cats-drawer__close:hover { color: var(--text-primary); }
.cats-drawer__view-all {
  display: block;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.cats-drawer__view-all:hover { text-decoration: underline; }
.cats-drawer__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
  flex-shrink: 0;
}
.cats-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}
.cats-drawer__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s, color 0.12s;
}
.cats-drawer__item:hover {
  background: var(--bg-raised);
  color: var(--text-primary);
  text-decoration: none;
}
.cats-drawer__count {
  font-size: 11px;
  color: var(--text-muted, var(--text-secondary));
  margin-left: 8px;
  opacity: 0.7;
}

@media (max-width: 600px) {
  /* 1 column */
  .posts__sizer, .post { width: 100%; }
  .post.exo { width: 100%; }
  .gallery .gallery-item { width: 100% !important; }
}

@media (max-width: 768px) {
  /* Show hamburger */
  .nav-hamburger { display: flex; }

  /* Hide nav bar by default on mobile, show when open */
  .nav-bar {
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--border);
  }
  .nav-bar.is-open { display: flex; }

  /* Stack nav links vertically */
  .nav-bar__link {
    border-right: none;
    border-bottom: 1px solid var(--border);
    white-space: normal;
    padding: 14px 20px;
  }

  /* Hide dropdown arrow indicators on mobile, show sub-menus inline */
  .nav-bar__dropdown {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: var(--bg-raised);
  }
  .nav-bar__dropdown a {
    padding-left: 36px;
    border-bottom: 1px solid var(--border);
  }

  /* Full-width search in mobile nav */
  .nav-spacer { display: none; }
  .nav-search { width: 100%; padding: 10px 16px; }
  .nav-search__input { width: 100%; max-width: none; }

  /* Tighten nav top padding */
  .nav-top { padding: 10px 16px; }

  /* Main content padding */
  .main { padding: 0 8px; }

  /* Hide live cams pill from nav-top on mobile, show inside hamburger menu only */
  .nav-top-right .nav-live-badge { display: none; }
  .nav-live-badge-wrap { display: block; padding: 8px 16px; border-bottom: 1px solid var(--border); }
  .nav-live-badge--mobile { display: inline-flex; }

  /* Footer stack */
  .site-footer { padding: 16px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Categories group — hide desktop chevron on mobile */
  .nav-cats-group { display: none; }
  /* Mobile categories chevron button — show in nav-top-right */
  .nav-cats-mobile-chevron {
    display: flex;
    align-items: center;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
  }
  /* Full-width drawer on mobile */
  #cats-drawer { width: 100vw; border-right: none; }
}

@media (max-width: 480px) {
  .gallery .gallery-item { width: 100% !important; }
  .nav-live-badge { font-size: 10px; padding: 4px 10px; }
}
