:root {
    --primary: #7c3aed; /* สีม่วงหลัก */
    --primary-glow: #8b5cf6;
    --secondary: #06b6d4; /* สีฟ้า */
    --accent: #fbbf24; /* สีทองสำหรับการ์ด Rare */
    --bg-dark: #000000;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-glow) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass:hover {
    background: var(--glass-hover);
    border-color: var(--primary-glow);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    z-index: 2;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    position: relative;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.spline-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.spline-viewer {
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 90%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4c1d95 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
}

.btn-secondary:hover {
    background: var(--glass-hover);
    transform: translateY(-3px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

/* Page Headers */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(124, 58, 237, 0.1), transparent);
    margin-bottom: 2rem;
}

.header-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.page-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1rem;
}

.header-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Tabs */
.filter-wrapper {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 16px;
}

.filter-tab {
    padding: 0.75rem 2rem;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.05em;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

/* Artists Grid */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.artist-card {
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.artist-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.artist-image-wrapper {
    width: 100%;
    height: 100%;
}

.artist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artist-card:hover .artist-image {
    transform: scale(1.1);
}

.artist-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 60%);
    z-index: 1;
}

.artist-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.artist-badge {
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.badge-top {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
}

.badge-trending {
    background: #ef4444;
    color: white;
    animation: pulse 2s infinite;
}

.artist-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
}

.artist-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.artist-role {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Artist Profile Page */
.artist-hero {
    position: relative;
    height: 60vh;
    width: 100%;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    margin-bottom: 4rem;
}

.artist-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 3rem;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    width: 100%;
}

.artist-hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 0.5rem;
}

.artist-hero-role {
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.artist-section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

/* Tracks List */
.tracks-list {
    display: grid;
    gap: 1rem;
}

.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-radius: 16px;
    transition: var(--transition);
}

.track-item:hover {
    background: var(--glass-hover);
    border-color: var(--primary);
}

.track-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.track-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.track-link {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}

.track-link:hover {
    background: white;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

/* Platforms */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.platform-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

.platform-card.youtube:hover { background: #ff0000; border-color: #ff0000; color: white; }
.platform-card.spotify:hover { background: #1db954; border-color: #1db954; color: white; }
.platform-card.apple-music:hover { background: #fc3c44; border-color: #fc3c44; color: white; }

/* Rare Cards (Secret Page) */
.rare-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.rare-card {
    position: relative;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--accent); /* ขอบทองสำหรับการ์ด Rare */
}

.rare-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.3); /* Glow สีทอง */
}

.rare-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rare-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 70%);
    z-index: 1;
}

.rare-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: var(--accent);
    color: black;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.rare-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
    z-index: 2;
}

.rare-card-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.rare-card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer / Back Nav */
.back-nav {
    margin-bottom: 4rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: var(--transition);
}

.back-link:hover {
    background: var(--glass-hover);
    transform: translateX(-5px);
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* ซ่อนเมนูในมือถือแบบง่ายๆ หรือจะทำ Burger Menu ก็ได้ */
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .artist-hero {
        height: 50vh;
    }
}
