@use "../../../styles/abstracts/variables";

/* COLORS */
$primary: #5e3817;
$text-dark: #1a1a1a;
$text-light: #6b6b6b;
$bg-soft: #faf8f6;

/* =========================================
   WRAPPER
========================================= */

.wrapper {
  margin-top: 1.6rem;
  // margin-bottom: 1.2rem;

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

  /* 🔥 desktop = clean */
}

/* =========================================
   LEFT SECTION
========================================= */

.left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* AVATAR */
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;

  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #eee;

  flex-shrink: 0;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

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

.text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.text h1 {
  font-size: 1.45rem;
  font-weight: 600;
  color: $text-dark;
  letter-spacing: -0.01em;

  span {
    color: $primary;
  }
}

.meta {
  font-size: 0.82rem;
  color: $text-light;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.85;
}

/* =========================================
   ACTIONS
========================================= */

.actions {
  display: flex;
  align-items: center;
}

/* NOTIFICATION BUTTON */
.bell {
  position: relative;

  width: 42px;
  height: 42px;

  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);

  background: #F2EDEA;

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

  cursor: pointer;

  transition: all 0.25s ease;

  svg {
    font-size: 1.2rem;
    color: #444;
  }

  &:hover {
    background: $bg-soft;
    transform: translateY(-2px);
  }
}

/* NOTIFICATION DOT */
.dot {
  position: absolute;
  top: 8px;
  right: 8px;

  width: 8px;
  height: 8px;
  border-radius: 50%;

  background: #473324;

  box-shadow: 0 0 0 2px #fff;
}

/* =========================================
   MOBILE TRANSFORMATION (🔥 IMPORTANT)
========================================= */

@media (max-width: 768px) {
  .wrapper {
    margin-top: 0;
    margin-bottom: 1rem;

    padding: 0.7rem 0rem;

    border-radius: 14px;

    background: $bg-soft;

    // box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  }

  .text h1 {
    font-size: 1.05rem;
  }

  .meta {
    font-size: 0.75rem;
  }

  .avatar {
    width: 38px;
    height: 38px;
  }

  .bell {
    width: 38px;
    height: 38px;

    border-radius: 10px;
  }
}