html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #d1d1d1;
    line-height: 1.6;
}

.container {
    max-width: 850px;
    margin: 40px auto;
    background: #111111;
    border: 1px solid #222;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

header {
    text-align: center;
    border-bottom: 4px solid #8b0000;
}

.profile-img {
    width: 100%;
    display: block;
    height: auto;
}

.fade-bottom {
    width: 100%;
    display: block;

    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.header-content {
    padding: 30px;
}

h1 {
    font-size: 3rem;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.subtitle {
    color: #8b0000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Navigation */
.main-nav {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 32px;
    position: relative;
    margin: 12px auto 0;
}

.nav-toggle span {
    position: absolute;
    left: 4px;
    right: 4px;
    height: 3px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span:nth-child(1) {
    top: 6px;
}

.nav-toggle span:nth-child(2) {
    top: 14px;
}

.nav-toggle span:nth-child(3) {
    top: 22px;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

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

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-nav ul li a {
    color: #fff;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #8b0000;
    text-decoration: none;
}

/* Gear Section */
#gear ul {
    list-style: none;
    padding: 0;
}

#gear ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #bcbcbc;
}

#gear ul li strong {
    color: #fff;
    margin-right: 5px;
}

section {
    padding: 40px;
}

h2 {
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-top: 0;
}

p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #bcbcbc;
}

a {
    color: #ff4d4d;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Table Design */
.discography-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* Expand/Collapse column (hidden on desktop by default) */
th.expand-col,
td.expand-icon {
    width: 20px;
    text-align: center;
    color: #888;
}

th {
    text-align: left;
    background: #1a1a1a;
    padding: 12px;
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
}

td {
    padding: 12px;
    border-bottom: 1px solid #222;
}

/* Chevron */
.expand-icon svg {
    transition: transform 0.2s ease;
}

.expandable-row.expanded .expand-icon svg {
    transform: rotate(90deg);
}

/* Extra row with hidden content */
tr.extra-info {
    display: none;
    background: #0f0f0f;
}

tr.extra-info.show {
    display: table-row;
}

.extra-info .extra-content {
    padding: 10px 12px;
    color: #bcbcbc;
}

.year-col {
    color: #8b0000;
    font-weight: bold;
}

footer {
    background: #000;
    padding: 40px;
    text-align: center;
}

/* Footer navigation */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-nav a {
    color: #ccc;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-nav a:hover {
    color: #fff;
}

footer .endorsements-title {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #8b0000;
    margin-bottom: 15px;
}

.endorsement-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 25px;
}

.endorsement-logo {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Desktop defaults: hide expand column */
@media (min-width: 601px) {
    th.expand-col,
    td.expand-icon,
    tr.extra-info {
        display: none !important;
    }
}

.play-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.play-icon:hover {
    transform: scale(1.1);
}

.mobile-play-link {
    display: inline-block;
    margin-top: 10px;
    color: #00a1b1; /* Bandcamp aqua-ish color */
    font-size: 0.95rem;
}

.mobile-play-link .play-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.endorsement-logo:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.contact-info {
    font-size: 0.9rem;
    color: #555;
}

.last-update {
    font-size: 0.75rem;
    color: #444;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    section {
        padding: 20px;
    }

    .endorsement-box {
        flex-direction: column;
        gap: 20px;
    }

    .endorsement-logo {
        max-height: 50px;
    }

    /* Hamburger visible on mobile */
    .nav-toggle {
        display: block;
    }

    /* Collapse main nav by default on mobile */
    .main-nav {
        display: none;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
    }

    /* Hide columns on mobile */
    th.label-col,
    td.label-col,
    th.play-col,
    td.play-col {
        display: none;
    }

    /* Show expand column on mobile */
    th.expand-col,
    td.expand-icon {
        display: table-cell;
    }

    /* Make main rows tappable */
    tr.expandable-row {
        cursor: pointer;
    }

    /* Extra info appearance on mobile */
    tr.extra-info td {
        border-bottom: 1px solid #222;
    }

    /* Remove top margin on mobile */
    .container {
        margin: 0;
        border: none;
        box-shadow: none;
    }
}

/* Call to Action (CTA) Styles */
.cta {
    margin-top: 30px;
    padding: 25px;
    background: #1a1a1a;
    border-left: 4px solid #8b0000;
    text-align: center;
}

.cta p {
    margin-bottom: 20px;
    font-weight: 600;
    color: #fff;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #8b0000;
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #a00000;
    text-decoration: none !important;
    transform: translateY(-2px);
}

/* Press Section Quote */
.featured-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: #fff;
    border-left: 3px solid #8b0000;
    padding-left: 20px;
    margin-bottom: 30px;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #8b0000;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 0.8;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #ff4d4d;
    opacity: 1 !important;
    transform: translateY(-5px);
    color: #fff;
    text-decoration: none;
}

.back-to-top svg {
    fill: currentColor;
}
