/* Root Variables - Premium Dark Theme */
:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-accent: #6C5DD3; /* Purple */
    --secondary-accent: #00D2FF; /* Cyan */
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --nav-height: 60px;
    --bottom-nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove tap styling on mobile */
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom); /* iPhone X+ Safe Area */
}

/* Utilities */
.glass {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.ripple {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.ripple:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #fff, var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-nav {
    display: none;
}

.header-actions .icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh; /* Almost full screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-accent) 0%, transparent 60%);
    opacity: 0.3;
    filter: blur(80px);
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(108, 93, 211, 0.2);
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.cta-button {
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(108, 93, 211, 0.3);
    cursor: pointer;
}

/* Content Sections */
.content-section {
    padding: 24px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 16px;
}

.section-header h2 {
    font-size: 1.5rem;
}

.view-all {
    color: var(--secondary-accent);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Horizontal Scroll List */
.artist-scroll-container {
    display: flex;
    overflow-x: auto;
    padding: 0 24px 24px; /* Bottom padding for shadow */
    gap: 16px;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.artist-scroll-container::-webkit-scrollbar {
    display: none;
}

.artist-card {
    min-width: 160px;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.artist-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.artist-card:active .artist-img {
    transform: scale(1.1);
}

.artist-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to top, black, transparent);
}

.artist-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

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

/* Event List */
.event-card {
    margin: 0 24px 16px;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 12px;
    min-width: 60px;
}

.event-date .month {
    font-size: 0.7rem;
    color: var(--secondary-accent);
    font-weight: 700;
}

.event-date .day {
    font-size: 1.2rem;
    font-weight: 700;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.event-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.join-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--primary-accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(5, 5, 5, 0.9);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    gap: 6px;
    font-size: 0.75rem;
    transition: color 0.3s;
    width: 60px; /* larger touch target */
}

.nav-item i {
    font-size: 1.4rem;
}

.nav-item.active {
    color: var(--primary-accent);
}

.nav-item.active i {
   filter: drop-shadow(0 0 8px var(--primary-accent));
}

/* Desktop Media Query */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
    
    .desktop-nav {
        display: flex;
        gap: 32px;
    }

    .desktop-nav a {
        text-decoration: none;
        color: var(--text-secondary);
        font-weight: 500;
        transition: color 0.2s;
    }

    .desktop-nav a:hover, .desktop-nav a.active {
        color: var(--text-primary);
    }
    
    .hero-section {
        align-items: center;
        text-align: center;
    }
    
    .hero-bg {
        width: 800px;
        height: 800px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Grid for desktop artists */
    .artist-scroll-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        overflow: visible;
    }
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0.4; transform: scale(1.1); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

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