/* ==========================================================================
   FREEMUSIERS // ARTIST DNA & CREATIVE SIGNATURE DASHBOARD
   Cyberpunk CRT / Retro Terminal aesthetic for private persona analytics
   ========================================================================== */

/* --- Tabs Switcher --- */
.artist-tabs-nav {
    display: flex;
    gap: 10px;
    margin: 20px 0 16px 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.25);
    padding-bottom: 8px;
}

.artist-tab-btn {
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.artist-tab-btn:hover {
    color: #00f0ff;
    border-color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.artist-tab-btn.is-active {
    background: rgba(0, 240, 255, 0.15);
    border-color: #00f0ff;
    color: #00f0ff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

.artist-dna-pill {
    font-size: 0.65rem;
    padding: 2px 6px;
    background: rgba(255, 51, 102, 0.2);
    border: 1px solid rgba(255, 51, 102, 0.6);
    color: #ff3366;
    border-radius: 3px;
    text-shadow: none;
    letter-spacing: 0.05em;
}

/* --- Section & Header --- */
.artist-dna-section {
    position: relative;
    margin-top: 14px;
    margin-bottom: 40px;
}

.artist-dna-container {
    max-width: 1200px;
    margin: 0 auto;
}

.artist-dna-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(10, 15, 20, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-left: 4px solid #00f0ff;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    margin-bottom: 20px;
}

.artist-dna-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.artist-dna-title {
    margin: 0;
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #00f0ff;
    letter-spacing: 0.06em;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.artist-dna-badge {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.72rem;
    color: #00ff41;
    letter-spacing: 0.08em;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}

.artist-dna-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* --- Stats Strip --- */
.artist-dna-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.dna-stat-card {
    background: rgba(12, 18, 24, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 6px;
    padding: 12px 16px;
    backdrop-filter: blur(8px);
    transition: transform 0.2s, border-color 0.2s;
}

.dna-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 65, 0.5);
    box-shadow: 0 4px 16px rgba(0, 255, 65, 0.12);
}

.dna-stat-label {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.dna-stat-value {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
}

.text-green { color: #00ff41 !important; text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
.text-cyan { color: #00f0ff !important; text-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
.text-amber { color: #ffb800 !important; text-shadow: 0 0 10px rgba(255, 184, 0, 0.5); }
.text-pink { color: #ff3366 !important; text-shadow: 0 0 10px rgba(255, 51, 102, 0.5); }

/* --- Main Grid Layout --- */
.artist-dna-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .artist-dna-grid {
        grid-template-columns: 1fr;
    }
}

.artist-dna-card {
    background: rgba(10, 16, 22, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.artist-dna-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.6), transparent);
}

.dna-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed rgba(0, 240, 255, 0.2);
    padding-bottom: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.dna-card-tag {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #00f0ff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.dna-card-sub {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Radar Chart --- */
.radar-card {
    display: flex;
    flex-direction: column;
}

.dna-radar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    min-height: 320px;
}

.dna-radar-wrapper svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.25));
}

.dna-radar-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 240, 255, 0.15);
}

.dna-radar-pill {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.25);
    border-radius: 4px;
    padding: 6px 10px;
    font-family: var(--font-mono, 'Space Mono', monospace);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
}

.dna-radar-pill .label {
    color: rgba(255, 255, 255, 0.75);
}

.dna-radar-pill .val {
    font-weight: 700;
    color: #00ff41;
}

/* --- Valence Gauge --- */
.dna-valence-wrapper {
    padding: 10px 0 16px 0;
}

.dna-valence-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.dna-valence-badge {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 2px 10px;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid #00f0ff;
    color: #00f0ff;
    border-radius: 4px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.dna-valence-bar-bg {
    position: relative;
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, #ff3366 0%, #2a1b3d 45%, #0e2a22 55%, #00ff41 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.dna-valence-bar-center {
    position: absolute;
    left: 50%;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: rgba(255, 255, 255, 0.6);
}

.dna-valence-pointer {
    position: absolute;
    top: -5px;
    width: 12px;
    height: 24px;
    background: #00f0ff;
    border: 2px solid #fff;
    border-radius: 3px;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #00f0ff;
    transition: left 0.4s ease;
}

.dna-valence-caption {
    margin-top: 8px;
    text-align: center;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* --- Genre List --- */
.dna-genres-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.dna-genre-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dna-genre-info {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.75rem;
}

.dna-genre-name {
    color: #fff;
    font-weight: 600;
}

.dna-genre-pct {
    color: #00f0ff;
}

.dna-genre-bar-track {
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.dna-genre-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f0ff, #00ff41);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* --- Theme Cloud --- */
.dna-themes-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0;
    min-height: 100px;
}

.dna-theme-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 20px;
    padding: 5px 12px;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.78rem;
    color: #00f0ff;
    transition: all 0.2s ease;
}

.dna-theme-badge:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: #00f0ff;
    transform: scale(1.04);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.dna-theme-count {
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid rgba(0, 255, 65, 0.4);
    color: #00ff41;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

/* --- Bio Card --- */
.dna-bio-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dna-bio-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dna-bio-status-badge {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 65, 0.4);
    background: rgba(0, 255, 65, 0.12);
    color: #00ff41;
}

.dna-bio-status-badge.missing {
    border-color: rgba(255, 184, 0, 0.5);
    background: rgba(255, 184, 0, 0.12);
    color: #ffb800;
}

.dna-bio-length {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.dna-bio-intro {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.dna-bio-result-wrap {
    margin-top: 8px;
    background: rgba(5, 8, 12, 0.9);
    border: 1px solid rgba(0, 255, 65, 0.4);
    border-radius: 6px;
    padding: 14px;
}

.dna-bio-draft-box {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #00ff41;
    white-space: pre-wrap;
    margin-bottom: 12px;
}

.dna-bio-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dna-copy-status {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.72rem;
    font-weight: 700;
    color: #00ff41;
    letter-spacing: 0.08em;
}

/* --- Track Analytics Table --- */
.dna-table-responsive {
    overflow-x: auto;
    margin-top: 10px;
}

.dna-tracks-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.75rem;
    text-align: left;
}

.dna-tracks-table th {
    background: rgba(0, 240, 255, 0.08);
    color: #00f0ff;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    letter-spacing: 0.05em;
    font-weight: 700;
}

.dna-tracks-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.dna-tracks-table tr:hover td {
    background: rgba(0, 240, 255, 0.04);
}

.dna-score-cell {
    font-weight: 700;
}

.dna-status-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
}

.dna-status-tag.analyzed {
    background: rgba(0, 255, 65, 0.15);
    border: 1px solid rgba(0, 255, 65, 0.4);
    color: #00ff41;
}

.dna-status-tag.pending {
    background: rgba(255, 184, 0, 0.15);
    border: 1px solid rgba(255, 184, 0, 0.4);
    color: #ffb800;
}
