/* CSS Reset & Variables */
:root {
    /* Core Typography */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-script: 'Caveat', cursive;

    /* Global variables (defaults to Day Theme) */
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --text-active: #2B3A4A;
    --text-muted: #6C757D;

    --color-slate: #2B3A4A;
    --color-teal: #31828D;
    --color-cyan: #4A90E2;

    --color-gold: #F5B041;
    --color-coral: #F08080;
    --color-peach: #FFDAB9;

    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(255, 255, 255, 0.5);
    --shadow-glass: rgba(43, 58, 74, 0.1);

    --gradient-main: linear-gradient(135deg, var(--color-peach), var(--color-coral), var(--color-gold));

    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Night Theme */
.theme-night {
    --bg-primary: #1A202C;
    --bg-secondary: #2D3748;
    --text-active: #F8F9FA;
    --text-muted: #A0AEC0;

    --bg-glass: rgba(26, 32, 44, 0.6);
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-glass: rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-active);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
    position: relative;
}

/* Typography Utility */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 0.5em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.script-text {
    font-family: var(--font-script);
    text-transform: none;
    font-weight: 700;
    letter-spacing: normal;
}

p {
    margin-bottom: 1rem;
}

/* Base Styles & Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-badge {
    display: block;
    text-align: center;
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-coral);
    margin-bottom: -15px;
    position: relative;
    z-index: 2;
    transform: rotate(-5deg);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 15px rgba(240, 128, 128, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(49, 130, 141, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-teal);
    color: var(--text-active);
}

.btn-outline:hover {
    background: var(--color-teal);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(49, 130, 141, 0.3);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Glassmorphism */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px var(--shadow-glass);
    border-radius: 24px;
    padding: 40px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition-normal), padding var(--transition-normal);
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 15px 0;
    box-shadow: 0 4px 30px var(--shadow-glass);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--text-active);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-script {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--text-active);
    margin-bottom: -15px;
    z-index: 2;
    margin-right: 40px;
}

.theme-night .logo-script,
.theme-night .logo-sans {
    color: #fff;
}

.logo-sans {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--color-slate);
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 30px;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-active);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color var(--transition-normal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-main);
    transition: width var(--transition-normal);
}

.nav-links a:hover {
    color: var(--color-teal);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-active);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-normal);
}

.btn-icon:hover {
    background: var(--bg-secondary);
}

.icon-moon {
    display: none;
}

.theme-night .icon-sun {
    display: none;
}

.theme-night .icon-moon {
    display: block;
}

.icon-sun {
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-gradients {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--color-peach);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--color-coral);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: var(--color-cyan);
    opacity: 0.4;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.1);
    }

    100% {
        transform: translate(-30px, 60px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 40px;
    max-width: 800px;
    width: 90%;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    margin-bottom: 10px;
}

.hero-script {
    font-family: var(--font-script);
    font-size: 5rem;
    font-weight: 700;
    text-transform: none;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: -35px;
    z-index: 2;
    margin-right: 15vw;
}

.hero-sans {
    font-size: 4.5rem;
    color: var(--text-active);
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-teal);
    margin-bottom: 20px;
}

.hero-subtitle span {
    color: var(--color-coral);
}

.hero-date {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mic wire decor */
.mic-wire {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    z-index: 5;
    opacity: 0.3;
}

/* Section styling */
.lineup-section {
    background: var(--bg-primary);
    position: relative;
}

.grid {
    display: grid;
    gap: 30px;
}

.lineup-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.artist-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    transition: transform var(--transition-normal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

/* Generated placeholders for Artists */
.artist-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><rect width="400" height="400" fill="%232b3a4a"/><circle cx="200" cy="200" r="100" fill="%23f08080" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    transition: transform 1s ease;
}

.artist-card:hover .artist-image {
    transform: scale(1.05);
}

.artist-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(26, 32, 44, 0.7);
    /* Always dark base for text */
    backdrop-filter: blur(10px);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 20px 20px;
}

.artist-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #fff;
}

.artist-info p {
    color: var(--color-gold);
    font-size: 0.9rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.headliner {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .headliner {
        grid-column: span 2;
        height: 400px;
    }
}

/* Tickets section */
.tickets-section {
    position: relative;
    overflow: hidden;
}

.tickets-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(49, 130, 141, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.ticket-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ticket-options {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.ticket-tier {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    padding: 40px 30px;
    border-radius: 20px;
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-normal);
    position: relative;
}

.ticket-tier:hover {
    transform: translateY(-5px);
}

.ticket-tier.premium {
    border: 2px solid var(--color-coral);
    box-shadow: 0 10px 40px rgba(240, 128, 128, 0.2);
    transform: scale(1.05);
}

.ticket-tier.premium:hover {
    transform: scale(1.05) translateY(-5px);
}

.tier-badge {
    position: absolute;
    top: -15px;
    background: var(--gradient-main);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.tier-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.tier-price {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-slate);
    margin-bottom: 30px;
}

.theme-night .tier-price {
    color: #fff;
}

/* Info section */
.info-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.info-text {
    flex: 1;
    min-width: 300px;
}

.info-list {
    list-style: none;
    margin-top: 20px;
}

.info-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.info-list span {
    font-size: 1.5rem;
    margin-right: 15px;
}

.info-visual {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(49, 130, 141, 0.3);
}

.info-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1000 1000"><path d="M480,1000 L480,500 L500,400 L520,500 L520,1000 Z" fill="%232b3a4a" opacity="0.6"/></svg>') bottom center / contain no-repeat;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    align-items: flex-start;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    margin-bottom: 20px;
    color: var(--color-teal);
}

.link-group a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: color var(--transition-normal);
}

.link-group a:hover {
    color: var(--color-coral);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .section {
        padding: 40px 0;
    }

    .hero-script {
        font-size: 3.5rem;
        margin-right: 15vw;
        margin-bottom: -25px;
    }

    .hero-sans {
        font-size: 3rem;
    }

    .hero-text-desktop {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .ticket-tier.premium {
        transform: scale(1);
    }

    .ticket-tier.premium:hover {
        transform: translateY(-5px);
    }
}

/* Starfield integration */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background: transparent;
}

.theme-night #starfield {
    opacity: 1;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
}