* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --accent-primary: #e63946;
    --accent-secondary: #f1faee;
    --text-primary: #f8f9fa;
    --text-secondary: #a8a8a8;
    --border-color: #2a2a2a;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glow: 0 0 20px rgba(230, 57, 70, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a0a0a 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 300;
}

.search-section {
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

.search-wrapper {
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

#artistSearch {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#artistSearch:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--glow);
}

button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: #d62839;
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.graph-container {
    background: var(--bg-tertiary);
    border-radius: 12px;
    height: 500px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.graph-info {
    margin-top: 1rem;
    text-align: center;
}

.info-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.pulse-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.news-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.news-feed {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.news-feed::-webkit-scrollbar {
    width: 8px;
}

.news-feed::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.news-feed::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.news-feed::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.news-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.news-artist {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.news-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-primary);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.news-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Artist Node Styles */
.artist-node {
    position: absolute;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    z-index: 10;
}

.artist-node:hover {
    transform: scale(1.15);
    box-shadow: var(--glow);
    z-index: 20;
}

.artist-node.active {
    background: var(--accent-primary);
    color: var(--text-primary);
    transform: scale(1.2);
    box-shadow: var(--glow);
}

.connection-line {
    position: absolute;
    background: var(--border-color);
    transform-origin: left center;
    pointer-events: none;
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .logo {
        font-size: 2.5rem;
    }

    .search-wrapper {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    section {
        padding: 1.5rem;
    }

    .graph-container {
        height: 400px;
    }
}
