:root {
    --body-bg: #DBEEFA;
    --card-bg: #FAFAFA;
    --display-bg: #DFE3CE;
    --display-text: #363632;
    --btn-text: #F6F6F6;
    --footer-bg: #181818;
    --card-br: 16px;
    --gap: 18px;

}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

ul {
    list-style: none;
}



/* MOBILE LAYOUT */

p {
    font-size: 14px;
    padding-block: 5px;

    &.-large {
        font-size: 16px;
        padding-block: 5px;
    }
}

button {
    color: var(--btn-text);
    filter: drop-shadow(0px 20px 8px hsla(0, 0%, 0%, 0.16));
    cursor: pointer;
    background-color: none;
    border: none;

    &.-primary {
        font-size: 16px;
        border-radius: 100vmax;

        div {
            border: none;
            border-radius: 100vmax;
            padding: 1px;
        }

        >div {
            background: linear-gradient(180deg, #383838, #C2C2C2);

            >div {
                background: linear-gradient(180deg,
                        #FBFBFB 0%,
                        #999999 33%,
                        #6A6A6A 48%,
                        #8B8B8B 63%,
                        #EDEDED 100%);

                >div {
                    background-color: #B7B4B4;

                    >div {
                        padding: 10px 20px;
                        background: linear-gradient(180deg, #969696, #616161);

                        &:hover {
                            background: linear-gradient(180deg, hsl(0, 0%, 39%), hsl(0, 0%, 18%));
                        }
                    }
                }
            }
        }
    }

    &.-mnav-btn {
        font-size: 24px;
        width: 80vw;
        color: var(--btn-text);

        div {
            width: 100%;
            border: none;
            padding: 1px;
        }

        >div {
            background: linear-gradient(180deg, #383838, #C2C2C2);

            >div {
                background: linear-gradient(180deg,
                        #FBFBFB 0%,
                        #999999 33%,
                        #6A6A6A 48%,
                        #8B8B8B 63%,
                        #EDEDED 100%);

                >div {
                    background-color: #B7B4B4;

                    >div {
                        width: 100%;
                        padding: 10px;
                        background: linear-gradient(180deg, #969696, #616161);

                        &:hover {
                            background: linear-gradient(180deg, hsl(0, 0%, 39%), hsl(0, 0%, 18%));
                        }
                    }
                }
            }
        }

    }

    &.-social {
        color: var(--btn-text);
        width: 36px;
        height: 36px;

        div {
            aspect-ratio: 1;
            border: none;
            padding: 1px;
        }

        >div {
            background: linear-gradient(180deg, #383838, #C2C2C2);

            >div {
                background: linear-gradient(180deg,
                        #FBFBFB 0%,
                        #999999 33%,
                        #6A6A6A 48%,
                        #8B8B8B 63%,
                        #EDEDED 100%);

                >div {
                    background-color: #B7B4B4;

                    >div {
                        aspect-ratio: 1;
                        background: linear-gradient(180deg, #969696, #616161);

                        &:hover {
                            background: linear-gradient(180deg, hsl(0, 0%, 39%), hsl(0, 0%, 18%));
                        }
                    }
                }
            }
        }

    }

    &.-round {
        color: var(--btn-text);
        height: 80px;
        aspect-ratio: 1/1;
        border-radius: 50%;

        div {
            border: none;
            border-radius: 50%;
            padding: 1px;
        }

        >div {
            background: linear-gradient(180deg, #383838, #C2C2C2);

            >div {
                background: linear-gradient(180deg,
                        #FBFBFB 0%,
                        #999999 33%,
                        #6A6A6A 48%,
                        #8B8B8B 63%,
                        #EDEDED 100%);

                >div {
                    background-color: #B7B4B4;

                    >div {
                        padding: 10px;
                        background: linear-gradient(180deg, #969696, #616161);

                        &:hover {
                            background: linear-gradient(180deg, hsl(0, 0%, 39%), hsl(0, 0%, 18%));
                        }
                    }
                }
            }
        }

    }
}


p:last-child,
h1:last-child,
h2:last-child h3:last-child,
h4:last-child {
    padding-bottom: 0;
}

button:last-child {
    margin-bottom: 0;
}


body {
    background-color: var(--body-bg);
    max-width: 1800px;
    margin: 0 auto;
    font-family: Helvetica, Arial, sans-serif;
}

.menu__display h2,
.header__display h2 {
    font-family: 'Bitcount Single', Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--display-text);
}

header {
    background-image: url(../assets/images/hero.jpg);
    background-size: cover;
    background-position: right;
}

.header-container {
    width: 100%;
    height: 100%;
    backdrop-filter: brightness(50%);
    padding: 20px 20px 56px 20px;
}

.article-image {
    height: 500px;
    padding: 20px;
}

.nav {
    height: 100px;
    width: 100%;
    background-image: url(../assets/images/metal-bg.jpg);
    background-size: 150%;
    background-position: center;
    background-color: #a8a9a4;
    padding: 10px 10px 10px 5px;
    border-radius: var(--card-br);
    margin-bottom: 36px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    .nav__logo {
        background-color: var(--display-bg);
        border-radius: calc(var(--card-br) - 5px);
        height: 100%;
        width: clamp(100px, 50%, 200px);
        padding: 5px;

        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    }
}

#desktop-nav {
    display: none;

    ul {
        display: flex;
        gap: var(--gap);
        flex-wrap: wrap;
    }

}

.hero-content {
    padding: 20px;
    color: white;

    h1 {
        margin-bottom: 20px;
    }

    button {
        margin-block: 16px;
    }
}


main {
    padding: 42px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;

}

#mobile-nav {
    background-image: url(../assets/images/metal-bg-dark.jpg);
    background-position: center;
    background-size: cover;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: calc(var(--gap)*2);
    overflow-y: hidden;
    background-color: #5c5c5c;


    .menu__header {
        width: 80vw;
        background-image: url(../assets/images/metal-bg.jpg);
        background-size: 500%;
        background-position: center;
        padding: 10px;
        background-color: #a8a9a4;

    }

    .menu__display {
        text-align: center;
        border-radius: 8px;
        background-color: var(--display-bg);
        padding: 10px;
        color: var(--display-text);


        h2 {
            font-size: 28px;
        }
    }

}

.mobile-nav-btns ul {
    gap: var(--gap);
    display: flex;
    justify-content: center;
    flex-direction: column;
}

section {
    padding-bottom: 24px;
    background-color: var(--card-bg);
    border-radius: var(--card-br);
    overflow: hidden;


    .section__header {
        width: 100%;
        background-image: url(../assets/images/metal-bg.jpg);
        background-size: 150%;
        background-position: center;
        padding: 10px;
        background-color: #a8a9a4;
    }

    .header__display {
        text-align: center;
        border-radius: 8px;
        background-color: var(--display-bg);
        padding: 10px;
    }

    .section__content {
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

}

.category-section {
    --category-count: 6;
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    gap: var(--gap);

    .category {
        text-align: center;
        width: clamp(75px, calc((100% / var(--category-count)) - var(--gap)), 150px);

        img {
            aspect-ratio: 1/1;
            width: 100%;
            object-fit: cover;
        }
    }
}

.article-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);

    article {
        max-width: 500px;
        margin: 0 auto;
        display: none;
        gap: 8px;

        img {
            width: 25%;
            aspect-ratio: 1 / 2;
            object-fit: cover;
            max-width: 100px;
        }

        p {
            max-width: 50ch;
        }

    }

    article:nth-of-type(1),
    article:nth-of-type(2),
    article:nth-of-type(3) {
        display: flex;
    }

}



.release-section {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    gap: var(--gap);

    article {
        display: flex;
        justify-content: center;
        gap: 8px;

        img {
            aspect-ratio: 1;
            object-fit: cover;
            width: 150px;
        }

        .text-content {
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 20px;

            p {
                padding-block: 0px;
            }
        }
    }

}

.article-container {
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 100ch;

    h1 {
        padding-block: 0.5rem;
    }

    .article__author {
        font-family: 'Bitcount Single', Helvetica, Arial, sans-serif;
        font-size: 16px;
        font-weight: 400;
    }

    .article__description {
        font-size: 16px;
        font-style: italic;
    }

    .article-content {
        h2 {
            font-size: 22px;
            padding-block: 1rem;
        }

        h3 {
            font-size: 18px;
            padding-top: 0.5rem;
        }
    }
}

.share-buttons {
    display: flex;
    gap: calc(var(--gap) / 2);
    flex-direction: column;
    padding-bottom: var(--gap);

          span:nth-of-type(2) {
            display: flex;
            gap: calc(var(--gap) / 2);;
        }
}

footer {
    width: 100%;
    background-color: var(--footer-bg);
    padding: 40px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: white;

    .col:nth-of-type(1) {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .col:nth-of-type(2) {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: var(--gap);

        li {
            font-size: 16px;
        }
    }

    .form__header {
        font-size: 18px;
    }


    form {
        width: 250px;

        label {
            display: block;
        }

        input[type="email"] {
            padding: 5px;
            background-color: var(--display-bg);
            color: var(--display-text);
            font-size: 16px;
            border-radius: 4px;
            border: none;
        }

        div {
            border: none;
            border-radius: 24px;
            padding: 1px;
        }

        >div {
            background: linear-gradient(180deg, #383838, #C2C2C2);

            >div {
                background: linear-gradient(180deg,
                        #FBFBFB 0%,
                        #999999 33%,
                        #6A6A6A 48%,
                        #8B8B8B 63%,
                        #EDEDED 100%);

                >div {
                    background-color: #B7B4B4;

                    >div {
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        gap: calc(var(--gap) / 2);
                        padding: 20px;
                        background: linear-gradient(180deg, #969696, #616161);
                    }
                }
            }
        }

        button {
            width: fit-content;
        }

    }
}

@media screen and (min-width: 768px) {
    .article-section {
        display: grid;
        grid-template-columns: repeat(3, 1fr);

        article {
            display: flex;

            img {
                height: 200px;
                width: 200px;
                aspect-ratio: 1;
            }
        }
    }

    .release-section {
        grid-template-columns: repeat(3, 1fr);
    }

    .share-buttons { 
        flex-direction: row;
        gap: calc(var(--gap) * 2);
        align-items: center;
    }

    #mobile-nav-toggle {
        display: none;
    }

    #desktop-nav {
        display: block;
    }

    footer {
        padding: 40px 15%;
    }

    #mobile-nav {
        display: none;
    }
}