/* ./static/css/artist.css */
/* Anonyxghost — Artist Page */

/* ─── Tokens ───────────────────────────────────────────────────────────── */
:root {
    --bg:           #0c0c0e;
    --bg-card:      #141417;
    --bg-raised:    #1a1a1f;
    --bg-hover:     #1f1f26;
    --border:       rgba(255,255,255,0.07);
    --border-light: rgba(255,255,255,0.12);
    --accent:       #c8ff3e;
    --accent-dim:   rgba(200,255,62,0.12);
    --accent-glow:  rgba(200,255,62,0.25);
    --insta:        #e1306c;
    --youtube:      #ff3333;
    --text-1:       #f2f2f4;
    --text-2:       #9898a6;
    --text-3:       #5a5a6a;
    --radius-sm:    10px;
    --radius-md:    16px;
    --radius-lg:    24px;
    --radius-xl:    32px;
    --shadow-card:  0 2px 12px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.4);
    --shadow-lift:  0 16px 48px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
    --transition:   0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Ambient background grain + subtle gradient — pure CSS, zero JS */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 600px at 60% -100px, rgba(200,255,62,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 600px 400px at -10% 60%, rgba(120,80,255,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Typography helpers ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, p, span, a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.smartlink-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12,12,14,0.82);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.4s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.nav-logo {
    font-family: ui-serif, 'Georgia', 'Times New Roman', serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--text-1);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color var(--transition);
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
}

.nav-logo:hover { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
    color: var(--text-1);
    background: var(--bg-raised);
}

/* ─── Main wrapper ───────────────────────────────────────────────────────── */
.artist-main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.artist-hero {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    animation: fadeUp 0.5s 0.1s cubic-bezier(0.4,0,0.2,1) both;
    position: relative;
}

/* Decorative top-edge accent line */
.artist-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
    border-radius: 0 0 2px 2px;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 36px;
    padding: 40px;
}

/* ─── Avatar ─────────────────────────────────────────────────────────────── */
.hero-avatar {
    flex: 0 0 auto;
    width: 160px;
    position: relative;
}

/* Glowing ring behind avatar */
.hero-avatar::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(var(--accent), rgba(200,255,62,0.3), var(--accent));
    z-index: -1;
    opacity: 0.5;
    animation: spin 8s linear infinite;
    border-radius: 50%;
}

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

.artist-avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 1;
    border: 3px solid var(--bg-card);
    box-shadow: var(--shadow-lift);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.hero-avatar:hover .artist-avatar { transform: scale(1.04); }

/* ─── Hero info ──────────────────────────────────────────────────────────── */
.hero-info {
    flex: 1 1 240px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.artist-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 10px;
}

/* Dot before label */
.artist-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.artist-name-display {
    font-family: ui-serif, 'Georgia', 'Times New Roman', serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-1);
    margin-bottom: 20px;
    word-break: break-word;
}

/* ─── Bio ────────────────────────────────────────────────────────────────── */
.artist-bio {
    margin-bottom: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bio-line {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-2);
    line-height: 1.6;
}

/* ─── Social links ───────────────────────────────────────────────────────── */
.social-links { margin-bottom: 24px; }

.social-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-3);
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 40px;
    text-decoration: none;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.social-link::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-3);
    flex-shrink: 0;
    transition: background var(--transition);
}

.social-link:hover {
    transform: translateY(-2px);
    color: var(--text-1);
}

.social-link.instagram:hover {
    background: rgba(225,48,108,0.15);
    border-color: var(--insta);
    color: var(--insta);
    box-shadow: 0 4px 16px rgba(225,48,108,0.2);
}
.social-link.instagram:hover::before { background: var(--insta); }

.social-link.youtube:hover {
    background: rgba(255,51,51,0.12);
    border-color: var(--youtube);
    color: var(--youtube);
    box-shadow: 0 4px 16px rgba(255,51,51,0.18);
}
.social-link.youtube:hover::before { background: var(--youtube); }

.social-link.facebook:hover {
    background: rgba(24,119,242,0.12);
    border-color: #1877F2;
    color: #1877F2;
    box-shadow: 0 4px 16px rgba(24,119,242,0.18);
}
.social-link.facebook:hover::before { background: #1877F2; }

.social-link.twitter:hover {
    background: rgba(29,161,242,0.12);
    border-color: #1DA1F2;
    color: #1DA1F2;
    box-shadow: 0 4px 16px rgba(29,161,242,0.18);
}
.social-link.twitter:hover::before { background: #1DA1F2; }

/* ─── Artist actions ─────────────────────────────────────────────────────── */
.artist-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 40px;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    min-height: 42px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
    touch-action: manipulation;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--accent);
    color: #0c0c0e;
}

.btn-primary:hover {
    box-shadow: 0 6px 24px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-2);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text-1);
    transform: translateY(-2px);
}

/* ─── Releases section ───────────────────────────────────────────────────── */
.releases-section {
    animation: fadeUp 0.5s 0.2s cubic-bezier(0.4,0,0.2,1) both;
}

.section-title {
    font-family: ui-serif, 'Georgia', 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-1);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* Accent bar beside title */
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 26px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ─── Releases grid ──────────────────────────────────────────────────────── */
.releases-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* ─── Release card ───────────────────────────────────────────────────────── */
.release-card {
    flex: 1 1 240px;
    max-width: 320px;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    animation: fadeUp 0.5s cubic-bezier(0.4,0,0.2,1) both;
}

.release-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: var(--border-light);
}

/* stagger card animations */
.release-card:nth-child(1) { animation-delay: 0.25s; }
.release-card:nth-child(2) { animation-delay: 0.32s; }
.release-card:nth-child(3) { animation-delay: 0.39s; }
.release-card:nth-child(4) { animation-delay: 0.46s; }
.release-card:nth-child(5) { animation-delay: 0.53s; }
.release-card:nth-child(6) { animation-delay: 0.60s; }

/* ─── Release artwork ────────────────────────────────────────────────────── */
.release-artwork {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: var(--bg-raised);
    overflow: hidden;
}

.release-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), filter 0.45s ease;
}

.release-card:hover .release-cover {
    transform: scale(1.06);
    filter: brightness(0.85);
}

/* Play icon overlay on hover */
.release-artwork::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.release-card:hover .release-artwork::after { opacity: 1; }

/* ─── Release info ───────────────────────────────────────────────────────── */
.release-info {
    padding: 16px 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.release-type-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

.release-name {
    font-family: ui-serif, 'Georgia', 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-1);
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.release-artists-list {
    font-size: 12px;
    color: var(--text-2);
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.release-date {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
}

/* ─── Release link button ────────────────────────────────────────────────── */
.release-link {
    margin: 0 16px 16px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 12px;
    padding: 9px 16px;
    border-radius: 40px;
    text-align: center;
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.release-link:hover {
    background: var(--accent);
    color: #0c0c0e;
    border-color: var(--accent);
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateY(-1px);
}

/* ─── No releases fallback ───────────────────────────────────────────────── */
.no-releases {
    text-align: center;
    padding: 72px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.no-releases-message {
    font-size: 15px;
    color: var(--text-3);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.smartlink-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
}

.copyright_text {
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: 0.3px;
}

/* ─── Shared entrance animation ──────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── GPU hint for animated elements ─────────────────────────────────────── */
.artist-hero,
.release-card,
.artist-avatar,
.release-cover {
    will-change: transform;
}

/* ─── Touch & cursor ─────────────────────────────────────────────────────── */
button, a, .btn {
    touch-action: manipulation;
    cursor: pointer;
}
