/* =========================================
   GLITTER BLOSSOM
   STYLE.CSS — PART 1
   ========================================= */


/* =========================================
   COLOR PALETTE
   ========================================= */

:root {
    --pink: #ff78b8;
    --darkpink: #ff4ea1;
    --turquoise: #6ed9dc;
    --orange: #ffb356;
    --purple: #c494ff;
    --brown: #8b5d52;

    --border: #b64d83;
    --shadow: 6px 6px 0 rgba(0, 0, 0, 0.18);
}


/* =========================================
   BASIC RESET
   ========================================= */

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


/* =========================================
   BODY
   ========================================= */

body {
    background-image: url("Background2.png");

    background-repeat: repeat;
    background-position: top left;
    background-attachment: fixed;

    background-color: #ff78b8;

    font-family: "Fredoka", sans-serif;
    color: var(--brown);

    padding: 35px;
}


/* =========================================
   MAIN WEBSITE
   ========================================= */

.page {
    max-width: 1200px;
    width: 92%;
    margin: 0 auto;
}


/* =========================================
   HEADER / BANNER
   ========================================= */

.hero {
    margin-bottom: 25px;
}

.banner {
    width: 90%;
    display: block;
    
    margin: 0 auto;

    border-radius: 25px;
    border: 4px solid var(--border);

    box-shadow: var(--shadow);
}

.issue {
    margin-top: 10px;

    text-align: center;

    font-size: 14px;
    letter-spacing: 2px;
    font-weight: bold;

    color: var(--brown);
}
/* =========================================
   NAVIGATION
   ========================================= */

nav {
    display: flex;
    justify-content: center;
    gap: 15px;

    margin-bottom: 20px;

    flex-wrap: wrap;
}

nav a {
    background: var(--turquoise);

    padding: 12px 20px;

    border-radius: 999px;

    border: 3px solid var(--border);

    color: white;
    font-weight: bold;
    text-decoration: none;

    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);

    transition: 0.25s;
}

nav a:hover {
    background: var(--darkpink);

    transform: translateY(-3px);
}


/* =========================================
   HOMEPAGE GRID
   ========================================= */

.grid {
    display: grid;

    grid-template-columns: 260px 1fr 260px;

    grid-template-areas:
        "welcome feature sidebar"
        "hot outfit sidebar"
        "reading snapshot sidebar"
        "spotlight favorites sidebar";

    gap: 22px;

    align-items: start;

    margin-bottom: 30px;
}


/* =========================================
   GRID SECTIONS
   ========================================= */

.welcome {
    grid-area: welcome;
}

.feature {
    grid-area: feature;
}

.hot {
    grid-area: hot;
}

.outfit {
    grid-area: outfit;
}

.reading {
    grid-area: reading;
}

.snapshot {
    grid-area: snapshot;
}

.spotlight {
    grid-area: spotlight;
}

.favorites {
    grid-area: favorites;
}

.sidebar {
    grid-area: sidebar;
}


/* =========================================
   GENERAL CONTENT BOXES
   ========================================= */

.card {
    position: relative;

    background: linear-gradient(
        180deg,
        #ffd8ef 0%,
        #ffc6e5 100%
    );

    border: 3px solid var(--border);

    border-radius: 22px;

    padding: 20px;

    box-shadow: var(--shadow);

    transition: 0.25s;

    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}


/* =========================================
   CARD HEADINGS
   ========================================= */

.card h2 {
    display: inline-block;

    background: var(--darkpink);

    color: white;

    padding: 10px 15px;

    border-radius: 999px;

    font-size: 18px;

    margin-bottom: 18px;

    letter-spacing: 1px;
}


/* =========================================
   CARD TEXT
   ========================================= */

.card h3 {
    margin-top: 15px;
    margin-bottom: 10px;

    font-size: 20px;
}

.card p {
    line-height: 1.7;

    margin-bottom: 15px;
}


/* =========================================
   CARD IMAGES
   ========================================= */

.feature img {
    width: 65%;
    height: auto;

    display: block;
    margin: 0 auto 15px auto;

    border-radius: 15px;
    border: 3px solid white;
}


/* =========================================
   CARD LINKS
   ========================================= */

.card a {
    display: inline-block;

    padding: 10px 18px;

    border-radius: 999px;

    background: var(--orange);

    color: white;

    font-weight: bold;

    text-decoration: none;

    margin-top: 8px;

    transition: 0.25s;
}

.card a:hover {
    background: var(--purple);
}
/* =========================================
   SIDEBAR
   ========================================= */

.sidebar {
    position: sticky;
    top: 25px;
}

.avatar {
    width: 100%;
    display: block;

    border-radius: 50%;
    border: 5px solid white;

    margin-bottom: 20px;
}

.sidebar hr {
    margin: 20px 0;

    border: none;
    border-top: 2px dashed var(--border);
}

.sidebar blockquote {
    line-height: 1.6;
    font-style: italic;
}


/* =========================================
   SECTION COLORS
   ========================================= */

.feature h2 {
    background: var(--darkpink);
}

.hot h2 {
    background: var(--orange);
}

.outfit h2 {
    background: #ff5fa8;
}

.reading h2 {
    background: var(--purple);
}

.snapshot h2 {
    background: var(--turquoise);
}

.advice h2 {
    background: #ff7d95;
}

.sidebar h2 {
    background: var(--brown);
}

.spotlight h2 {
    background: var(--orange);
}

.favorites h2 {
    background: #65cfc2;
}


/* =========================================
   MAGAZINE-STYLE ANGLES
   ========================================= */



/* =========================================
   CARD HOVER
   ========================================= */

.card:hover {
    transform: translateY(-6px) scale(1.02);

    z-index: 5;
}


/* =========================================
   FEATURE STICKER
   ========================================= */

.feature {
    position: relative;
}

.feature::after {
    content: "NEW!";

    position: absolute;

    top: 12px;
    right: 12px;

    background: var(--orange);
    color: white;

    padding: 7px 14px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: bold;

    transform: rotate(8deg);

    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
}


/* =========================================
   FAVORITES LIST
   ========================================= */

.favorites ul {
    list-style: none;
}

.favorites li {
    margin-bottom: 10px;
}

.favorites li::before {
    content: "🦋 ";

}

.favorites a {
    margin-top: 0;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    text-align: center;

    margin-top: 20px;
    padding: 20px;

    background: #ff8bc4;

    border: 3px solid var(--border);

    border-radius: 20px;

    color: white;

    font-weight: bold;

    box-shadow: var(--shadow);
}
/* =========================================
   RESPONSIVE LAYOUT
   ========================================= */

@media (max-width: 1000px) {

    .page {
        width: 95%;
    }

    .grid {
        grid-template-columns: 220px 1fr;

        grid-template-areas:
            "welcome feature"
            "hot feature"
            "outfit reading"
            "snapshot reading"
            "advice spotlight"
            "favorites sidebar";
    }

    .sidebar {
        position: static;
    }

}


/* =========================================
   SMALLER SCREENS
   ========================================= */

@media (max-width: 700px) {

    body {
        padding: 15px;
    }

    .page {
        width: 100%;
    }

    .banner {
        width: 95%;
    }

    nav {
        gap: 8px;
    }

    nav a {
        padding: 9px 14px;
        font-size: 14px;
    }

    .grid {
        display: block;
    }

    .card {
        margin-bottom: 20px;
    }

    .sidebar {
        position: static;
    }

}


/* =========================================
   VERY SMALL SCREENS
   ========================================= */

@media (max-width: 450px) {

    body {
        padding: 8px;
    }

    .banner {
        width: 100%;
    }

    nav a {
        width: 100%;
        text-align: center;
    }

    .ticker {
        border-radius: 15px;
    }

}