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

:root {
  --yellow: #ffe45c;
  --pink: #ff8fab;
  --blue: #79d9ff;
  --green: #9bea8f;
  --purple: #c5a3ff;
  --orange: #ffad5a;

  --black: #171717;
  --white: #fffdf5;
  --gray: #555;
}

body {
  font-family: "Comic Sans MS", "Trebuchet MS", sans-serif;
  background: #fff6d8;
  color: var(--black);

  /* subtle paper-like background */
  background-image: radial-gradient(#e8dcae 1px, transparent 1px);
  background-size: 18px 18px;
  min-height: 100vh;
  
  display: flex;
  flex-direction: column;
}

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

.header {
  height: 75px;

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

  padding: 0 4%;

  background: var(--yellow);

  border-bottom: 4px solid var(--black);

  position: sticky;
  top: 0;

  z-index: 100;

  box-shadow: 0 4px 0 var(--black);
}

/* LOGO */

.logo {
  font-size: 30px;
  font-weight: 900;

  transform: rotate(-2deg);

  letter-spacing: -2px;
}

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

.logo-dot {
  display: inline-block;

  width: 13px;
  height: 13px;

  background: var(--pink);

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

  border-radius: 50%;

  margin-right: 5px;
}

/* NAV */

.nav {
  display: flex;
  gap: 15px;
}

.nav a {
  color: var(--black);

  text-decoration: none;

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

  padding: 8px 14px;

  border: 2px solid transparent;

  border-radius: 12px;

  transition: 0.15s;
}

.nav a:hover {
  background: var(--white);

  border-color: var(--black);

  transform: rotate(2deg);
}

/* HEADER BUTTONS */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  border: 3px solid var(--black);

  background: var(--pink);

  width: 40px;
  height: 40px;

  border-radius: 12px;

  font-size: 20px;

  cursor: pointer;

  box-shadow: 3px 3px 0 var(--black);
}

.icon-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--black);
}

.avatar {
  width: 40px;
  height: 40px;

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

  background: var(--blue);

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

  border-radius: 50%;

  font-weight: bold;

  box-shadow: 3px 3px 0 var(--black);
}

/* =========================
   Account Dropdown
========================= */

.account-menu {
    position: relative;
}


/* Avatar */

.avatar-button {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    background: transparent;

    cursor: pointer;
}

.avatar {
    width: 32px;
    height: 32px;

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

    border-radius: 50%;

    background: #f0f0f0;
    color: #333333;

    font-size: 13px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.avatar-button:hover .avatar {
    background: #e7e7e7;
    transform: scale(1.04);
}


/* Dropdown */

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    width: 170px;

    padding: 6px;

    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-5px);

    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s ease;

    z-index: 100;
}


/* Show on hover */

.account-menu:hover .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Dropdown items */

.dropdown-item {
    width: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 10px;

    border: none;
    border-radius: 5px;

    background: transparent;

    color: #555555;

    font-family: inherit;
    font-size: 13px;

    text-align: left;
    text-decoration: none;

    cursor: pointer;
}

.dropdown-item span {
    width: 16px;

    color: #999999;
    text-align: center;
}

.dropdown-item:hover {
    background: #f6f6f6;
    color: #111111;
}


/* Divider */

.dropdown-divider {
    height: 1px;

    margin: 5px 4px;

    background: #eeeeee;
}


/* Logout */

.logout-item {
    color: #777777;
}

.logout-item:hover {
    background: #faf5f5;
    color: #b04444;
}

.logout-item:hover span {
    color: #b04444;
}


/* Make the form behave like an item */

.account-dropdown form {
    margin: 0;
}

/* =========================
   Footer
========================= */

.footer {
  margin-top: auto;
  padding: 24px 40px;

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

  border-top: 1px solid #eeeeee;
  color: #888888;

  font-size: 13px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  color: #333333;
  font-weight: 600;
}

.footer-copy {
  color: #999999;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: #888888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #222222;
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 600px) {
  .header {
    padding: 0 15px;
  }

  .nav {
    display: none;
  }

  .footer {
    padding: 20px;
    flex-direction: column;
    gap: 14px;
  }
}
