/* ./static/css/smartlink.css */

/* ─── 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;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ambient background grain + subtle gradient */
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;
    width: 100%;
    display: flex;
    justify-content: center;
}

@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); }

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

/* ─── Hero Section (Release) ───────────────────────────────────────────────── */
.release-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 */
.release-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;
    justify-content: center;
    gap: 36px;
    padding: 40px;
}

/* ─── Artwork ─────────────────────────────────────────────────────────────── */
.hero-artwork {
    flex: 0 0 auto;
    width: min(240px, 40%);
    position: relative;
}

/* Glowing ring behind artwork */
.hero-artwork::after {
    content: '';
    position: absolute;
    inset: -6px;
    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: var(--radius-lg);
}

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

.album-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    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-artwork:hover .album-cover { transform: scale(1.04); }

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

.release-type {
    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 release type */
.release-type::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.release-title {
    font-family: ui-serif, 'Georgia', 'Times New Roman', serif;
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-1);
    margin-bottom: 12px;
    word-break: break-word;
}

.release-artists {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-2);
}

.artist-name {
    color: var(--text-2);
    transition: color var(--transition);
}

.artist-name:hover {
    color: var(--accent);
    cursor: pointer;
}

/* ─── Release Meta ────────────────────────────────────────────────── */
.release-meta {
    margin-bottom: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    row-gap: 8px;
}

.meta-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
}

.explicit-badge {
    background: rgba(255, 68, 68, 0.12);
    padding: 2px 8px;
    border-radius: 20px;
    color: #ff5555;
    font-weight: 600;
}

.pageviews-badge {
    background: rgba(255, 68, 68, 0.12);
    padding: 2px 8px;
    border-radius: 20px;
    color: #ff5555;
    font-weight: 600;
}

.release-note {
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--bg-raised);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ─── Release actions ─────────────────────────────────────────────────────── */
.release-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);
}

/* ─── Track Listing Section ───────────────────────────────────────────────────── */
.track-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: clamp(22px, 4vw, 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: clamp(22px, 4vw, 26px);
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ─── Track List ──────────────────────────────────────────────────────── */
.track-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.track-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.track-item:last-child {
    border-bottom: none;
}

.track-item:hover {
    background: var(--bg-hover);
}

.track-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-3);
    min-width: 40px;
    font-family: monospace;
}

.track-info {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
}

.track-artists {
    font-size: 12px;
    color: var(--text-2);
}

.track-artist {
    color: var(--text-2);
    text-decoration: none;
    transition: color var(--transition);
}

.track-artist:hover {
    color: var(--accent);
}

.track-play {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.track-play:hover {
    background: var(--accent);
    color: #0c0c0e;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* ─── Details Section (Grid) ───────────────────────────────────────────────────── */
.details-section {
    animation: fadeUp 0.5s 0.3s cubic-bezier(0.4,0,0.2,1) both;
}

.details-grid {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.detail-item {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
}

.detail-value {
    font-size: 14px;
    color: var(--text-2);
    word-break: break-word;
}

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

.streaming-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.streaming-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 40px;
    text-decoration: none;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

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

.platform-name {
    font-weight: 600;
}

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

.smartlink-footer .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 ─────────────────────────────────────── */
.release-hero,
.release-card,
.album-cover,
.track-item {
    will-change: transform;
}

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