@use "../../../../styles/abstracts/variables" as *;
@use "../../../../styles/abstracts/mixins" as *;

/* ================= PAGE ================= */
.page {
  @include dashPageComponent;
  background: $bg-soft;
  color: $text-dark;
  padding: 0;
  margin-top: 2rem;
  @media (max-width: 900px) {
    margin-top: 5rem;
  }
}

/* ================= HEADER ================= */
.header {
  position: relative;
  height: 200px;
  border-radius: 16px;

  /* ✅ CRITICAL FIX: allow avatar to overflow */
  overflow: visible;

  background-size: cover;
  background-position: center;

  box-shadow: 0 10px 30px rgba(122, 75, 32, 0.15);

  @media (max-width: 900px) {
    height: 160px;
  }

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px; /* keep radius visually */
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.35),
      rgba(0,0,0,0.85)
    );
    z-index: 1;
  }
}

/* ================= TYPE BADGE ================= */
.typeBadge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;

  padding: 6px 12px;
  border-radius: 999px;

  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;

  color: #fff;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.25);

  box-shadow:
    0 6px 16px rgba(0,0,0,0.2),
    inset 0 1px 2px rgba(255,255,255,0.2);
}

/* ================= AVATAR ================= */
.avatar {
  position: absolute;
  bottom: -50px; /* keeps it outside */
  left: 24px;

  z-index: 10; /* ✅ above everything */

  width: 90px;
  height: 90px;

  border-radius: 50%;
  overflow: hidden;

  border: 5px solid $bg-soft;

  box-shadow:
    0 14px 34px rgba(0,0,0,0.25),
    inset 0 2px 6px rgba(255,255,255,0.2);

  background: #fff; /* fallback */

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

/* ================= PROFILE ================= */
.profile {
  margin-top: 60px;
  padding: 1.6rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid $border;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.04),
    0 2px 6px rgba(0,0,0,0.02);
}

/* ================= NAME ================= */
.nameRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;

  h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: $text-dark;
  }
}

/* ================= VERIFIED ================= */
.verified {
  @extend .status;

  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;

  border: 1px solid rgba(34, 197, 94, 0.25);

  box-shadow:
    0 6px 14px rgba(34, 197, 94, 0.18),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.pending {
  @extend .status;

  background: rgba(245, 158, 11, 0.12);
  color: #d97706;

  border: 1px solid rgba(245, 158, 11, 0.25);

  box-shadow:
    0 6px 14px rgba(245, 158, 11, 0.18),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.rejected {
  @extend .status;

  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;

  border: 1px solid rgba(239, 68, 68, 0.25);

  box-shadow:
    0 6px 14px rgba(239, 68, 68, 0.18),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

/* ================= STATUS BADGE (BASE) ================= */
.status {
  font-size: 0.7rem;
  padding: 5px 12px;
  border-radius: 999px;

  font-weight: 600;
  letter-spacing: 0.03em;

  display: inline-flex;
  align-items: center;
  gap: 4px;

  backdrop-filter: blur(6px);

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);

  transition: all 0.25s ease;
}

/* ================= DESCRIPTION ================= */
.description {
  margin-top: 1px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: $text-light;
}

/* ================= TAGS ================= */
.tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  gap: 8px;

  span {
    padding: 5px 12px;
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 600;
    background: $primary-soft;
    color: $primary;

    transition: 0.2s ease;

    &:hover {
      background: $primary;
      color: #fff;
    }
  }
}

/* ================= SEE MORE ================= */
.seeMore {
  margin-top: 14px;

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

  padding: 0.5rem 1.2rem;
  border-radius: 10px;

  font-size: 0.85rem;
  font-weight: 600;

  border: none;
  cursor: pointer;

  background: linear-gradient(135deg, $primary, $primary-2);
  color: #fff;

  box-shadow: 0 10px 24px rgba(122, 75, 32, 0.25);

  transition: all 0.25s ease;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(122, 75, 32, 0.35);
  }

  &:active {
    transform: scale(0.96);
  }
}

/* ================= META ================= */
.meta {
  margin-top: 14px;

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

  font-size: 0.9rem;
  color: $text-light;
}

/* ================= WRAPPER ================= */
.wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;

  @media (max-width: 900px) {
    grid-template-columns: 1fr;
  }
}

/* ================= SIDEBAR ================= */
.sidebar {
  background: #fff;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid $border;

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

.tabItem {
  padding: 0.8rem;
  border-radius: 10px;
  cursor: pointer;

  h4 {
    font-size: 0.95rem;
    color: $text-dark;
  }

  p {
    font-size: 0.85rem;
    color: $text-light;
  }

  &:hover {
    background: $primary-soft;
  }
}

.activeTab {
  background: $primary-soft;
  border-left: 3px solid $primary;
}

/* ================= CONTENT ================= */
.content {
  background: #fff;
  padding: 1.6rem;
  border-radius: 14px;
  border: 1px solid $border;

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

.contentHeader {
  margin-bottom: 1rem;

  h2 {
    font-size: 1rem;
    color: $text-dark;
  }

  p {
    font-size: 0.85rem;
    color: $text-light;
  }
}

/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;

  @media (max-width: 1024px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 600px) {
    grid-template-columns: 1fr;
  }
}

/* ================= ROW ================= */
.row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.icon {
  color: $primary;
  margin-top: 2px;
}

.label {
  font-size: 0.75rem;
  color: $text-light;
}

.value {
  font-size: 0.9rem;
  font-weight: 600;
  color: $text-dark;
}

/* ================= ABOUT ================= */
.about {
  font-size: 0.9rem;
  line-height: 1.7;
  color: $text-light;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .profile {
    padding: 1.2rem;
  }

  .nameRow h1 {
    font-size: 1.25rem;
  }

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

/* ================= ACTIONS ================= */
.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.updateBtn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;

  font-size: 0.8rem;
  font-weight: 600;

  cursor: pointer;

  background: linear-gradient(135deg, #7a4b20, #5e3817);
  color: #fff;

  box-shadow: 0 8px 18px rgba(122, 75, 32, 0.25);

  transition: 0.25s ease;

  &:hover {
    transform: translateY(-2px);
  }
}

.deleteBtn {
  padding: 8px 14px;
  border-radius: 8px;

  font-size: 0.8rem;
  font-weight: 600;

  cursor: pointer;

  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;

  border: 1px solid rgba(239, 68, 68, 0.3);

  transition: 0.25s ease;

  &:hover {
    background: #dc2626;
    color: #fff;
  }
}

/* ================= MODAL ================= */
.modalOverlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.5);

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

  z-index: 1000;
}

.modal {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;

  width: 90%;
  max-width: 400px;

  text-align: center;
}

.modalActions {
  margin-top: 1rem;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirmDelete {
  background: #dc2626;
  color: #fff;

  padding: 8px 14px;
  border-radius: 6px;
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
  .actions {
    flex-direction: column;
  }

  .updateBtn,
  .deleteBtn {
    width: 100%;
  }
}


//The status BTN styles 
/* =========================
   STATUS BUTTON
========================= */
.statusBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 500;

  color: #FFF;

  background: #5e3817;

  cursor: pointer;

  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  /* ================= HOVER ================= */
  &:hover {
    color: #fff;

    background: linear-gradient(
      135deg,
      #5e3817,
      #7a4b20
    );

    border-color: transparent;

    box-shadow:
      0 6px 18px rgba(94, 56, 23, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);

    transform: translateY(-1px);
  }

  /* ================= ACTIVE ================= */
  &:active {
    transform: translateY(0) scale(0.97);

    box-shadow:
      0 2px 8px rgba(94, 56, 23, 0.2);
  }

  /* ================= FOCUS ================= */
  &:focus-visible {
    outline: none;
    box-shadow:
      0 0 0 2px rgba(94, 56, 23, 0.25),
      0 0 0 4px rgba(94, 56, 23, 0.08);
  }

  /* ================= ICON ================= */
  svg {
    opacity: 0.85;
    transition: transform 0.2s ease;
  }

  &:hover svg {
    transform: translateX(2px);
  }

  /* ================= MOBILE ================= */
  @media (max-width: 768px) {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
}


//Vist website button 
.linkBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: .5rem;

  padding: 7px 12px;
  border-radius: 8px;

  background: linear-gradient(135deg, #5e3817, #7a4b20);
  color: #fff;

  font-size: 0.8rem;
  font-weight: 500;

  text-decoration: none;
  transition: all 0.25s ease;

  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(122, 75, 32, 0.25);
  }
}


//Buttons for the social medial links 
.primaryBtn {
  display: inline-block;
  padding: 8px 14px;
  background: #5e3817;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
}

.socialBtn {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
}

/* Brand Colors */
.whatsapp {
  background: #25d366;
}

.facebook {
  background: #1877f2;
}

.instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}

.twitter {
  background: #1da1f2;
}

.linkedin {
  background: #0077b5;
}