/* ============================================
   ArtisticallyNude.com — Shared Design System
   Dark theme, hot rose accent (explicit site)
   ============================================ */

:root {
  --color-bg: #0f0f13;
  --color-white: #1a1a22;
  --color-bg-warm: #16161e;
  --color-bg-hover: #1e1e28;
  --color-bg-card: #1a1a22;
  --color-border: #2a2a36;
  --color-border-strong: #3a3a48;

  --color-text: #e8e8ec;
  --color-text-secondary: #a0a0ac;
  --color-text-muted: #6a6a78;

  --color-accent: #e11d48;
  --color-accent-hover: #f43f5e;
  --color-accent-light: #2a1020;
  --color-accent-border: #4a1a30;

  --color-gold: #d4a017;
  --color-silver: #8a8fa0;
  --color-bronze: #c0703a;
  --color-success: #22c55e;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.5);

  --container-max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* --- TOP BAR --- */
.top-bar {
  background: rgba(15,15,19,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-bar-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-bar-brand:hover { color: var(--color-text); }
.brand-icon {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--color-accent), #f43f5e);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 900;
  color: white;
}
.top-bar-nav { display: flex; align-items: center; gap: 4px; }
.top-bar-nav a {
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  transition: all 150ms;
}
.top-bar-nav a:hover { color: var(--color-text); background: var(--color-bg-hover); }
.top-bar-nav a.active { color: var(--color-accent); font-weight: 600; }
.top-bar-actions { display: flex; gap: 8px; align-items: center; }
.top-bar-actions a {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: all 150ms;
}
.link-muted { color: var(--color-text-muted); }
.link-muted:hover { color: var(--color-text); }
.btn-sm-accent {
  background: var(--color-accent);
  color: white !important;
  text-decoration: none;
}
.btn-sm-accent:hover { background: var(--color-accent-hover); color: white !important; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 150ms;
  text-decoration: none;
  white-space: nowrap;
}
.btn-accent { background: var(--color-accent); color: white; }
.btn-accent:hover { background: var(--color-accent-hover); color: white; }
.btn-outline { background: transparent; color: var(--color-text-secondary); border-color: var(--color-border-strong); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-ghost { background: transparent; color: var(--color-text-muted); border: none; }
.btn-ghost:hover { color: var(--color-text); }
.btn-danger { background: var(--color-danger); color: white; }
.btn-danger:hover { background: #b91c1c; color: white; }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; }
.btn-block { width: 100%; }

/* --- SECTION HELPERS --- */
.section { padding: 56px 0; }
.section-alt { background: var(--color-bg-warm); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-label {
  display: inline-block;
  padding: 4px 14px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}
.section-header p {
  color: var(--color-text-secondary);
  margin-top: 8px;
  font-size: 0.95rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- PAGE HERO (for inner pages) --- */
.page-hero {
  padding: 48px 0 36px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
}
.page-hero h1 em { font-style: italic; color: var(--color-accent); }
.page-hero p {
  color: var(--color-text-secondary);
  margin-top: 8px;
  font-size: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- FILTER PILLS --- */
.filter-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-row.centered { justify-content: center; }
.filter-pill {
  padding: 4px 11px;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-white);
  cursor: pointer;
  transition: all 150ms;
}
.filter-pill:hover { border-color: var(--color-accent-border); color: var(--color-accent); }
.filter-pill.active { background: var(--color-accent-light); border-color: var(--color-accent-border); color: var(--color-accent); }

/* --- CARDS --- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 200ms ease;
}
.card:hover {
  border-color: var(--color-accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-body { padding: 16px 18px; }

/* --- AVATAR --- */
.avatar {
  border-radius: 50%;
  background: var(--color-bg-warm);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 0.6rem; }
.avatar-md { width: 38px; height: 38px; font-size: 0.7rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 0.9rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.2rem; border-width: 3px; }
.avatar-gold { border-color: var(--color-gold); }
.avatar-silver { border-color: var(--color-silver); }
.avatar-bronze { border-color: var(--color-bronze); }
.avatar-accent { border-color: var(--color-accent); }

/* --- BADGE --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
}
.badge-accent { background: var(--color-accent-light); color: var(--color-accent); border: 1px solid var(--color-accent-border); }
.badge-gold { background: #fef3c7; color: var(--color-gold); border: 1px solid #fde68a; }
.badge-success { background: #dcfce7; color: var(--color-success); border: 1px solid #86efac; }
.badge-danger { background: #fee2e2; color: var(--color-danger); border: 1px solid #fca5a5; }
.badge-muted { background: var(--color-bg-warm); color: var(--color-text-muted); border: 1px solid var(--color-border); }

/* --- STAT --- */
.stat { text-align: center; }
.stat-num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.stat-num.accent { color: var(--color-accent); }
.stat-num.gold { color: var(--color-gold); }
.stat-num.success { color: var(--color-success); }
.stat-label {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* --- TABS --- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}
.tab {
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 150ms;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-sans);
}
.tab:hover { color: var(--color-text); }
.tab.active { color: var(--color-accent); border-bottom-color: var(--color-accent); font-weight: 600; }

/* --- FORM ELEMENTS --- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 150ms, box-shadow 150ms;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(225,29,72,0.1);
}
.form-input::placeholder { color: var(--color-text-muted); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.72rem; color: var(--color-text-muted); margin-top: 4px; }

/* --- GALLERY GRID --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 200ms ease;
}
.gallery-item:hover {
  border-color: var(--color-accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.gallery-item-img {
  width: 100%;
  height: 100%;
}
.gallery-item-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: white;
  font-size: 0.72rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 200ms;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* Gallery placeholder colors (dark) */
.gp-1 { background: linear-gradient(135deg, #1a1510, #2a2018, #1a1510); }
.gp-2 { background: linear-gradient(135deg, #10151a, #182028, #10151a); }
.gp-3 { background: linear-gradient(135deg, #1a1018, #281a28, #1a1018); }
.gp-4 { background: linear-gradient(135deg, #101a14, #182820, #101a14); }
.gp-5 { background: linear-gradient(135deg, #1a1210, #281818, #1a1210); }
.gp-6 { background: linear-gradient(135deg, #141018, #201828, #141018); }
.gp-7 { background: linear-gradient(135deg, #1a1810, #282218, #1a1810); }
.gp-8 { background: linear-gradient(135deg, #101a1a, #182828, #101a1a); }

/* --- LEADERBOARD TABLE --- */
.lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  transition: background 150ms;
}
.lb-row:hover { background: var(--color-bg-warm); }
.lb-rank { width: 28px; font-size: 1rem; font-weight: 800; text-align: center; flex-shrink: 0; }
.lb-rank.gold { color: var(--color-gold); }
.lb-rank.silver { color: var(--color-silver); }
.lb-rank.bronze { color: var(--color-bronze); }
.lb-rank.normal { color: var(--color-text-muted); }
.lb-info { flex: 1; min-width: 0; }
.lb-name { font-weight: 600; font-size: 0.9rem; }
.lb-meta { font-size: 0.68rem; color: var(--color-text-muted); }
.lb-stats { display: flex; gap: 18px; align-items: center; flex-shrink: 0; }
.lb-stat { text-align: right; }
.lb-stat-num { font-weight: 700; font-size: 0.85rem; }
.lb-stat-num.elo { color: var(--color-accent); }
.lb-stat-num.wins { color: var(--color-success); }
.lb-stat-label { font-size: 0.58rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.lb-divider { height: 1px; background: var(--color-border); margin: 2px 18px; }

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0 20px;
  background: var(--color-white);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--color-text-muted); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 0.72rem; color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-text-secondary); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  color: var(--color-text-muted);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* --- UTILITY --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.72rem; }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .top-bar-nav { display: none; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .lb-stats { gap: 10px; }
  .page-hero { padding: 32px 0 24px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .filter-row { justify-content: center; }
}
