/* discover.css — Creator Discovery page styles */
/* Dark theme with cyan (#00F2EA) + coral (#FF4D6D) brand tokens from theme.css */

body { background: #050507; color: #F5F5F7; font-family: 'DM Sans', -apple-system, sans-serif; }

/* ── Page Layout ──────────────────────────────────────────────────────────── */

.discover-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 80px;
}

.discover-header {
  margin-bottom: 2.5rem;
}

.discover-header h1 {
  font-family: 'Syne', -apple-system, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #F5F5F7;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.discover-header p {
  font-size: 1rem;
  color: #A0A0B0;
}

/* ── Filter Bar ───────────────────────────────────────────────────────────── */

.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: rgba(13, 13, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #1e1e26;
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #5A5A6A;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-select {
  background: #131318;
  border: 1px solid #1e1e26;
  border-radius: 8px;
  color: #F5F5F7;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  padding: 8px 32px 8px 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.2s;
  min-width: 150px;
}

.filter-select:focus { border-color: #00F2EA; }
.filter-select.has-value { border-color: rgba(0, 242, 234, 0.4); color: #00F2EA; }

.filter-group::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(6px);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #A0A0B0;
  pointer-events: none;
}

.filter-sep {
  width: 1px;
  height: 36px;
  background: #1e1e26;
  flex-shrink: 0;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: #FF4D6D;
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 5px;
}

.reset-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #A0A0B0;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}

.reset-btn:hover { border-color: rgba(255, 255, 255, 0.3); color: #F5F5F7; }

/* ── Creator Grid ─────────────────────────────────────────────────────────── */

.creator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .creator-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .creator-grid { grid-template-columns: 1fr; } }

/* ── Creator Card ─────────────────────────────────────────────────────────── */

.creator-card {
  background: #131318;
  border: 1px solid #1e1e26;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.creator-card:hover {
  border-color: #00F2EA;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 242, 234, 0.15);
}

.card-thumb {
  position: relative;
  aspect-ratio: 9/16;
  background: #0d0d10;
  overflow: hidden;
}

.card-thumb video,
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d0d10 0%, #1a1a22 100%);
}

.card-thumb-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.card-thumb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.card-thumb-overlay svg { width: 13px; height: 13px; }

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #1e1e26;
  flex-shrink: 0;
  border: 2px solid #2a2a35;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #00F2EA;
}

.card-avatar img { width: 100%; height: 100%; object-fit: cover; }

.card-name-row {
  flex: 1;
  min-width: 0;
}

.card-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #F5F5F7;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verified-badge {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.card-handle {
  font-size: 0.78rem;
  color: #5A5A6A;
  margin-top: 1px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card-followers {
  font-size: 0.85rem;
  font-weight: 700;
  color: #F5F5F7;
}

.card-followers .cyan { color: #00F2EA; }

.card-niche-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 77, 109, 0.15);
  color: #FF4D6D;
  border: 1px solid rgba(255, 77, 109, 0.2);
  border-radius: 999px;
  padding: 2px 8px;
}

.card-divider {
  height: 1px;
  background: #1e1e26;
  margin: 2px 0;
}

.card-stats {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: #A0A0B0;
}

.card-stats strong {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: #F5F5F7;
  margin-right: 2px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.btn-card-profile {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-card-profile:hover {
  border-color: #00F2EA;
  color: #00F2EA;
}

.btn-card-invite {
  flex: 1;
  background: #FF4D6D;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-card-invite:hover { opacity: 0.85; }

.btn-card-message {
  flex: 1;
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: #FF4D6D;
  border-radius: 8px;
  padding: 9px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-card-message:hover { background: rgba(255, 77, 109, 0.25); }

/* ── Empty State ──────────────────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: #5A5A6A;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  opacity: 0.3;
}

.empty-state h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #A0A0B0;
  margin-bottom: 0.5rem;
}

.empty-state p { font-size: 0.9rem; }

/* ── Load More + Pagination ───────────────────────────────────────────────── */

.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.load-more-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 12px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.load-more-btn:hover { border-color: #00F2EA; color: #00F2EA; }
.load-more-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.load-more-btn .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.load-info {
  font-size: 0.8rem;
  color: #5A5A6A;
  text-align: center;
  margin-top: 1rem;
}

/* ── Invite Modal ─────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  padding: 24px;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.invite-modal {
  background: #131318;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 28px 28px 32px;
}

.invite-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.invite-modal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #1e1e26;
  border: 2px solid #2a2a35;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #00F2EA;
  flex-shrink: 0;
}

.invite-modal-avatar img { width: 100%; height: 100%; object-fit: cover; }

.invite-modal-info { flex: 1; }
.invite-modal-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #F5F5F7;
  display: flex;
  align-items: center;
  gap: 6px;
}
.invite-modal-handle { font-size: 0.82rem; color: #5A5A6A; margin-top: 2px; }

.invite-modal-close {
  background: none;
  border: none;
  color: #5A5A6A;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.invite-modal-close:hover { color: #F5F5F7; }

.invite-form-group { margin-bottom: 16px; }

.invite-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.invite-textarea {
  width: 100%;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #F5F5F7;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
  outline: none;
  resize: vertical;
  min-height: 90px;
  transition: border-color 0.2s;
}

.invite-textarea:focus { border-color: #00F2EA; }
.invite-textarea::placeholder { color: #4a4a5a; }

.invite-actions { display: flex; gap: 12px; margin-top: 20px; }

.btn-invite-send {
  flex: 1;
  background: #FF4D6D;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-invite-send:hover { opacity: 0.85; }
.btn-invite-send:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-invite-cancel {
  flex: 1;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-invite-cancel:hover { border-color: rgba(255, 255, 255, 0.3); color: #F5F5F7; }

.invite-success {
  background: rgba(0, 242, 234, 0.12);
  border: 1px solid rgba(0, 242, 234, 0.3);
  color: #00F2EA;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 16px;
  display: none;
}

.invite-success.visible { display: block; }

.invite-error {
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: #FF4D6D;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  margin-top: 12px;
  display: none;
}

.invite-error.visible { display: block; }

/* ── Success Toast ────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #131318;
  border: 1px solid rgba(0, 242, 234, 0.4);
  border-radius: 12px;
  padding: 16px 20px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #00F2EA;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.visible { opacity: 1; transform: translateY(0); }

/* ── Skeleton Loader ──────────────────────────────────────────────────────── */

.skeleton {
  background: linear-gradient(90deg, rgba(30,30,38,0.6) 25%, rgba(50,50,62,0.8) 50%, rgba(30,30,38,0.6) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  border-radius: 6px;
  color: transparent !important;
}

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