/* Base colors */
body,
html {
    height: 100%;
    margin: 0;
    background-color: #fff;
    /* Pastel cream */
}

body {
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Layout */
.container {
    display: grid;
    grid-template-columns: 270px 1fr;
    grid-template-rows: 100px 1fr;
}

/* Header */
.header {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 50px 50px;
    justify-content: space-between;
    align-items: center;
    background-color: #FFEBE9;
    /* Pastel pink */
}

.nav {
    display: grid;
    grid-template-columns: 3fr 2fr;
    padding: 15px;
}

.nav .user-profile {
    display: grid;
    grid-template-columns: 40px 40px 150px;
    justify-content: end;
    align-items: center;
}

.search {
    display: grid;
    justify-content: start;
    align-items: center;
    grid-template-columns: 1fr 15fr;
}

.nav .site-search {
    width: 85%;
    border: none;
    background-color: #fff;
    /* Pastel yellow-green */
    border-radius: 15px;
    padding-left: 10px;
}

.control {
    display: grid;
    grid-template-columns: 3fr 2fr;
}

.right-control {
    display: grid;
    grid-template-columns: 100px 100px 100px;
    justify-content: end;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
}

/* Left bar */
.left-bar {
    display: grid;
    background-color: #A8D5E2;
    /* Pastel blue */
    grid-row: 1 / 3;
    color: #3D5A80;
    /* Dark blue-gray */
    align-content: start;
    gap: 40px;
    padding: 15px;
    font-weight: bold;
}

/* Buttons */
button {
    border: 0px solid black;
    border-radius: 50px;
    background-color: #1A92D4;
    /* Pastel blue */
    color: #fff;
    font-weight: bold;
    height: 30px;
    width: 100px;
}

/* Main section */
.main {
    display: grid;
    grid-template-columns: 3fr 1fr;
    background-color: #F0F4F8;
    /* Light pastel gray */
}

.projects {
    padding: 15px;
}

.title {
    font-weight: bold;
}

/* Project cards */
.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(335px, 1fr));
    gap: 15px;
    padding: 15px 0 15px 0;
}

.project-cards .card {
    display: grid;
    grid-template-rows: 1fr 3fr 1fr;
    background-color: #fff;
    border-left: 4px solid #FFD6A5;
    /* Pastel peach */
    border-radius: 5px;
    padding: 15px;
    box-shadow: #1A92D3 3px 3px 4px;
}

.project-cards .card:hover {
    cursor: pointer;
    /* margin: 2px 0 0 2px; */
    box-shadow: #1A92D3 1px 1px 4px;
}


/* Right bar */
.right-bar {
    display: grid;
    grid-template-rows: 1fr 1fr;
}

.right-bar>*>.announcement-cards,
.right-bar>*>.trending-cards {
    background-color: #FFFFFF;
    padding: 15px;
}

.announcements {
    padding: 15px;
}

.announcement-cards {
    margin: 15px 0 15px 0;
    border-radius: 10px;
}

.announcement-card {
    padding: 20px 0 20px 0;
}

.announcement-card:first-child {
    padding: 0 0 20px 0;
}

.announcement-card:not(:first-child) {
    border-top: 1px solid #000;
}

.announcement-card-title {
    font-weight: bold;
}


/* Text and other elements */
.project-name {
    font-weight: bold;
}

.user-profile>.user-name {
    font-weight: bold;
}

li {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hover effect for both text and SVG fill */
li:hover,
.logo:hover {
    color: red;
    /* Red color for text */
    cursor: pointer;
}

/* Hover effect for SVG paths */
.star:hover,
.eyeball:hover,
.github:hover,
.user-name:hover,
.user-name-and-handle:hover,
.profile-pic:hover,
.notification-bell:hover,
li:hover svg path,
.logo:hover svg path,
.profile-pic:hover svg path,
.notification-bell:hover svg path,
.search:hover svg path {
    fill: red;
    color: red;
    /* Red color for SVG on hover */
    cursor: pointer;
}

/* Hover effect for each unique icon - Seems like a really jank way of doing this*/
.star:hover::before {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="red" d="M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"/></svg>');
}

.eyeball:hover::before {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="red" d="M12 4.5C7.5 4.5 3.6 7.25 1.7 12c1.9 4.75 5.8 7.5 10.3 7.5s8.4-2.75 10.3-7.5C20.4 7.25 16.5 4.5 12 4.5m0 10.5c-2.25 0-4-1.75-4-4s1.75-4 4-4 4 1.75 4 4-1.75 4-4 4z"/></svg>');
}

.github:hover::before {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="red" d="M12 0C5.4 0 0 5.4 0 12c0 5.3 3.4 9.8 8.2 11.4.6.1.8-.2.8-.5v-1.9c-3.4.7-4.2-1.6-4.2-1.6-.6-1.5-1.4-1.9-1.4-1.9-1.1-.7 0-.7 0-.7 1.2 0 1.8 1.2 1.8 1.2 1 1.7 2.6 1.2 3.3.9.1-.7.4-1.2.7-1.5-2.7-.3-5.6-1.4-5.6-6.2 0-1.4.5-2.6 1.3-3.5-.1-.3-.6-1.5.1-3 0 0 1-.3 3.4 1.3.9-.2 1.8-.3 2.7-.3s1.8.1 2.7.3c2.4-1.6 3.4-1.3 3.4-1.3.7 1.5.2 2.7.1 3 .8.9 1.3 2.1 1.3 3.5 0 4.8-2.9 5.9-5.6 6.2.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.5 4.8-1.6 8.2-6.1 8.2-11.4 0-6.6-5.4-12-12-12z"/></svg>');
}

.trending-card:hover,
.trending-card:hover svg path {
    fill: red;
    /* Red color for SVG on hover */
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.left-control {
    display: grid;
    grid-template-columns: auto 4fr;
    gap: 20px;
    margin: 20px;
    align-items: start;

}

.greeting-container {
    padding-top: 5px;
    padding-bottom: 10px;
    align-items: center;
}

.greeting {
    font-size: 12px;
}

.user-name-and-handle {
    font-weight: bold;
}

.trending {
    padding: 15px;
}

.trending-cards {
    margin: 15px 0 15px 0;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
}

.trending-card {
    display: grid;
    grid-template-columns: 1fr 5fr;
    justify-items: center;
    align-items: center;
    padding: 10px 0 10px 0;
}

.user-info {
    display: grid;
    grid-template-rows: 1fr 1fr;
    justify-self: start;
    padding-left: 20px;
}

.user-info>p:first-child {
    font-weight: bold;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-self: end;
    gap: 15px;
}

.card-actions div {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.star:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"/></svg>');
}

.eyeball:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 4.5C7.5 4.5 3.6 7.25 1.7 12c1.9 4.75 5.8 7.5 10.3 7.5s8.4-2.75 10.3-7.5C20.4 7.25 16.5 4.5 12 4.5m0 10.5c-2.25 0-4-1.75-4-4s1.75-4 4-4 4 1.75 4 4-1.75 4-4 4z"/></svg>');
}

.github:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 0C5.4 0 0 5.4 0 12c0 5.3 3.4 9.8 8.2 11.4.6.1.8-.2.8-.5v-1.9c-3.4.7-4.2-1.6-4.2-1.6-.6-1.5-1.4-1.9-1.4-1.9-1.1-.7 0-.7 0-.7 1.2 0 1.8 1.2 1.8 1.2 1 1.7 2.6 1.2 3.3.9.1-.7.4-1.2.7-1.5-2.7-.3-5.6-1.4-5.6-6.2 0-1.4.5-2.6 1.3-3.5-.1-.3-.6-1.5.1-3 0 0 1-.3 3.4 1.3.9-.2 1.8-.3 2.7-.3s1.8.1 2.7.3c2.4-1.6 3.4-1.3 3.4-1.3.7 1.5.2 2.7.1 3 .8.9 1.3 2.1 1.3 3.5 0 4.8-2.9 5.9-5.6 6.2.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.5 4.8-1.6 8.2-6.1 8.2-11.4 0-6.6-5.4-12-12-12z"/></svg>');
}

.right-control button:hover {
    background-color: red;
    cursor: pointer;
}