/* 
  Miabella Artist Website - Design System 
  Palette: Black (#000000), White (#FFFFFF), Firebrick Red (#B22222)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #000000;
    --text-color: #FFFFFF;
    --accent-color: #B22222;
    /* Pure Firebrick */
    --hover-color: #7A0000;
    /* Deeper "Velvet" Red */
    --font-main: 'Inter', sans-serif;

    /* Typographic Scale (1.25 ratio) */
    --fs-base: 16px;
    --fs-md: 20px;
    --fs-lg: 25px;
    --fs-xl: 31px;
    --fs-xxl: 49px;
    --fs-hero: 76px;

    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Polish */
h1,
h2,
h3 {
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-weight: 800;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Global Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 5%;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    /* Slimmer header */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px;
    /* Adjusted to 30px */
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav ul li a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.7;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

nav ul li a:hover {
    opacity: 1;
}

nav ul li a:hover::after {
    width: 100%;
}

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

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
}

/* Background darkness adjustment & radial spotlight on text */
.hero-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-video iframe {
    width: 100vw;
    height: 56.25vw;
    /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 aspect ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.7;
    /* Lightened from 0.5 to show more detail */
}

.hero-content {
    width: 100%;
    z-index: 10;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Footer Section */
footer {
    padding: 4rem 0;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.hero-kicker .line {
    display: inline-block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(178, 34, 34, 0.2);
    /* Subtle glow for visibility */
}

.hero-title {
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-title .primary {
    display: block;
    font-size: clamp(32px, 6vw, 75px);
    /* Scaled down slightly to fit on one line */
    line-height: 1;
    font-style: italic;
    white-space: nowrap;
    /* Force "From Baroque To" to stay on one line */
}

.hero-title .accent {
    display: block;
    color: var(--accent-color);
    font-size: clamp(60px, 12vw, 130px);
    /* Make "ROCK" massive and impactful */
    line-height: 0.8;
    margin-top: 0.2rem;
    font-style: normal;
}

.hero-subtitle {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.hero-description {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: 3rem;
    max-width: 550px;
    line-height: 1.5;
}

/* Actions */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Buttons */
.cta-button {
    background: var(--accent-color);
    color: white;
    padding: 1.2rem 3rem;
    font-weight: 800;
    border-radius: 0;
    display: inline-block;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

/* Section Utilities */
.timeline-section {
    padding: 100px 0;
    background: #000;
    scroll-margin-top: 80px;
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-kicker .line {
    display: inline-block;
    width: 30px;
    height: 3px;
    background: var(--accent-color);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 4rem;
    text-transform: uppercase;
    font-style: italic;
}

/* Timeline Redesign (Horizontal Flexbox) */
.timeline-section {
    padding: 80px 0;
    background: #000;
    overflow: hidden;
}

.timeline-viewport {
    width: 100%;
    overflow-x: auto;
    padding: 180px 0 100px;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.timeline-viewport::-webkit-scrollbar {
    height: 6px;
}

.timeline-viewport::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.timeline-viewport::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
}

.timeline-track {
    position: relative;
    display: inline-flex;
    padding: 0 10vw;
    /* Padding start/end */
    min-width: 100%;
    height: 400px;
    align-items: center;
}

.main-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color) 2%, var(--accent-color) 98%, transparent);
}

.timeline-node {
    flex-shrink: 0;
    width: 320px;
    position: relative;
    margin-right: 50px;
    /* Space between nodes */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-node:last-child {
    margin-right: 15vw;
}

.node-dot {
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-color);
    z-index: 5;
    position: relative;
}

.node-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: absolute;
    width: 300px;
    transition: var(--transition-smooth);
}

/* Alternate Up/Down */
.timeline-node.up .node-content {
    bottom: 40px;
}

.timeline-node.down .node-content {
    top: 40px;
}

/* Connecting lines */
.timeline-node::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    background: rgba(178, 34, 34, 0.3);
    z-index: 1;
}

.timeline-node.up::before {
    bottom: 50%;
    height: 60px;
}

.timeline-node.down::before {
    top: 50%;
    height: 60px;
}

.node-year {
    display: block;
    color: var(--accent-color);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}

.node-title {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.node-content p {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.7;
    line-height: 1.4;
}

/* Media handling */
.node-cert,
.node-photo {
    width: 100%;
    margin-top: 15px;
    border-radius: 2px;
    filter: grayscale(100%) brightness(0.8);
    transition: var(--transition-smooth);
}

.node-content:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateY(calc(var(--y-dir, 0) * -5px));
}

.timeline-node.up .node-content:hover {
    --y-dir: 1;
}

.timeline-node.down .node-content:hover {
    --y-dir: -1;
}

.node-content:hover .node-cert,
.node-content:hover .node-photo,
.node-content:hover .node-media img {
    filter: grayscale(0%) brightness(1);
}

/* Video Placeholder */
.node-media {
    position: relative;
    margin-top: 15px;
    cursor: pointer;
}

.node-media img {
    width: 100%;
    border-radius: 2px;
    filter: grayscale(100%) brightness(0.6);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: #fff;
    opacity: 0.8;
    z-index: 2;
}

.media-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Finale Node (Mandela Hall) */
.timeline-node.finale .node-dot {
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    box-shadow: 0 0 25px var(--accent-color), 0 0 50px rgba(178, 34, 34, 0.3);
}

.timeline-node.finale .node-content {
    border: 2px solid var(--accent-color);
    background: rgba(178, 34, 34, 0.1);
}

.node-highlight {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 1 !important;
}

/* ========================================
   MUSIC PLAYER SECTION
   ======================================== */
.player-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
}

.music-player {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

/* Playlist Sidebar */
.playlist {
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.playlist-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.track-count {
    font-size: 12px;
    opacity: 0.5;
}

.track-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.track-item.active {
    background: rgba(178, 34, 34, 0.2);
    border-left: 3px solid var(--accent-color);
}

.track-number {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    width: 30px;
    flex-shrink: 0;
}

.track-item.active .track-number {
    color: var(--accent-color);
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-item .track-artist {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.track-item.active .track-artist {
    color: var(--accent-color);
}

.track-duration {
    font-size: 12px;
    opacity: 0.4;
    margin-left: 10px;
}

/* Main Player */
.player-main {
    display: flex;
    flex-direction: column;
}

.player-video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    background: #000;
}

.player-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
}

.placeholder-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 15px;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 14px;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Now Playing Bar */
.now-playing {
    padding: 25px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.now-playing-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 5px;
    display: block;
}

.now-playing-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 5px 0;
}

.now-playing-artist {
    font-size: 14px;
    opacity: 0.6;
    margin: 0;
}

/* ========================================
   GIGS SECTION
   ======================================== */
.gigs-section {
    background: #000;
}

/* Gig Hero Banner */
.gig-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gig-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gig-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.gig-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.gig-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.gig-hero-subtitle {
    font-size: 18px;
    opacity: 0.7;
    margin-top: 10px;
}

/* Gigs List */
.gigs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 80px 0;
}

/* Gig Card */
.gig-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

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

.gig-card.featured {
    border-color: rgba(178, 34, 34, 0.3);
}

.gig-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.gig-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

/* Image Overlay with Headline & Venue */
.gig-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
}

.gig-headline {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    border-radius: 2px;
}

.gig-venue {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gig-details {
    padding: 20px;
}

.gig-date-full {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gig-description {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.7;
    margin: 0 0 20px 0;
}

.gig-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gig-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-color);
}

.gig-book-btn {
    background: var(--accent-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.gig-book-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px rgba(178, 34, 34, 0.4);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 10000;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.video-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    opacity: 1;
    color: var(--accent-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-smooth);
        z-index: 1500;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-menu ul li a {
        font-size: 24px;
        font-weight: 800;
    }

    /* Animation for hamburger to X */
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-title .primary {
        font-size: 40px;
        white-space: normal;
    }

    .hero-title .accent {
        font-size: 80px;
    }

    /* Timeline Mobile */
    .timeline-viewport {
        padding: 100px 5% 50px;
    }

    .timeline-track {
        height: 600px;
        /* More vertical space for staggered items on mobile */
    }

    /* Music Player Mobile */
    .music-player {
        grid-template-columns: 1fr;
    }

    .playlist {
        order: 2;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        max-height: 300px;
    }

    .player-main {
        order: 1;
    }

    .now-playing {
        padding: 15px 20px;
    }

    .now-playing-title {
        font-size: 18px;
    }

    /* Gigs Mobile */
    .gig-hero {
        height: 40vh;
        min-height: 300px;
    }

    .gigs-list {
        grid-template-columns: 1fr;
        padding: 50px 0;
    }

    .gig-image {
        height: 180px;
    }

    .gig-venue {
        font-size: 18px;
    }
}