/* ============================================
   SONAARAN — Creator Profile & Archive CSS
   ============================================ */

/* ---- Creator Archive (Directory) ---- */
.creator-hero { background: linear-gradient(135deg, #0D0A05 0%, #1A1008 50%, #0D0A05 100%); min-height: 380px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 100px 20px 60px; position: relative; overflow: hidden; }
.creator-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(201,168,76,0.13) 0%, transparent 68%); pointer-events: none; }
.creator-hero-inner { position: relative; z-index: 1; }
.creator-hero h1 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); margin-bottom: 14px; line-height: 1.1; }
.creator-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.65); max-width: 580px; margin: 0 auto 32px; line-height: 1.75; }

/* Creator filter tabs */
.creator-filters { background: var(--white); border-bottom: 1px solid var(--border-light); position: sticky; top: var(--header-height); z-index: 90; }
.creator-filter-inner { display: flex; overflow-x: auto; scrollbar-width: none; align-items: center; gap: 8px; padding: 12px 0; }
.creator-filter-inner::-webkit-scrollbar { display: none; }
.creator-filter-btn { padding: 8px 20px; border-radius: var(--radius-full); font-size: 13px; font-weight: 500; border: 1.5px solid var(--border); color: var(--text-mid); cursor: pointer; transition: var(--transition); white-space: nowrap; flex-shrink: 0; background: var(--white); font-family: var(--font-body); }
.creator-filter-btn:hover, .creator-filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* Creator Grid */
.creator-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.creator-card-archive { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-light); transition: var(--transition); }
.creator-card-archive:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.creator-card-cover { height: 120px; position: relative; overflow: hidden; }
.creator-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.creator-card-avatar { position: absolute; bottom: -28px; left: 20px; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--white); overflow: hidden; background: var(--bg-section); box-shadow: var(--shadow-md); }
.creator-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-card-body { padding: 36px 20px 20px; }
.creator-card-name { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.creator-verified { color: var(--gold); font-size: 13px; }
.creator-card-niche { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.creator-card-stats { display: flex; gap: 16px; margin-bottom: 14px; }
.creator-stat { text-align: center; }
.creator-stat .stat-num { font-size: 14px; font-weight: 700; color: var(--text-dark); font-family: var(--font-heading); }
.creator-stat .stat-label { font-size: 11px; color: var(--text-light); }
.creator-tier-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; margin-bottom: 12px; }
.tier-diamond { background: linear-gradient(135deg, #E8F4FD, #BEE3F8); color: #2C7BE5; }
.tier-gold { background: var(--gold-light); color: var(--gold-dark); }
.tier-silver { background: #F5F5F5; color: #666; }

/* ---- Creator Single Profile ---- */
.creator-profile-cover { height: 300px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--gold), var(--rose-gold)); }
.creator-profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.creator-profile-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.4) 100%); }

.creator-profile-header { background: var(--white); border-bottom: 1px solid var(--border-light); }
.creator-profile-identity { display: flex; align-items: flex-end; gap: 24px; padding: 0 0 24px; margin-top: -60px; position: relative; z-index: 2; }
.creator-profile-avatar { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--white); overflow: hidden; background: var(--bg-section); box-shadow: var(--shadow-lg); flex-shrink: 0; }
.creator-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-profile-info { flex: 1; padding-bottom: 4px; }
.creator-profile-name { font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--text-dark); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.creator-profile-niche { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }
.creator-profile-bio { font-size: 14px; color: var(--text-mid); max-width: 500px; line-height: 1.6; }
.creator-profile-actions { display: flex; gap: 10px; align-items: flex-end; padding-bottom: 4px; flex-shrink: 0; }

/* Creator Stats Bar */
.creator-stats-bar { display: flex; gap: 0; border-top: 1px solid var(--border-light); }
.creator-stats-bar .stat { flex: 1; text-align: center; padding: 16px 12px; border-right: 1px solid var(--border-light); }
.creator-stats-bar .stat:last-child { border-right: none; }
.creator-stats-bar .stat-num { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--text-dark); }
.creator-stats-bar .stat-label { font-size: 12px; color: var(--text-light); }

/* Creator Tabs */
.creator-tabs { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: var(--header-height); z-index: 88; }
.creator-tabs-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.creator-tabs-inner::-webkit-scrollbar { display: none; }
.creator-tab { padding: 14px 24px; font-size: 13.5px; font-weight: 600; color: var(--text-mid); cursor: pointer; border-bottom: 2.5px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s; flex-shrink: 0; font-family: var(--font-body); background: none; border-left: none; border-right: none; border-top: none; }
.creator-tab.active, .creator-tab:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* Tab Panes */
.creator-tab-pane { display: none; }
.creator-tab-pane.active { display: block; }

/* Store / Product Grid */
.creator-store-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.store-filter-btn { padding: 6px 18px; border-radius: var(--radius-full); font-size: 13px; font-weight: 500; border: 1.5px solid var(--border); color: var(--text-mid); background: var(--white); cursor: pointer; transition: var(--transition); font-family: var(--font-body); }
.store-filter-btn:hover, .store-filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--white); }
.creator-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Reels Grid */
.creator-reels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.creator-reel-card { position: relative; aspect-ratio: 9/16; border-radius: var(--radius-md); overflow: hidden; background: var(--text-dark); cursor: pointer; }
.creator-reel-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity var(--transition); }
.creator-reel-card:hover img { opacity: 1; }
.creator-reel-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
.creator-reel-title { color: var(--white); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.creator-reel-stats { display: flex; gap: 12px; }
.creator-reel-stat { color: rgba(255,255,255,0.8); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.creator-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-dark); transition: var(--transition); }
.creator-reel-card:hover .creator-play-btn { background: var(--gold); color: var(--white); }

/* Reviews */
.creator-reviews-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.creator-rating-summary { background: var(--cream); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border-light); }
.creator-big-rating { font-family: var(--font-heading); font-size: 4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.creator-review-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-track { flex: 1; height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.review-track-fill { height: 100%; background: var(--gold); border-radius: 3px; }
.creator-review-card { background: var(--white); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; border: 1px solid var(--border-light); }

/* About */
.creator-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.creator-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.creator-highlight { text-align: center; padding: 20px; background: var(--cream); border-radius: var(--radius-md); border: 1px solid var(--border-light); }
.creator-highlight-icon { font-size: 28px; margin-bottom: 8px; }
.creator-highlight-label { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.creator-highlight-value { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-top: 2px; }

/* Related Creators */
.related-creators-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Responsive */
@media (max-width: 1024px) {
  .creator-grid { grid-template-columns: repeat(3, 1fr); }
  .creator-products-grid { grid-template-columns: repeat(3, 1fr); }
  .related-creators-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .creator-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .creator-profile-identity { flex-direction: column; align-items: flex-start; gap: 0; }
  .creator-profile-avatar { margin-top: -40px; }
  .creator-profile-actions { width: 100%; margin-top: 16px; }
  .creator-stats-bar { flex-wrap: wrap; }
  .creator-stats-bar .stat { flex: 1 1 30%; }
  .creator-reels-grid { grid-template-columns: repeat(2, 1fr); }
  .creator-reviews-layout { grid-template-columns: 1fr; }
  .creator-about-grid { grid-template-columns: 1fr; }
  .creator-highlights { grid-template-columns: repeat(2, 1fr); }
  .creator-products-grid { grid-template-columns: repeat(2, 1fr); }
  .related-creators-grid { grid-template-columns: repeat(2, 1fr); }
  .creator-hero { min-height: 300px; padding: 80px 16px 48px; }
  .creator-profile-cover { height: 200px; }
}

@media (max-width: 480px) {
  .creator-grid { grid-template-columns: 1fr; }
  .creator-reels-grid { grid-template-columns: 1fr; }
  .creator-highlights { grid-template-columns: 1fr 1fr; }
}
