/* CSS RESET */
*, *::before, *::after {
  box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}
/* END */

/* CUSTOM PROPS */
:root {
    --clr-white: #FFFFFF;
    --clr-blue: #1992D4;
    --clr-light-blue: #E2E8F0;
    --clr-dark-blue: #354458;
    --clr-orange: #F0B429;

    --default-font-size: 16px;
}
/* END */

/* STYLING */
.container {
    font-size: var(--default-font-size);
    background-color: var(--clr-light-blue);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 5fr;
    grid-template-rows: 150px 1fr;
    grid-template-areas: "aside header"
                         "aside main";
}

ul {
    list-style: none;
}

header {
    background-color: var(--clr-white);
    grid-area: header;
    display: grid;
    grid-template-columns: 2fr 2fr;
    grid-template-rows: 1fr 1fr;
    padding: 0 3rem;
    box-shadow: 0 8px 8px -4px rgba(55, 58, 83, 0.356);
}

header > *, .nav-list > ul, .welcome-msg{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-msg {
    display: flex;
}

header > .nav-list, header > .user {
    justify-self: end;
}

header input[type="search"] {
    background-color: var(--clr-light-blue);
    border: none;
    border-radius: 2rem;
    flex-grow: 1;
    padding: 0.5rem 1rem;
}

header input[type="search"]:focus {
    outline: solid 2px var(--clr-blue);

} 

.user-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

.icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.nav-list button {
    background-color: var(--clr-blue);
    color: var(--clr-white);
    border: none;
    border-radius: 1rem;
    padding: 0.2rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
}

.nav-list button:active {
    scale: 1.1;
}

.user-name {
    font-weight: 500;
}

span.user-name {
    font-size: 1.5rem;
}

.dashboard {
    background-color: var(--clr-blue);
    grid-area: aside;
    color: var(--clr-white);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.dashboard-header {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.dashboard-header .header-icon {
    width: 55px;
    height: 55px;
    fill: white;
}

.dashboard ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard a {
    font-weight: 500;
    font-size: 1.0rem;
    text-decoration: none;
}

.dashboard li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

a, a:visited {
    color: currentColor;
    text-decoration: none;
}

main {
    grid-area: main;
    display: grid;
    grid-template-columns: 3fr 1fr;
    margin: 0 2rem;
    margin-top: 1rem;
    gap: 1rem;
}

.projects-container > h2 {
    grid-template-rows: 1 / span 2;
    font-size: 1.3rem;
    font-weight: 600;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.project {
    background-color: var(--clr-white);
    padding: 1.5rem;
    position: relative;
    border-left: 6px solid var(--clr-orange);
    border-radius: 6px;
    box-shadow: 0 8px 8px -4px rgba(55, 58, 83, 0.356);
}

.project-description {
    padding-bottom: 3rem;
}

.project-controls {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    position: absolute;
    bottom: 1rem;
    right: 2rem;
}

.icon {
    cursor: pointer;
}

.icon:hover { 
  fill: var(--clr-orange);
  transition: fill 120ms ease-in-out
}

.right-aside {
    display: grid;
    grid-template-rows: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.announcement {
    padding: 2rem;
}

.trending-inner, .announcement {
    background-color: var(--clr-white);
    font-size: 0.8rem;
    border-radius: 5px;
    box-shadow: 0 8px 8px -4px rgba(55, 58, 83, 0.356);
}

.right-aside hr {
    margin: 1rem 0;
    opacity: 50%;
}

.trending-inner {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trending-inner div {
    display: grid;
    grid-template-columns: min-content 2fr;
    gap: 1rem;
    align-items: center;
}

.morgan {
    background-image: linear-gradient(rgb(155, 102, 5), rgb(236, 189, 33));
}

.tegan {
    background-color: #1992D4;
}

.kendal {
    background-color: grey;
}
.alex {
    background-color: palevioletred;
}