/* =============================================
   PROFILE / MY ACCOUNT SCREEN STYLING
   ============================================= */

.profile-screen-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-bottom: 80px; /* space for mobile bottom bar */
}

/* =============================================
   PAGE HEADER
   ============================================= */
.profile-page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px 0;
  position: relative;
}

.profile-page-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-charcoal);
  text-align: center;
}

/* =============================================
   USER INFO CARD
   ============================================= */
.profile-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 12px 8px;
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #edf2f7;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  position: relative;
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-green);
}

.profile-user-details {
  flex: 1;
  min-width: 0;
}

.profile-user-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark-charcoal);
  margin-bottom: 3px;
}

.profile-user-phone {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.profile-user-email {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-login-cta {
  background-color: #00c853;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.profile-login-cta:hover {
  background-color: #00b44a;
}

.profile-edit-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #f0fff4;
  border: 1.5px solid #c3e6cb;
  color: var(--primary-green);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.profile-edit-btn:hover {
  background-color: var(--primary-green);
  color: #ffffff;
}

/* =============================================
   MENU LIST SECTIONS
   ============================================= */
.profile-menu-section {
  margin: 12px 20px 0;
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #edf2f7;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover,
.profile-menu-item:active {
  background-color: #f8fafc;
}

.menu-item-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.menu-item-icon-box.green  { background-color: #e8f5e9; color: #1b8a4a; }
.menu-item-icon-box.blue   { background-color: #e3f2fd; color: #1976d2; }
.menu-item-icon-box.orange { background-color: #fff3e0; color: #f57c00; }
.menu-item-icon-box.purple { background-color: #ede7f6; color: #7b1fa2; }
.menu-item-icon-box.red    { background-color: #fce4ec; color: #c62828; }
.menu-item-icon-box.teal   { background-color: #e0f2f1; color: #00796b; }

.menu-item-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-charcoal);
}

.menu-item-chevron {
  font-size: 13px;
  color: #b0bec5;
}

/* =============================================
   LOGOUT BUTTON
   ============================================= */
.profile-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 20px 0;
  height: 52px;
  border-radius: 16px;
  background: #fff5f5;
  border: 1.5px solid #ffd0d0;
  color: #e53e3e;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.profile-logout-btn:hover {
  background-color: #e53e3e;
  color: #ffffff;
}

/* =============================================
   DESKTOP RESPONSIVE
   ============================================= */
@media (min-width: 768px) {
  .profile-screen-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0 80px;
    background-color: #ffffff;
  }

  .profile-page-header {
    padding: 0 0 24px;
    text-align: center;
  }

  .profile-page-title {
    font-size: 26px;
  }

  /* User card — no side margins, full width of the centered column */
  .profile-user-card {
    margin: 0 0 12px;
    padding: 22px 24px;
    border-radius: 20px;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
  }

  .profile-user-name {
    font-size: 20px;
  }

  .profile-user-phone {
    font-size: 14px;
  }

  .profile-user-email {
    font-size: 13px;
  }

  /* Menu sections — no side margins */
  .profile-menu-section {
    margin: 12px 0 0;
    border-radius: 20px;
  }

  .profile-menu-item {
    padding: 18px 22px;
  }

  .menu-item-icon-box {
    width: 42px;
    height: 42px;
    font-size: 17px;
    border-radius: 13px;
  }

  .menu-item-label {
    font-size: 15px;
  }

  /* Logout button — no side margins */
  .profile-logout-btn {
    margin: 16px 0 0;
    height: 54px;
    border-radius: 18px;
    font-size: 15px;
  }
}
