/* MOBILE STYLES (default) */

/* main colors: purple #9747ff, dark purple #7a2ee6, darkest purple #5a1bb8,
   light purple #f3eaff, yellow accent #ffd84d, black #1a1a1a, white */

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #1a1a1a;
    background-color: #ffffff;
}

/* same margins on all the text so spacing is consistent */
h1, h2, h3, p {
    margin-top: 0;
    margin-bottom: 16px;
}

/* rubik font for headings so they match the logo */
h1, h2, h3 {
    font-family: "Rubik", sans-serif;
    font-weight: 700;
}

h1, h2 {
    font-size: 24px;
    line-height: 30px;
}

h3 {
    font-size: 18px;
}

.price {
    font-weight: 700;
    font-size: 18px;
}

/* buttons use the darker purple so the white text is easier to read */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    background-color: #7a2ee6;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    /* text-decoration: none; */
}

.btn:hover {
    background-color: #5a1bb8;
}

/* white version for the purple merch section, turns yellow on hover */
.btn-white {
    background-color: #ffffff;
    color: #5a1bb8;
}

.btn-white:hover {
    background-color: #ffd84d;
}

.small-label {
    color: #7a2ee6;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}


/*  header */

/* sticky so the header stays */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #9747ff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.menu-icon {
    width: 28px;
}

.logo {
    font-family: "Rubik", sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #ffffff;
    text-decoration: none;
}

/* nav links hidden on mobile, shows menu instead */
nav {
    display: none;
}

.header-icons {
    display: flex;
}

.header-icons img {
    width: 26px;
    margin-left: 16px;
}


/*  section 1- featured  */

.featured {
    display: flex;
    flex-direction: column;
    margin: 24px 16px;
    padding: 24px;
}

.featured-img {
    width: 100%;
    margin-bottom: 24px;
}


/* section 2 merch carousel  */

.merch {
    padding: 48px 16px;
    background-color: #9747ff;
    color: #ffffff;
    text-align: center;
}

.carousel {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.arrow {
    width: 24px;
    margin: 0 8px;
}

/* overflow auto lets you scroll sideways through the cards */
.carousel-track {
    display: flex;
    overflow: auto;
    padding-bottom: 8px;
}
/* flex 0 0 220 mean no shirking or growing but is 220px */
.product-card {
    flex: 0 0 220px;
    margin-right: 16px;
    padding: 16px;
    background-color: #ffffff;
    color: #1a1a1a;
    border-radius: 16px;
}

.product-card img {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
}


/*  section 3 upcoming shows */

.shows {
    padding: 48px 16px;
}

.shows-heading {
    margin-bottom: 24px;
}

/* show format: date block, info, then button */
/* flex-wrap lets the button drop to its own line on mobile */
.show {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #dddddd;
}

/* purple date block */
.show-date {
    flex: 0 0 64px;
    margin-right: 16px;
    padding: 8px 0;
    background-color: #9747ff;
    color: #ffffff;
    text-align: center;
    border-radius: 12px;
}

.show-date p {
    margin: 0;
    line-height: 18px;
}

.show-day,
.show-month {
    font-size: 12px;
    letter-spacing: 1px;
}

.show-num {
    font-family: "Rubik", sans-serif;
    font-weight: 700;
    font-size: 24px;
    padding: 4px 0;
}

.show-info {
    flex: 1 1 200px;
}

.show-info h3,
.show-info p {
    margin-bottom: 4px;
}

.show-details {
    color: #666666;
    font-size: 14px;
}

/* on mobile the button sits under the info, lined up with the text */
.show-action {
    flex: 0 0 100%;
    padding-left: 80px;
    padding-top: 12px;
}

.show-action p {
    margin: 0;
}

.sold-out {
    display: inline-block;
    padding: 12px 28px;
    background-color: #dddddd;
    color: #666666;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 999px;
}

.shows-footer {
    padding-top: 32px;
    text-align: center;
}


/*  section 3- about */

.about {
    display: flex;
    flex-direction: column;
    padding: 48px 16px;
}

.about-img {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 16px;
}


/* footer  */

footer {
    padding: 24px 16px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
}

footer p {
    margin: 0;
}


/* Desktop styles, everything in here only active when screen is 768px or wider */

@media (min-width: 768px) {

    h1, h2 {
        font-size: 32px;
        line-height: 40px;
    }

    header {
        padding: 16px 48px;
    }

    /* swap the menu icon out for the 3 link nav */
    .menu-icon {
        display: none;
    }

    nav {
        display: flex;
    }

    /* bigger and bolder so the nav reads better */
    nav a {
        color: #ffffff;
        margin: 0 24px;
        font-size: 18px;
        font-weight: 700;
        /* text-decoration: none; */
    }

    nav a:hover {
        color: #ffd84d;
    }

    /* image and text side by side, centered so there's no dead space */
    .featured {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin: 48px;
        padding: 48px;
    }

    /* set size so the record doesn't blow up on big screens */
    .featured-img {
        width: 360px;
        margin-bottom: 0;
        margin-right: 48px;
    }

    /* keeps the description from turning into one super long line */
    .featured-text {
        width: 45%;
    }

    .merch {
        padding: 48px;
    }

    /* centers the cards and arrows in the section */
    .carousel {
        justify-content: center;
    }

    /* cards stay a set size instead of stretching with the screen */
    .product-card {
        flex: 0 0 240px;
    }

    /* shows: keep the list from getting too wide on big screens */
    .shows {
        padding: 48px 15%;
    }

    /* button moves back up next to the info on desktop */
    .show-action {
        flex: 0 0 auto;
        padding-left: 0;
        padding-top: 0;
    }

    /* row-reverse puts the image on the right */
    .about {
        flex-direction: row-reverse;
        align-items: center;
        padding: 48px;
    }

    .about-img {
        width: 45%;
        margin-bottom: 0;
        margin-left: 48px;
    }

    .about-text {
        flex: 1;
    }
}
