/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Megrim:wght@400&family=League+Gothic:wght@400;700&family=Quattrocento:wght@400;700&display=swap");

/* global variables*/
:root {
    /* Brand Colors */
    --brand-dark: #1e1e1e;
    --brand-blue: #5ac0ea;
    --brand-orange: #ef7d3b;
    --brand-green: #d7e465;
    --brand-gray: #7d7570;
    --brand-cream: #ead697;
    /* fonts */
    --body-font-size: 1.25rem;
    /* 20px */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    /* Base font size for rem calculations */
}

body {
    font-family: "Quattrocento", serif;
    font-size: var(--body-font-size);
    background: url("../images/starry_bg_large.png") no-repeat center center fixed;
    background-size: cover;
    color: var(--brand-green);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Orange overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brand-orange);
    opacity: 0.09;
    z-index: -1;
    pointer-events: none;
}

/* Main Content */
main {}

/* Footer */
footer {
    padding: 60px 0 40px;
    margin-top: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    box-sizing: border-box;
}

footer p {
    margin-bottom: 0;
    font-family: "Quattrocento", serif;
    justify-self: start;
}

/* Page Container */
.page-container {
    padding: 0 2.5rem;
    /* 40px horizontal padding for all content */
}

/* Typography */

h1 {
    font-family: "Megrim", sans-serif;
    font-size: 3.75rem;
    /* 60px */
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 0;
    margin-top: 0rem;
    line-height: 1;
    /* Tighten line height to reduce spacing */
    color: var(--brand-green);
}

h2 {
    font-family: "League Gothic", sans-serif;
    font-size: 3.75rem;
    /* 60px - fixed size, no responsive scaling */
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1;
    /* Tighten line height to reduce spacing */
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

p {
    font-family: "Quattrocento", serif;
    font-size: var(--body-font-size);
    margin-top: 0;
    /* Remove browser default top margin to tighten spacing with h1 */
    margin-bottom: 1rem;
    opacity: 0.8;
    max-width: 37.5rem;
    /* 600px */
    margin-left: 0;
    margin-right: 0;
}

/* Header Styles */
header {
    padding: 20px 0;
}

.desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    color: var(--brand-blue);
    text-decoration: none;
    font-family: "League Gothic", sans-serif;
    font-size: 3.75rem;
    /* 60px */
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--brand-green);
}

nav ul li a.active {
    color: var(--brand-green);
}

nav ul li a.active::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--brand-green);
}

/* Hero Section */
.hero {
    text-align: left;
    position: relative;
}

.hero .logo {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;
    margin: 0;
    padding: 125px 0 150px 0;
}

section {
    text-align: left;
    margin: 0;
    box-sizing: border-box;
}

form {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0;
}

/* Form Elements */
input,
select,
textarea {
    font-family: "Quattrocento", serif;
    font-size: var(--body-font-size);
    padding: 0rem 1.25rem;
    /* 15px 20px */
    border: none;
    border-radius: 0.625rem;
    /* 10px */
    background: rgba(255, 255, 255, 0.05);
    color: var(--brand-green);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 3rem;
    /* 48px minimum height to prevent squishing */
}

input::placeholder,
textarea::placeholder {
    color: rgba(215, 228, 101, 0.6);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 20px rgba(215, 228, 101, 0.3);
}

input[type="email"] {
    flex: 1;
    min-width: 18.625rem;
    /* 250px */
}

/* Global Button Styles */
button,
.button {
    font-family: "Quattrocento", serif;
    font-size: var(--body-font-size);
    padding: 0.9375rem 1.875rem;
    /* 15px 30px */
    border: none;
    border-radius: 0.625rem;
    /* 10px */
    background: var(--brand-green);
    color: var(--brand-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.button:hover {
    box-shadow: 0 0px 25px rgba(215, 228, 101, 0.4);
}

/* Highlight Block */
.highlight-block {
    margin: 100px 0;
    background: color-mix(in srgb, var(--brand-orange) 73%, transparent);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.album-art {
    width: 260px;
    height: 260px;
    background: var(--brand-green);
    flex-shrink: 0;
}

.single-info {
    flex: 1;
}

.single-info p {
    color: var(--brand-dark);
    font-family: "Quattrocento", serif;
    font-size: 1rem;
    /* 16px */
    font-weight: 400;
    margin-bottom: 0.625rem;
    /* 10px */
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-info h3 {
    color: var(--brand-dark);
    font-family: "Megrim", sans-serif;
    font-size: clamp(2rem, 8vw, 3.75rem);
    /* 60px max */
    font-weight: 400;
    margin-bottom: 1.875rem;
    /* 30px */
    text-transform: uppercase;
}

.listen-now {
    margin-bottom: 0.9rem;
}

/* Global Social Links Styles */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    align-items: center;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px;
}

.social-links a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Footer-specific social links positioning */
footer .social-links {
    justify-content: center;
    justify-self: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        gap: 20px;
    }

    nav ul li a {
        font-size: 2rem;
        /* Smaller on mobile */
    }

    .hero {
        padding: 80px 0 100px;
    }

    .signup form {
        flex-direction: column;
        align-items: center;
    }

    .signup input[type="email"] {
        width: 100%;
        max-width: 21.875rem;
        /* 350px */
        margin-bottom: 0.625rem;
        /* 10px */
    }

    .highlight-block {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 40px 30px;
        gap: 30px;
    }

    .streaming-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 80px;
    }

    section {
        padding: 60px 0;
    }

    .highlight-block {
        margin: 60px 0;
        padding: 30px;
        text-align: left;
    }

    footer {
        padding: 40px 20px 30px;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    position: absolute;
    transform: translateY(-10px);
    right: 0;
    z-index: 9999;
    padding: 20px;
    margin: 20px;
    display: none;
    box-shadow: none;
    background: none;
}

.mobile-menu-toggle:hover {
    box-shadow: none;
}

.mobile-menu-toggle img {
    width: 30px;
    height: 24px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 40px);
    height: 100%;
    background: var(--brand-orange);
    z-index: 9999;
    padding: 2.5rem;
    /* Match page container padding */
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
}

.mobile-nav ul li {
    margin-bottom: 0rem;
}

.mobile-nav ul li a {
    font-family: "League Gothic", sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--brand-dark);
    display: inline-block;
    position: relative;
    line-height: 1.1;
}

.mobile-nav ul li a.active {
    color: white;
}

.mobile-nav ul li a.active::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 5px;
    background: white;
}

.mobile-nav ul li a:hover {
    color: white;
}

.mobile-social-links {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: calc(100% - 5rem);
}

.mobile-social-links a {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.mobile-social-links a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
    /* Make icons black */
}

/* Show mobile menu on smaller screens */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 0;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    /* Footer wrapping on mobile */
    footer {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    footer p {
        justify-self: center;
    }

    footer .social-links {
        justify-self: center;
    }
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    margin-bottom: 3rem;
    /* Semi-transparent orange background */
    background: color-mix(in srgb, var(--brand-orange) 53%, transparent);
    overflow: hidden;
}

thead {
    background: transparent;
}

thead tr {
    /* Inset border using gradient */
    background: linear-gradient(to right, transparent 2rem, rgba(255, 255, 255, 0.5) 2rem, rgba(255, 255, 255, 0.5) calc(100% - 2rem), transparent calc(100% - 2rem)) bottom / 100% 1px no-repeat;
}

th {
    text-align: left;
    padding: .5rem 0.5rem;
    font-family: "League Gothic", sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--brand-cream);
    letter-spacing: 1px;
}

td {
    padding: 1.5rem 0.5rem;
    vertical-align: middle;
    font-family: "Quattrocento", serif;
    font-size: 1.1rem;
    color: var(--brand-cream);
}

/* Add inset border to rows instead of cells */
tbody tr {
    background: linear-gradient(to right, transparent 2rem, rgba(255, 255, 255, 0.5) 2rem, rgba(255, 255, 255, 0.5) calc(100% - 2rem), transparent calc(100% - 2rem)) bottom / 100% 1px no-repeat;
}

tbody tr:last-child {
    background: none;
}

/* Specific Column Styling */
th:first-child,
td:first-child {
    padding-left: 2rem;
}

th:last-child,
td:last-child {
    padding-right: 2rem;
}

td:first-child {
    color: var(--brand-cream);
    line-height: 1.4;
}

/* Action cell styling (applied via JS) */
.action-cell {
    white-space: nowrap;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Button adjustments for table */
.button.small {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    /* margin-right: 0.5rem; Removed in favor of gap in .action-cell */
    background: var(--brand-green);
    color: var(--brand-dark);
    min-width: 100px;
    text-align: center;
}

.button.small:last-child {
    /* margin-right: 0; Removed in favor of gap in .action-cell */
}

/* Responsive Table */
@media (max-width: 768px) {

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tbody tr {
        margin-bottom: 2rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        padding: 1rem;
    }

    td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        padding-right: 1rem;
    }

    /* Reset specific column styling for mobile */
    td:first-child {
        padding-left: 50%;
    }

    td:last-child {
        padding-right: 1rem;
    }

    /* Ensure action cells align right on mobile to avoid label overlap */
    .action-cell {
        justify-content: flex-end;
    }

    /* Reduce button padding on mobile to prevent clipping */
    .button.small {
        padding: 0.5rem 0.75rem;
        min-width: auto;
    }

    td:before {
        position: absolute;
        top: 0.5rem;
        left: 1rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        content: attr(data-label);
        color: var(--brand-cream);
        font-family: "League Gothic", sans-serif;
        font-size: 1.5rem;
        text-transform: uppercase;
    }
}