/* ============================================
   Dead Dog Legacy — Style Sheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Rockwell, 'Rockwell Nova', 'Roboto Slab', 'DejaVu Serif', 'Sitka Small', serif;
    color: #fff;
    background: #000;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    display: block;
}

h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* --- Background Flowers --- */
#bg-flower1,
#bg-flower2 {
    position: fixed;
    opacity: 0.08;
    z-index: -1000;
    pointer-events: none;
}

#bg-flower1 {
    top: -30rem;
    right: -10rem;
    width: 70rem;
}

#bg-flower2 {
    bottom: -30rem;
    left: -10rem;
    width: 40rem;
}

/* --- Top Menu --- */
#top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

#menu-logo {
    height: 36px;
    width: auto;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, opacity 0.3s ease;
}

.nav-links a:hover {
    border-bottom-color: #fff;
    opacity: 1;
}

/* Hamburger (mobile) */
#menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

#menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    max-width: none;
    padding: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('./ddl-hero.jpg') center left / cover no-repeat;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: right;
    width: 100%;
}

.hero-logo img {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin-left: auto;
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: flex-end;
}

.hero-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.hero-links a:hover {
    border-bottom-color: #fff;
    opacity: 1;
}

/* --- Sections Common --- */
section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Live Section --- */
.live-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.live-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.live-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

.live-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: top;
}

.live-table tr.past {
    opacity: 0.35;
}

.live-table tr.hidden {
    display: none;
}

.live-table td a {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid transparent;
}

.live-table td a:hover {
    border-bottom-color: #fff;
    opacity: 1;
}

#show-past-btn {
    display: block;
    margin: 0 auto;
}

/* --- Music Section --- */
.music-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.music-carousel::-webkit-scrollbar {
    height: 4px;
}

.music-carousel::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.music-carousel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.music-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.3s ease;
}

.music-card:hover {
    border-color: rgba(255,255,255,0.3);
}

.music-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: rgba(255,255,255,0.05);
}

.music-card h3 {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.music-card .music-meta {
    font-size: 0.85rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.music-card .listen-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    padding: 0.5rem 1.5rem;
    font-size: 1.2rem;
}

/* --- Music Links Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: #111;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 100%;
    position: relative;
    text-align: center;
}

.modal-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.modal-close-btn:hover {
    opacity: 1;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.modal-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-links a {
    display: block;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.modal-links a:hover {
    background: rgba(255,255,255,0.08);
    border-color: #fff;
    opacity: 1;
}

/* --- About Section --- */
.about-text {
    max-width: 750px;
    margin: 0 auto 2.5rem;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.85;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.about-gallery a {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.about-gallery a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.about-gallery a:hover img {
    transform: scale(1.05);
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    text-align: center;
}

.about-links-col h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    font-weight: 400;
    opacity: 0.6;
}

.about-links-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-links-col a {
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    align-self: center;
}

.about-links-col a:hover {
    border-bottom-color: #fff;
    opacity: 1;
}

/* --- Contact Section --- */
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.contact-content a {
    border-bottom: 1px solid transparent;
}

.contact-content a:hover {
    border-bottom-color: #fff;
    opacity: 1;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    opacity: 0.4;
    letter-spacing: 0.05em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    #top-menu {
        padding: 0.6rem 1.25rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        flex-direction: column;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.35s ease;
        border-left: 1px solid rgba(255,255,255,0.08);
    }

    .nav-links.open {
        right: 0;
    }

    #menu-toggle {
        display: flex;
    }

    #hero {
        justify-content: center;
    }

    .hero-bg {
        background-position: 30% center;
    }

    .hero-bg::after {
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.2) 100%);
    }

    .hero-content {
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .hero-links {
        justify-content: center;
    }

    .hero-logo img {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    section {
        padding: 3rem 1.25rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .music-card {
        flex: 0 0 260px;
    }

    .about-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .about-links {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-logo img {
        max-width: 220px;
    }

    .music-card {
        flex: 0 0 220px;
    }

    .about-gallery {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}
