/* ===========================================
   BASE STYLES
   =========================================== */

body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background-color: rgb(0, 0, 0);
}

section {
    height: auto;
}

/* ===========================================
   NAVIGATION
   =========================================== */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 12px 0;
    background: rgb(0, 0, 0);
    z-index: 10;
}

.site-nav a {
    color: white;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav a:hover {
    text-decoration: underline;
}

/* ===========================================
   BINDER TAB NAVIGATION (home page only)
   =========================================== */

.binder-nav {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
}

.binder-tab {
    display: block;
    padding: 12px 20px 12px 16px;
    background: white;
    color: black;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px 0 0 4px;
    transform: translateX(50%);
    transition: transform 0.4s ease, background 0.2s ease;
    writing-mode: horizontal-tb;
    white-space: nowrap;
}

.binder-tab:hover {
    transform: translateX(0);
    background: hotpink;
    color: white;
}

/* Stagger the tabs like real binder dividers
.binder-tab:nth-child(1) { margin-right: 0; }
.binder-tab:nth-child(2) { margin-right: 8px; }
.binder-tab:nth-child(3) { margin-right: 16px; } */

/* ===========================================
   PAGE LAYOUT
   =========================================== */

.page {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-title {
    color: white;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

/* ===========================================
   HOME PAGE (index.html)
   =========================================== */

.home-body {
    overflow-y: auto;
    height: auto;
}

.home-main {
    display: block;
}

.home-hero {
    min-height: 100vh;
    background-size: contain;
    background-repeat: repeat;
    background-position: top center;
}

/* ===========================================
   BUY PAGE (money.html)
   =========================================== */

.buy-page {
    justify-content: flex-start;
    padding-top: 0;
}

.buy-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    margin-top: 48px;
}

.embed-wrap,
.pricing-box {
    width: 312px;
    height: 315px;
    box-sizing: border-box;
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

.embed-wrap {
    position: relative;
}

.pricing-box h1,
.pricing-box h3 {
    margin-top: 0;
    text-transform: uppercase;
}

.pricing-box p {
    margin: 16px 0;
}

.email-link {
    color: hotpink;
    text-decoration: none;
    font-weight: bold;
}

.email-link:hover {
    text-decoration: underline;
}

.playlist-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: transparent;
}

/* ===========================================
   DOWNLOADS PAGE
   =========================================== */

.downloads-page {
    justify-content: flex-start;
    padding-top: 50px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 90vw;
    max-width: 960px;
    align-items: start;
}

.gumroad-product-embed {
    width: 100% !important;
    height: 420px !important;
}

.gumroad-product-embed iframe {
    width: 100% !important;
    height: 80% !important;
}

/* ===========================================
   PORTFOLIO / ART PAGE
   =========================================== */

.portfolio-page {
    justify-content: flex-start;
    padding-top: 48px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 10px;
    margin-top: 0;
    justify-items: center;
    align-items: start;
}

.embed-wrap-soundcloud,
.portfolio-box {
    width: 300px;
    height: 300px;
    box-sizing: border-box;
}

.portfolio-box {
    background: rgb(0, 0, 0);
    color: white;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

.portfolio-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.portfolio-grid .embed-wrap-soundcloud,
.portfolio-grid .portfolio-box {
    width: 300px;
    height: 300px;
}

/* ===========================================
   RESPONSIVE - TABLET (max-width: 900px)
   =========================================== */

@media (max-width: 900px) {
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================================
   RESPONSIVE - MOBILE (max-width: 650px)
   =========================================== */

@media (max-width: 650px) {
    .site-nav {
        gap: 13px;
    }

    .site-nav a {
        font-size: 3.5vw;
    }

    /* Buy page */
    .buy-content {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 32px;
    }

    .embed-wrap,
    .pricing-box {
        width: 280px;
        max-width: 300px;
    }

    .pricing-box {
        height: 300px;
    }

    #playlist-iframe {
        width: 100% !important;
        height: 300px !important;
    }

    /* Downloads page */
    .downloads-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio page */
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .embed-wrap-soundcloud,
    .portfolio-box {
        width: 90vw;
        max-width: 300px;
        height: 300px;
    }

    /* Binder tabs on mobile */
    .binder-tab {
        font-size: 10px;
        padding: 10px 16px 10px 12px;
    }
}
