:root {
--primary: #7c3aed;
--primary-hover: #6d28d9;
--primary-glow: rgba(124,58,237,0.25);
--bg: #0a0a1a;
--bg-card: rgba(20,20,40,0.95);
--bg-card-hover: rgba(30,30,55,0.98);
--border: rgba(255,255,255,0.08);
--border-hover: rgba(124,58,237,0.4);
--text: #ffffff;
--text-muted: #9ca3af;
--text-dim: #94a3b8;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
body::before { content:''; position:fixed; top:0; left:0; right:0; bottom:0; background:radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.08) 0%, transparent 60%); pointer-events:none; z-index:0; }
a { color: #c4b5fd; text-decoration: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.sol-icon { height: 11px; width: 11px; vertical-align: -1px; opacity: 0.7; }

/* Hero — OpenSea-style banner with overlaid profile */
.creator-hero { position: relative; width: 100%; z-index: 1; }
.creator-banner { position: relative; width: 100%; height: 340px; overflow: hidden; }
.creator-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creator-banner::after { content:''; position:absolute; inset:0; background:linear-gradient(to top, var(--bg) 0%, rgba(10,10,26,0.5) 35%, transparent 70%); }
.creator-banner-placeholder { width:100%; height:100%; background:linear-gradient(135deg, rgba(124,58,237,0.2) 0%, rgba(59,130,246,0.1) 50%, rgba(124,58,237,0.15) 100%); }

/* Profile overlay — sits on bottom of banner */
.creator-profile-overlay { position: relative; z-index: 2; max-width: 1100px; margin: -90px auto 0; padding: 0 32px 28px; display: flex; align-items: flex-end; gap: 20px; }
.creator-avatar { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; border: 4px solid var(--bg); background: var(--bg-card); flex-shrink: 0; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.creator-info { flex: 1; min-width: 0; }
.creator-name { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.creator-description { font-size: 0.85rem; color: var(--text-dim); max-width: 520px; line-height: 1.55; margin-top: 6px; }

/* Social links — icon pills inline */
.creator-socials { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.creator-social-link { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: var(--text-muted); transition: all 0.15s; }
.creator-social-link:hover { background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.4); color: #c4b5fd; }
.creator-social-link svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.creator-social-link .stroke-icon { fill: none; stroke: currentColor; }

/* Stats — right-aligned row */
.creator-stats { display: flex; gap: 6px; flex-shrink: 0; align-items: flex-end; }
.creator-stat { text-align: center; padding: 10px 16px; background: rgba(0,0,0,0.35); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; min-width: 90px; }
.creator-stat-value { font-size: 1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; }
.creator-stat-label { font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px; }

/* Team Section */
.team-section { max-width: 1100px; margin: 0 auto 32px; padding: 0 24px; position: relative; z-index: 1; }
.team-section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,0.02); cursor: pointer; transition: all 0.15s; user-select: none; }
.team-section-header:hover { background: rgba(255,255,255,0.04); border-color: rgba(124,58,237,0.25); }
.team-section-header svg.team-icon { width: 18px; height: 18px; color: var(--text-dim); }
.team-section-header h3 { font-size: 0.95rem; font-weight: 700; flex: 1; }
.team-section-header .team-count { font-size: 0.75rem; color: var(--text-muted); }
.team-section-header .team-chevron { width: 16px; height: 16px; color: var(--text-dim); transition: transform 0.2s; }
.team-section.open .team-chevron { transform: rotate(180deg); }
.team-section-body { display: none; }
.team-section.open .team-section-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .team-section.open .team-section-body { grid-template-columns: 1fr; } }
.team-column { min-width: 0; }
.team-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.team-label.founders { color: #fbbf24; }
.team-label.members { color: var(--text-muted); margin-top: 16px; }
.team-grid { display: flex; flex-direction: column; gap: 8px; }
.team-card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); transition: all 0.2s; }
.team-card:hover { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.3); transform: translateY(-1px); }
.team-card-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.06); flex-shrink: 0; border: 2px solid rgba(255,255,255,0.08); }
.team-card-info { flex: 1; min-width: 0; }
.team-card-name { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-card-handle { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }
.team-card-arrow { width: 14px; height: 14px; color: var(--text-dim); flex-shrink: 0; opacity: 0; transition: opacity 0.15s; }
.team-card:hover .team-card-arrow { opacity: 1; }

/* Collection Grid */
.grid-section { max-width: 1100px; margin: 0 auto; padding: 0 24px 60px; position: relative; z-index: 1; }
.grid-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.grid-header svg { width: 18px; height: 18px; color: var(--text-dim); }
.grid-header h3 { font-size: 0.95rem; font-weight: 700; }
.grid-header .grid-count { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .collection-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .collection-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .collection-grid { grid-template-columns: 1fr; } }

.col-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; cursor: pointer; transition: all 0.2s; overflow: hidden; text-decoration: none; color: var(--text); display: block; }
.col-card:hover { transform: translateY(-4px); border-color: var(--border-hover); background: var(--bg-card-hover); box-shadow: 0 12px 40px rgba(124,58,237,0.12); }
.col-img-wrap { width: 100%; aspect-ratio: 1; overflow: hidden; }
.col-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-card-body { padding: 12px 14px 14px; }
.col-name { font-size: 0.88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.col-mini-stats { display: flex; justify-content: space-between; gap: 4px; }
.col-mini-stat { text-align: center; flex: 1; }
.col-mini-stat .label { font-size: 0.55rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.3px; }
.col-mini-stat .value { font-size: 0.75rem; font-weight: 700; margin-top: 2px; display: flex; align-items: center; justify-content: center; gap: 2px; }

/* Back link */
.back-link { display: inline-flex; align-items: center; gap: 6px; padding: 16px 24px 0; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); z-index: 2; position: relative; transition: color 0.15s; }
.back-link:hover { color: #c4b5fd; }
.back-link svg { width: 14px; height: 14px; }

/* Content Cards */
.content-cards-section { max-width: 1100px; margin: 0 auto; padding: 0 24px 60px; position: relative; z-index: 1; }
.content-cards-header { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.content-cards-header svg { width: 18px; height: 18px; color: var(--text-dim); }
.content-cards-header h3 { font-size: 0.95rem; font-weight: 700; }
.cc-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 20px; transition: border-color 0.2s; }
.cc-card:hover { border-color: rgba(124,58,237,0.2); }

/* Layout: image-left */
.cc-card.layout-image-left .cc-inner { display: grid; grid-template-columns: 40% 1fr; }
.cc-card.layout-image-right .cc-inner { display: grid; grid-template-columns: 1fr 40%; }
.cc-card.layout-image-right .cc-img { order: 2; }
.cc-card.layout-image-right .cc-text { order: 1; }

/* Layout: image-top */
.cc-card.layout-image-top .cc-inner { display: flex; flex-direction: column; }
.cc-card.layout-image-top .cc-img { width: 100%; }
.cc-card.layout-image-top .cc-img img { width: 100%; height: auto; min-height: unset; max-height: none; object-fit: contain; }

/* Layout: full-width */
.cc-card.layout-full-width { position: relative; }
.cc-card.layout-full-width .cc-img { position: absolute; inset: 0; }
.cc-card.layout-full-width .cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cc-card.layout-full-width .cc-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,10,26,0.92) 0%, rgba(10,10,26,0.6) 100%); }
.cc-card.layout-full-width .cc-text { position: relative; z-index: 1; min-height: 180px; }
.cc-card.layout-full-width .cc-inner { display: flex; }

.cc-img { overflow: hidden; position: relative; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-text { padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.cc-text h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.cc-text p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.65; margin: 0; white-space: pre-line; }
.cc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 18px; background: var(--primary); color: #fff; border-radius: 8px; font-size: 0.82rem; font-weight: 600; transition: background 0.15s; text-decoration: none; width: fit-content; }
.cc-link:hover { background: var(--primary-hover); color: #fff; }
.cc-link svg { width: 13px; height: 13px; }

@media (max-width: 700px) {
.cc-card.layout-image-left .cc-inner,
.cc-card.layout-image-right .cc-inner { grid-template-columns: 1fr; }
.cc-card.layout-image-right .cc-img { order: 0; }
.cc-card.layout-image-right .cc-text { order: 0; }
.cc-text { padding: 18px 20px; }
.cc-card.layout-full-width .cc-text { min-height: 140px; }
}

/* Loading / Error */
.loading-state { text-align: center; padding: 80px 24px; color: var(--text-muted); }
.loading-state .spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { text-align: center; padding: 80px 24px; color: var(--text-muted); }
.error-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }

/* Tablet */
@media (max-width: 900px) {
.creator-profile-overlay { flex-wrap: wrap; }
.creator-stats { width: 100%; justify-content: flex-start; margin-top: 12px; }
}

/* Mobile */
@media (max-width: 640px) {
.creator-banner { height: 200px; }
.creator-profile-overlay { margin-top: -60px; padding: 0 16px 20px; gap: 14px; flex-direction: column; align-items: flex-start; }
.creator-avatar { width: 72px; height: 72px; border-radius: 14px; }
.creator-name { font-size: 1.35rem; }
.creator-stats { flex-wrap: wrap; gap: 6px; }
.creator-stat { min-width: 70px; padding: 8px 10px; }
.creator-stat-value { font-size: 0.85rem; }
.team-grid { grid-template-columns: 1fr; }
}