/* AdultPost — design system (AdultSiteGuide family, data-directory variant) */

:root {
  --ap-bg:       #05050a;
  --ap-bg-soft:  #090812;
  --ap-surface:  #10101a;
  --ap-elevated: #171221;
  --ap-border:   rgba(255,255,255,0.08);
  --ap-accent:   #ec4899;
  --ap-accent-hot: #ff2d8d;
  --ap-violet:   #8b5cf6;
  --ap-gold:     #fbbf24;
  --ap-green:    #34d399;
  --ap-text:     #f8fafc;
  --ap-muted:    #a1a1aa;
  --ap-radius-card:   1rem;
  --ap-radius-btn:    0.75rem;
}

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

body {
  background-color: var(--ap-bg);
  color: var(--ap-text);
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.ap-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-card);
}

/* ── Glass panel ─────────────────────────────────────────────────────────── */
.ap-glass {
  background: rgba(16,16,26,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--ap-border);
}

/* ── Badges ──────────────────────────────────────────────────────────────── */
.ap-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(236,72,153,0.15);
  color: #ec4899;
  border-radius: 0.375rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.ap-badge-violet { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.ap-badge-gold   { background: rgba(251,191,36,0.15);  color: #fbbf24; }
.ap-badge-green  { background: rgba(52,211,153,0.15);  color: #34d399; }
.ap-badge-muted  { background: rgba(161,161,170,0.12); color: #a1a1aa; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ec4899;
  color: #fff;
  border: none;
  border-radius: var(--ap-radius-btn);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  text-decoration: none;
  outline: none;
}
.ap-btn:hover  { background: #ff2d8d; box-shadow: 0 0 16px rgba(236,72,153,0.4); }
.ap-btn:active { background: #d63888; }

.ap-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ap-border);
  color: var(--ap-text);
  border-radius: var(--ap-radius-btn);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
  outline: none;
}
.ap-btn-outline:hover    { border-color: var(--ap-accent); color: var(--ap-accent); }
.ap-btn-outline:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

/* ── Inputs / selects ────────────────────────────────────────────────────── */
.ap-input {
  width: 100%;
  background: var(--ap-elevated);
  border: 1px solid var(--ap-border);
  border-radius: 0.625rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--ap-text);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.ap-input::placeholder { color: var(--ap-muted); }
.ap-input:focus { border-color: var(--ap-accent); }

/* ── Dividers ────────────────────────────────────────────────────────────── */
.neon-rule {
  height: 1px;
  background: linear-gradient(to right, transparent, #ec4899 30%, #8b5cf6 70%, transparent);
  border: none;
  margin: 0;
}

.divide-subtle > * + * {
  border-top: 1px solid var(--ap-border);
}

/* ── Text effects ────────────────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.ap-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ap-bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* ── Skeleton / loading pulse ────────────────────────────────────────────── */
@keyframes ap-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.ap-skeleton {
  background: var(--ap-elevated);
  border-radius: 0.5rem;
  animation: ap-pulse 1.6s ease-in-out infinite;
}

/* ── Star rating ─────────────────────────────────────────────────────────── */
.ap-stars { color: var(--ap-gold); letter-spacing: 0.05em; }

/* ── Gallery lightbox overlay ────────────────────────────────────────────── */
.ap-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
}
