:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --accent-color: #9b59b6;
    /* Deep purple */
    --secondary-accent: #58d68d;
    /* Green */
    --border-color: #333;
    --font-heading: 'UnifrakturMaguntia', cursive;
    --font-body: 'Inter', sans-serif;
    --card-bg: #1a1a1a;
}

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

body {
    background: linear-gradient(135deg,
            #0a0a0a 0%,
            #1a0a1a 25%,
            #0f0515 50%,
            #1a0a1a 75%,
            #0a0a0a 100%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.85);
    /* Dark overlay to make text readable */
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    animation: fadeIn 0.5s ease-in;
}

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

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

.page-transition-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

h2 {
    font-size: 2.5rem;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

p {
    margin-bottom: 1rem;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    flex-shrink: 0;
}

.main-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.tagline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 1rem;
    color: var(--secondary-accent);
    letter-spacing: 1px;
    text-align: center;
}

/* Navigation */
.main-nav {
    margin: 0;
    padding: 0;
    border: none;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    /* Slightly smaller font for compact header */
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.cart-icon-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-btn:hover {
    color: var(--accent-color);
}

.cart-icon-btn svg {
    width: 28px;
    height: 28px;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
}

/* Gothic Borders */
.gothic-border {
    border: 3px double var(--accent-color);
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    background: rgba(20, 20, 20, 0.6);
}

.gothic-border::before,
.gothic-border::after {
    content: "✦";
    position: absolute;
    color: var(--accent-color);
    font-size: 1.5rem;
    background: var(--bg-color);
    /* Mask the line behind the symbol */
    padding: 0 0.5rem;
}

.gothic-border::before {
    top: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
}

.gothic-border::after {
    bottom: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
}

/* Corner Decorations (Pseudo-elements for corners) */
.gothic-border {
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero-section {
    text-align: center;
}

@media (min-width: 900px) {
    .hero-content-wrapper {
        display: grid;
        grid-template-columns: 3fr 2fr;
        gap: 2rem;
        text-align: left;
        align-items: center;
    }

    .hero-section h2 {
        grid-column: 1 / -1;
        text-align: center;
    }
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.video-placeholder {
    color: #555;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.audio-player {
    margin-top: 1.5rem;
    width: 100%;
}

audio {
    width: 100%;
    filter: invert(90%) hue-rotate(180deg);
    /* Quick dark mode hack for default audio player */
}

/* Listen Links */
.platform-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.platform-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    border: none;
}

.platform-btn:hover {
    background-color: #8e44ad;
    color: #fff;
}

/* Team Section */
.team-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .team-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Team Tabs */
.team-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.team-tab {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.team-tab:hover,
.team-tab.active {
    background: rgba(155, 89, 182, 0.1);
    border-color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.team-tab h3 {
    margin: 0;
    text-align: left;
    font-size: 1.5rem;
    color: var(--text-color);
}

.team-tab .role {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-tab:hover h3,
.team-tab.active h3 {
    color: var(--accent-color);
}

/* Team Display */
.team-display {
    flex: 2;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 2rem;
    min-height: 300px;
    position: relative;
}

.team-card {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

.team-card.active {
    display: flex;
}

@media (min-width: 768px) {
    .team-card {
        flex-direction: row;
        text-align: left;
    }
}

.role-highlight {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

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

/* Footer */
.site-footer {
    background-color: #000;
    padding: 3rem 1rem;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.character-logo {
    width: 100px;
    height: auto;
    border-radius: 50%;
    border: 2px solid var(--secondary-accent);
}

.footer-links p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icons a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-accent);
}

.copyright {
    color: #555;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: center;
        gap: 3rem;
    }
}

/* Merch Grid */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.merch-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.merch-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.merch-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 1rem;
    background: #222;
}

.merch-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.merch-price {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table th {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
}

.schedule-table tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.schedule-date {
    color: #888;
    font-family: monospace;
}

/* Cart Styles */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.qty-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 25px;
    height: 25px;
    cursor: pointer;
    margin: 0 5px;
}

.qty-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.remove-btn {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-summary {
    text-align: right;
    margin-top: 2rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.checkout-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.checkout-btn:hover {
    box-shadow: 0 0 20px var(--accent-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-body);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.team-bio {
    flex: 1;
    min-width: 0;
}

.host-image-frame {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(74, 14, 78, 0.5);
    flex-shrink: 0;
}

.host-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: #1a1a1a;
    border-left: 3px double var(--accent-color);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    display: block;
    opacity: 1;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.cart-sidebar-header h3 {
    margin: 0;
    font-size: 1.8rem;
    text-align: left;
}

.close-cart-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-cart-btn:hover {
    color: var(--accent-color);
}

.cart-sidebar-items {
    flex: 1;
    overflow-y: auto;
}

.sidebar-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.sidebar-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.sidebar-item-details {
    flex: 1;
}

.sidebar-item-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.2rem;
}

.sidebar-item-price {
    color: #888;
    font-size: 0.9rem;
}

.cart-sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.cart-sidebar-total {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: right;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.view-cart-btn {
    display: block;
    text-align: center;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.view-cart-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.sidebar-checkout-btn {
    display: block;
    text-align: center;
    width: 100%;
}

/* Art Gallery Section */
.art-gallery-section {
    text-align: center;
}

.gallery-description {
    color: var(--secondary-accent);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.art-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.art-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.art-item:hover {
    transform: translateY(-10px);
}

.art-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: #000;
}

.art-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.art-item:hover .art-image {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.art-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(155, 89, 182, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.art-item:hover .art-overlay {
    opacity: 1;
}

.view-art {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments for art gallery */
@media (max-width: 768px) {
    .art-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .gallery-description {
        font-size: 1rem;
    }
}