:root {
    --bg-color: #0d0f14;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --accent-color: #8b5cf6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --highlight: linear-gradient(135deg, #6366f1, #ec4899);
    --container-max: 1200px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    background: rgba(13, 15, 20, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--highlight);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.search-bar {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 5px 15px;
    align-items: center;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    outline: none;
    width: 200px;
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.1), transparent);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero .highlight {
    background: var(--highlight);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Hero Carousel */
.hero-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.hero-carousel::-webkit-scrollbar {
    display: none;
}

.festival-card-featured {
    min-width: 300px;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
}

.festival-card-featured:hover {
    transform: translateY(-10px);
}

.festival-card-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px 20px;
}

.rank-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--highlight);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Content Layout */
.section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

.filter-group {
    display: flex;
    gap: 12px;
}

.filter-chip {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    height: 800px;
}

.festival-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.festival-list {
    overflow-y: auto;
    padding-right: 10px;
}

.festival-list::-webkit-scrollbar {
    width: 6px;
}

.festival-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.festival-item {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.festival-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.item-img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.item-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Map View */
.map-container {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.placeholder-content {
    text-align: center;
    color: var(--text-secondary);
}

.placeholder-content i {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Footer */
footer {
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
    background: #090b0f;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info .logo.small {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

.footer-data {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .map-container {
        height: 400px;
        order: -1;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .search-bar {
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .filter-group {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 10px;
    }

    .filter-chip {
        white-space: nowrap;
    }
}