/* ============================================================
   CreatorMap — CSS
   Design : DatabazAI (light, clean, indigo accent)
   Font   : Inter (system fallback)
   ============================================================ */

/* --- Variables --- */
:root {
  --bg:          #ffffff;
  --bg-soft:     #f8f9fb;
  --surface:     #ffffff;
  --card:        #ffffff;
  --border:      #e5e7eb;
  --border-soft: #f3f4f6;
  --accent:      #4f46e5;
  --accent-2:    #6366f1;
  --accent-bg:   #eef2ff;
  --accent-bd:   #c7d2fe;
  --text:        #111827;
  --text-2:      #374151;
  --muted:       #6b7280;
  --dim:         #9ca3af;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-xs:   6px;
  --max-w:       1100px;
  --nav-h:       60px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 30px rgba(0,0,0,.10);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.fade-up { animation: fadeUp .3s ease both; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
}
.nav-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -.4px;
  flex-shrink: 0;
  margin-right: 8px;
}
.nav-logo span { color: var(--accent); }

.nav-search {
  flex: 1;
  max-width: 340px;
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search-icon {
  position: absolute;
  left: 11px;
  color: var(--muted);
  pointer-events: none;
  font-size: 16px;
  line-height: 1;
}
.nav-search input {
  width: 100%;
  padding: 7px 12px 7px 34px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.nav-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
  align-items: center;
  flex-wrap: nowrap;
}
.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s;
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg-soft); color: var(--text); }
.nav-link--active {
  background: var(--accent-bg);
  color: var(--accent);
}
.nav-link--btn {
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 7px 16px;
  margin-left: 6px;
}
.nav-link--btn:hover { background: #4338ca; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  padding: 72px 24px 64px;
  text-align: center;
  color: #fff;
}
.hero-inner { max-width: 680px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: #fff;
}
.accent { color: rgba(255,255,255,.85); font-style: italic; }
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-search {
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 0 auto 28px;
  background: #fff;
  border-radius: 10px;
  padding: 4px 4px 4px 16px;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.hero-search-icon { color: var(--muted); font-size: 17px; flex-shrink: 0; }
.hero-search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.hero-search input::placeholder { color: var(--dim); }
.hero-search button {
  padding: 9px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s;
}
.hero-search button:hover { background: #4338ca; }
.hero-langs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   LANG PILLS
   ============================================================ */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: all .15s;
}
.lang-pill:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* Hors hero */
.section .lang-pill,
.lang-filter-row .lang-pill,
.lang-filter-row .lang-pill--lg {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.section .lang-pill:hover,
.lang-filter-row .lang-pill--lg:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}
.lang-pill--lg { font-size: 14px; padding: 8px 18px; }
.lang-pill__count {
  background: var(--border);
  border-radius: 100px;
  padding: 1px 8px;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 0 24px 56px; }
.section--dark {
  background: var(--bg-soft);
  padding-top: 48px;
  padding-bottom: 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
}
.section-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: opacity .15s;
}
.section-link:hover { opacity: .75; }

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.cat-card:hover {
  border-color: var(--accent-bd);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-icon { font-size: 28px; }
.cat-name { font-weight: 700; font-size: 14px; color: var(--text); }
.cat-count { font-size: 12px; color: var(--muted); }

/* ============================================================
   CREATOR CARD
   ============================================================ */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.creator-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.creator-card:hover {
  border-color: var(--accent-bd);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.creator-card__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.creator-card__meta { flex: 1; min-width: 0; }
.creator-card__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.creator-card__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.creator-card__country { font-size: 14px; color: var(--muted); }
.creator-card__bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.creator-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.creator-card__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ============================================================
   AVATAR
   ============================================================ */
.creator-avatar {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-bg);
  border: 1.5px solid var(--accent-bd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}
.creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-avatar--lg {
  width: 80px;
  height: 80px;
  font-size: 24px;
  border-radius: 14px;
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--tc-bg, #eef2ff);
  border: 1px solid var(--tc-bd, #c7d2fe);
  font-size: 12px;
  font-weight: 600;
  color: var(--tc, var(--accent));
}
.tier-badge--lg { font-size: 13px; padding: 5px 14px; }
.tier-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tc, var(--accent));
  flex-shrink: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--tc-bg, var(--bg-soft));
  border: 1px solid var(--tc-bd, var(--border));
  font-size: 12px;
  font-weight: 500;
  color: var(--tc, var(--muted));
}
.tag--neutral {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--muted);
  --tc: var(--muted);
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--pc-bg, var(--bg-soft));
  border: 1px solid var(--pc-bd, var(--border));
  font-size: 12px;
  font-weight: 600;
  color: var(--pc, var(--muted));
}

/* ============================================================
   PAGE WRAP
   ============================================================ */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 24px 80px;
  animation: fadeUp .3s ease both;
}
.mt-0 { padding-top: 0 !important; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }

/* ============================================================
   CATEGORY HEADER
   ============================================================ */
.cat-header { margin-bottom: 36px; }
.cat-header__icon { font-size: 44px; margin-bottom: 12px; }
.cat-header__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text);
}
.cat-header__lang { font-size: 1.3rem; color: var(--muted); font-weight: 500; }
.cat-header__sub  { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.cat-header__count { font-size: 13px; color: var(--dim); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 28px;
}
.filter-bar__inner {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-right: 4px;
}
.filter-pill {
  padding: 5px 12px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 500;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
}
.filter-pill:hover { border-color: var(--accent-bd); color: var(--accent); background: var(--accent-bg); }
.filter-pill--active {
  background: var(--tc-bg, var(--accent-bg));
  border-color: var(--tc-bd, var(--accent-bd));
  color: var(--tc, var(--accent));
  font-weight: 600;
}
.filter-pill--reset {
  margin-left: auto;
  border-color: #fecaca;
  color: #ef4444;
  background: #fff5f5;
}
.filter-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  align-self: center;
}

/* ============================================================
   LANG GROUP
   ============================================================ */
.lang-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.lang-group { margin-bottom: 48px; }
.lang-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.lang-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.lang-group__count {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 1px 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   CREATOR HERO (profil)
   ============================================================ */
.creator-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 60%, #818cf8 100%);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.creator-hero__bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.creator-hero__content {
  position: relative;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.creator-hero__info { flex: 1; min-width: 220px; }
.creator-hero__name {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 10px;
  line-height: 1.1;
  color: #fff;
}
.creator-hero__realname {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  font-weight: 400;
  margin-left: 10px;
}
.creator-hero__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,.8);
}
.creator-hero__tags .tag {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  --tc: rgba(255,255,255,.9);
}
.creator-hero__bio {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  line-height: 1.75;
  max-width: 540px;
}
.creator-hero__stat {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 18px 22px;
  text-align: center;
  min-width: 140px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}
.creator-hero__stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.creator-hero__stat-platform { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); margin-bottom: 2px; }
.creator-hero__stat-label    { font-size: 12px; color: rgba(255,255,255,.6); }

/* Avatar dans le hero */
.creator-hero .creator-avatar {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

.creator-tier-row { margin-bottom: 16px; }

/* ============================================================
   ACCORDION (networks)
   ============================================================ */
.accordion {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  transition: background .15s;
}
.accordion__header:hover { background: var(--bg-soft); }
.accordion__count {
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-radius: 100px;
  padding: 1px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-left: 8px;
}
.accordion__arrow { color: var(--muted); font-size: 16px; transition: transform .2s; }
details[open] .accordion__arrow { transform: rotate(180deg); }
.accordion__body { border-top: 1px solid var(--border); }

/* ============================================================
   NETWORK ROW
   ============================================================ */
.network-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  transition: background .15s;
  flex-wrap: wrap;
}
.network-row:last-child { border-bottom: none; }
.network-row:hover { background: var(--bg-soft); }
.network-row__icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--pc-bg, var(--bg-soft));
  border: 1px solid var(--pc-bd, var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--pc, var(--muted));
  flex-shrink: 0;
}
.network-row__info {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.network-row__info strong { font-size: 14px; font-weight: 600; color: var(--text); }
.network-row__stats { font-size: 13px; color: var(--muted); }

/* ============================================================
   WHY FOLLOW
   ============================================================ */
.why-follow {
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 36px;
}
.why-follow h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
}
.why-follow p { color: var(--text-2); line-height: 1.8; font-size: 14px; }

/* ============================================================
   EXPLORE LAYOUT
   ============================================================ */
.explore-header { margin-bottom: 28px; }
.explore-header__title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text);
}
.explore-header__count {
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  border-radius: 100px;
  padding: 3px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
}
.explore-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar */
.sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  box-shadow: var(--shadow);
}
.sidebar__section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.sidebar__section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.sidebar__search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  color: var(--muted);
}
.sidebar__search-wrap input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.sidebar__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  transition: all .15s;
  width: 100%;
}
.sidebar__option:hover { background: var(--bg-soft); }
.sidebar__option--active { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
.sidebar__option input[type="radio"] { display: none; }
.sidebar__option-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--dim);
}
.sidebar__option--tier .sidebar__tier-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tc, var(--accent));
  flex-shrink: 0;
}
.sidebar__option--tier.sidebar__option--active { color: var(--tc, var(--accent)); background: var(--tc-bg, var(--accent-bg)); }
.sidebar__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

.explore-main { min-width: 0; }
.active-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.active-filter {
  padding: 3px 11px;
  border-radius: 100px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bd);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
}
.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover { background: #4338ca; }
.btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn--outline {
  background: var(--tc-bg, var(--accent-bg));
  color: var(--tc, var(--accent));
  border-color: var(--tc-bd, var(--accent-bd));
  padding: 6px 14px;
  font-size: 13px;
}
.btn--outline:hover { background: var(--tc-bg2, #e0e7ff); }
.btn--outline-white {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn--full { width: 100%; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  padding: 64px 24px;
  text-align: center;
  color: #fff;
}
.cta-inner { max-width: 480px; margin: 0 auto; }
.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 12px;
  color: #fff;
}
.cta-inner p { color: rgba(255,255,255,.8); margin-bottom: 24px; font-size: 15px; }
.cta-section .btn--accent {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
}
.cta-section .btn--accent:hover { background: #f0f0f0; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-state div { font-size: 2.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 48px 24px 0;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 300px; line-height: 1.6; }
.footer-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}
.footer-logo span { color: var(--accent); }
.footer-nav {
  display: flex;
  gap: 48px;
}
.footer-nav > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--dim);
  font-weight: 700;
  margin-bottom: 2px;
}
.footer-nav a { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   SECTION PADDING TOP
   ============================================================ */
.section { padding-top: 48px; }
.section--dark { padding-top: 48px; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--dim); }


/* ============================================================
   LANGUAGE GRID (homepage block + /languages page)
   ============================================================ */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.lang-grid--lg {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.lang-grid--sm {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 20px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.lang-card:hover {
  border-color: var(--accent-bd);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.lang-card--muted {
  opacity: .5;
  cursor: default;
  pointer-events: none;
}
.lang-card__flag    { font-size: 32px; line-height: 1; }
.lang-card__name    { font-weight: 700; font-size: 14px; color: var(--text); margin-top: 2px; }
.lang-card__native  { font-size: 12px; color: var(--muted); }
.lang-card__count   { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 2px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search { max-width: 100%; }
  .explore-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .creator-hero__content { flex-direction: column; }
  .creator-hero__stat { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { flex-wrap: wrap; gap: 28px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .hero-search { flex-direction: column; align-items: stretch; padding: 10px; }
  .hero-search button { width: 100%; }
  .creator-grid { grid-template-columns: 1fr; }
  .page-wrap { padding: 20px 16px 60px; }
}
