/* =============================================
   Crypto Influencer Directory — Global Styles
   ============================================= */

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

:root {
  --bg: #000000;
  --bg-card: #0a0a0a;
  --bg-surface: #111111;
  --bg-hover: #1a1a1a;
  --blue: #0066FF;
  --blue-light: #3385ff;
  --blue-glow: rgba(0, 102, 255, 0.3);
  --gold: #F7931A;
  --gold-light: #ffaa44;
  --gold-glow: rgba(247, 147, 26, 0.25);
  --text: #e8e8e8;
  --text-muted: #888888;
  --text-dim: #555555;
  --border: #1e1e1e;
  --border-blue: rgba(0, 102, 255, 0.4);
  --border-gold: rgba(247, 147, 26, 0.4);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--blue-light); }

img { max-width: 100%; height: auto; }

/* ── UTILITY ───────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag-blue { background: rgba(0,102,255,0.15); color: var(--blue); border: 1px solid var(--border-blue); }
.tag-gold { background: rgba(247,147,26,0.12); color: var(--gold); border: 1px solid var(--border-gold); }

/* ── NAV ────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text) !important;
  white-space: nowrap;
}
.nav-logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── HERO ────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,102,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ── SEARCH BAR ─────────────────────────────── */
.search-wrap {
  max-width: 560px;
  margin: 0 auto 20px;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
}
#searchInput {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font);
}
#searchInput::placeholder { color: var(--text-dim); }
#searchInput:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.filter-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.chip {
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover, .chip.active {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0,102,255,0.08);
}

/* ── SECTION HEADERS ─────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.section-title span {
  color: var(--blue);
}

/* ── INFLUENCER CARDS ────────────────────────── */
.section-featured {
  padding: 20px 0 60px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.influencer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
}
.influencer-card:hover {
  border-color: var(--border-blue);
  box-shadow: 0 0 30px var(--blue-glow);
  transform: translateY(-3px);
  color: inherit;
}

.card-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #0044bb);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  border: 2px solid var(--border-blue);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-info { flex: 1; min-width: 0; }
.card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-handle {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.card-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.card-links { display: flex; gap: 10px; }
.card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s;
}
.card-link-btn.yt {
  background: rgba(255,0,0,0.1);
  color: #ff4444;
  border: 1px solid rgba(255,0,0,0.2);
}
.card-link-btn.yt:hover { background: rgba(255,0,0,0.2); }
.card-link-btn.tw {
  background: rgba(0,102,255,0.1);
  color: var(--blue);
  border: 1px solid var(--border-blue);
}
.card-link-btn.tw:hover { background: rgba(0,102,255,0.2); }

.view-profile {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Placeholder cards */
.card-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  text-align: center;
  opacity: 0.55;
}
.card-placeholder .ph-icon {
  font-size: 2rem;
  color: var(--text-dim);
}
.card-placeholder p {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ── AFFILIATE SECTION ───────────────────────── */
.section-affiliate {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.affiliate-header {
  text-align: center;
  margin-bottom: 36px;
}
.affiliate-header h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.affiliate-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.affiliate-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}
.affiliate-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 0 24px var(--gold-glow);
  transform: translateY(-2px);
  color: inherit;
}
.affiliate-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.affiliate-info { flex: 1; min-width: 0; }
.affiliate-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.affiliate-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.affiliate-arrow {
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.affiliate-disclaimer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── AD PLACEHOLDER ──────────────────────────── */
.ad-slot {
  text-align: center;
  padding: 20px;
  margin: 24px 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.8rem;
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  margin-top: 60px;
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  margin-bottom: 32px;
  align-items: start;
}

.footer-brand { max-width: 320px; }
.footer-brand .nav-logo { margin-bottom: 10px; }
.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer-disclaimer {
  background: rgba(247,147,26,0.06);
  border: 1px solid rgba(247,147,26,0.2);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

/* ── PROFILE PAGES ───────────────────────────── */
.profile-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text-dim); }

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #0044bb);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  flex-shrink: 0;
  border: 3px solid var(--border-blue);
  box-shadow: 0 0 30px var(--blue-glow);
}

.profile-meta { flex: 1; min-width: 200px; }
.profile-meta h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}

.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }

.profile-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-yt {
  background: #FF0000;
  color: #fff;
}
.btn-yt:hover { background: #cc0000; color: #fff; }
.btn-x {
  background: var(--blue);
  color: #fff;
}
.btn-x:hover { background: var(--blue-light); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* Profile content */
.profile-body {
  padding: 48px 0;
}
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.profile-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.profile-content h2:first-child { margin-top: 0; }

.profile-content p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.profile-content ul {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}
.profile-content ul li { margin-bottom: 6px; }

.disclosure-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 32px;
  line-height: 1.55;
}
.disclosure-box strong { color: var(--text); }

/* Sidebar */
.profile-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sidebar-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.sidebar-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.sidebar-link-row:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-link-row a { color: var(--text-muted); }
.sidebar-link-row a:hover { color: var(--blue); }
.sidebar-link-icon { font-size: 1.1rem; width: 22px; text-align: center; }

/* ── ABOUT / GENERIC PAGES ───────────────────── */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0 60px;
}
.page-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}
.page-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.page-content ul {
  margin: 0 0 14px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}
.page-content ul li { margin-bottom: 6px; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .profile-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .profile-sidebar { order: -1; }
}

@media (max-width: 480px) {
  .profile-header { gap: 16px; }
  .profile-avatar { width: 72px; height: 72px; font-size: 2rem; }
  .cards-grid { grid-template-columns: 1fr; }
}
