/* ### CUSTOM PROPERTIES ### */

:root {
  /* # PRIMARY # */
  --red-500: hsl(1, 90%, 64%);
  --blue-950: hsl(219, 85%, 26%);
  /* # NEUTRAL # */
  --white: hsl(0, 100%, 100%);
  --navy-50: hsl(210, 60%, 98%);
  --blue-100: hsl(211, 68%, 94%);
  --navy-100: hsl(205, 33%, 90%);
  --gray-500: hsl(219, 14%, 63%);
  --gray-600: hsl(219, 12%, 42%);
  --navy-950: hsl(224, 21%, 14%);
  /* # TYPOGRAPHY # */
  --ff-jakarta: "Plus Jakarta Sans", sans-serif;
  --fw-500: 500;
  --fw-800: 800;
}

/* ### CSS RESET ### */

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

ol {
  list-style: none;
}

button {
  background-color: unset;
  font: inherit;
  border: none;
}

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

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

/* ### UTILITY CLASS ### */

.hide {
  display: none;
}

/* ### GENERAL STYLING ### */

body {
  font-family: var(--ff-jakarta);
  font-weight: var(--fw-500);
  color: #5f636c;
}

/* ### NOTIFICATIONS MAIN ### */

.notifications-section {
  padding: 1.5rem 1rem;
  max-width: 636px;
  margin-inline: auto;
  background-color: #fff;
}

.notifications__header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
}

.notifications__header button {
  cursor: pointer;
  color: var(--gray-600);
  font-size: 0.925rem;
}

.notifications__header button:hover {
  color: var(--blue-950);
}

h1,
.user {
  color: var(--navy-950);
  font-weight: var(--fw-800);
}

h1 {
  font-size: 1.2rem;
}

.unread-notifications {
  background-color: var(--blue-950);
  color: var(--white);
  margin-inline-start: 0.5rem;
  padding: 0.2rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 1.1rem;
}

.notifications-section a {
  color: var(--blue-950);
  font-weight: var(--fw-800);
}

.notifications-section a:visited {
  color: #5c6069;
}

.notification__container {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.notification-list-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.9rem;
  /* background-color: deepskyblue; */
  /* color: #fff; */
  padding: 0.8rem;
  border-radius: 0.8rem;
}

.notification__img {
  width: 40px;
  flex-shrink: 0;
}

.notification__content {
  width: calc(100% - (80px + 2rem));
  flex-grow: 1;
}

.notification__messagge {
  width: calc(100% - (40px + 1rem));
  margin-inline-start: auto;
  color: var(--gray-600);
  border: 1px solid #e6e7e9;
  border-radius: 0.4rem;
  padding: 0.8rem;
}

.notification__messagge:hover {
  cursor: pointer;
  background-color: #e5eff9;
}

.notification__picture {
  width: 40px;
  flex-shrink: 0;
}

.notification__picture:hover {
  cursor: pointer;
}

.description {
  margin-inline-start: 0.2rem;
}

.description a {
  margin-inline-start: 0.2rem;
}

.date {
  color: #999da9;
  margin-top: 0.1rem;
}

.unread {
  background-color: #f6fafd;
}

.unread-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--red-500);
  border-radius: 200px;
  margin-inline-start: 0.3rem;
  padding-bottom: 0.1rem;
}

/* ### MEDIA QUERIES ### */

@media (min-width: 38em) {
  body {
    background-color: #f9fafe;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .notifications-section {
    box-shadow: 0px 5px 20px rgba(220, 220, 220, 0.684);
    border-radius: 0.6rem;
    padding: 1.8rem 1.8rem 0;
  }
}
