/* Layout Container */
.profile-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
           1. Top Profile Header Card
           ========================================================================== */
.profile-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f3eae7;
  display: grid;
  grid-template-columns: 2fr 1fr;
  position: relative;
  overflow: hidden;
}
.meta-item:last-child {
  justify-content: unset;
  margin-top: 0px;
  margin-bottom: 0px;
}
.meta-item {
  width: unset;
}
/* Profile Left Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

.btn {
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background-color: #ff4e20;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 78, 32, 0.25);
}

.btn-primary:hover {
  background-color: #e03d12;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 78, 32, 0.35);
}

.btn-secondary {
  background-color: #ffffff;
  color: #ff4e20;
  border: 2px solid #ff4e20;
}

.btn-secondary:hover {
  background-color: #fff2ee;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Profile Right Main Info Area */
.profile-main-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* User Details Text */
.user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.user-title {
  font-size: 15px;
  color: #8c8c8c;
  font-weight: 500;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #8c8c8c;
  margin-top: 4px;
  width: 100%;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item i {
  font-size: 14px;
  color: #a0aec0;
}

.meta-item .location-name {
  font-weight: 700;
}

/* Availability Status */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #10b981;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Avatar Box & Badges */
.avatar-container {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.verified-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background-color: #3b82f6;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
           2. Statistics Card Bar
           ========================================================================== */
.stats-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.stat-column {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  position: relative;
  gap: 20px;
}

/* Vertical Divider line between stats */
.stat-column:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: #e5e7eb;
}

.stat-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: #8c8c8c;
  font-weight: 500;
  margin-top: 2px;
}

.stat-icon-box {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  background-color: #fff0eb;
  color: #ff4e20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
           3. Bottom Navigation Tab Bar
           ========================================================================== */
.nav-tabs-bar {
  background-color: #eaeaea;
  border-radius: 16px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.tab-button {
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #555555;
  background: transparent;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-button:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.6);
  color: #1f2937;
}

/* Active Tab Styling */
.tab-button.active {
  background-color: #ffe4dc;
  color: #ff4e20;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.badges-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 820px;
  margin-top: 25px;
}

/* Badge button card style */
.badge-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  flex: 1;
  white-space: nowrap;
}

.badge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(98, 40, 162, 0.12);
}

.badge-card:active {
  transform: translateY(0);
}

/* Text styling */
.badge-text {
  color: #4525B4;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

/* Icon styling */
.badge-icon {
  color: #5e2ca5;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive tweak for small screens */
@media (max-width: 680px) {
  .badges-container {
    flex-direction: column;
    gap: 10px;
  }

  .badge-card {
    width: 100%;
  }
}
@media (max-width: 860px) {
  .profile-card {
    
    grid-template-columns: 1fr;
    text-align: center;
  }

  .action-buttons {
    flex-direction: row;
    width: 100%;
  }

  .btn {
    flex: 1;
  }

  .profile-main-info {
    flex-direction: column-reverse;
    text-align: center;
    gap: 16px;
  }

  .user-details {
    align-items: center;
  }

  .user-meta {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .stats-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
  }
  .stat-column{
    justify-content: flex-start;
  }
    .meta-item:last-child{
        flex-direction: row;
        align-items: center;
    }
  .stat-column {
    padding: 8px 12px;
  }

  .stat-column:not(:last-child)::after {
    display: none;
  }

  .action-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .nav-tabs-bar {
    grid-template-columns: 1fr;
  }

  .stats-card {
    grid-template-columns: 1fr;
  }
}
