/* 
 * Teamz — Public Profile CSS (profile.php)
 * Premium Modern UI
 */

/* General Wrapping & Layout */
.profile-wrap {
  max-width: 1200px;
  margin: 120px auto 80px; /* Offset for fixed header navigation */
  padding: 0 24px;
}

/* Profile Hero Header Section */
.profile-header-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.profile-cover {
  height: 220px;
  background: linear-gradient(135deg, #0d1117 0%, #1c2330 100%);
  position: relative;
}

.profile-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(29, 191, 115, 0.15) 0%, transparent 60%);
}

.profile-info-section {
  padding: 0 40px 40px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.profile-avatar-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid #fff;
  background: #fff;
  margin-top: -75px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--green);
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 24px;
  gap: 24px;
}

.profile-details-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.verified-badge {
  color: #2563eb;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
}

.status-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.status-badge.available {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.status-badge.busy {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.profile-title {
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0;
}

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

.btn-primary {
  background: var(--green);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px var(--green-glow);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--green-glow);
}

/* Two Column Body Grid */
.profile-body-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

/* Main Content Area */
.profile-main-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-content-card,
.profile-section-container {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.card-sec-title,
.sec-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-sec-title i,
.sec-title i {
  color: var(--green);
  font-size: 1.45rem;
}

.profile-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* Skills container styling */
.wb-skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wb-skill-chip {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.wb-skill-chip:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(29, 191, 115, 0.05);
  transform: translateY(-2px);
}

/* Portfolio grid & items */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.portfolio-item {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.portfolio-img-container {
  height: 180px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.portfolio-img-container i {
  font-size: 3rem;
  color: var(--muted);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.portfolio-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.portfolio-link:hover {
  color: var(--green-dark);
}

/* Reviews Styling */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-item {
  padding: 24px;
  background: var(--surface-alt);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.review-item:hover {
  background: #fff;
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #eab308;
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.review-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 0;
  margin-bottom: 16px;
  font-style: italic;
}

.review-client {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

.review-client-name {
  font-weight: 700;
  color: var(--ink);
}

.review-job-link {
  color: var(--muted);
}

.review-job-link strong {
  color: var(--ink-soft);
}

.review-date {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Empty section layout */
.empty-section-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--surface-alt);
  border-radius: 16px;
  border: 1px dashed var(--border);
  text-align: center;
  color: var(--muted);
  gap: 12px;
  grid-column: 1 / -1;
}

.empty-section-box i {
  font-size: 2.5rem;
  color: var(--muted);
}

.empty-section-box p {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

/* Sidebar Columns Details Card */
.profile-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 100px;
}

.profile-sidebar-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.sidebar-sec-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-stat-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(29, 191, 115, 0.08);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.sidebar-stat-item:hover .stat-icon {
  background: var(--green);
  color: #fff;
}

.stat-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-details span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
}

.stat-details strong {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
}

/* WhatsApp action button inside sidebar */
.whatsapp-btn-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.whatsapp-btn-profile:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  color: #fff;
}

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

.whatsapp-btn-profile i {
  font-size: 1.25rem;
}

/* ── Mobile and Tablet Responsiveness ── */
@media (max-width: 992px) {
  .profile-wrap {
    margin-top: 100px;
  }

  .profile-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
  }

  .profile-header-actions {
    width: 100%;
  }

  .profile-header-actions a {
    width: 100%;
    justify-content: center;
  }

  .profile-body-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .profile-sidebar-column {
    position: static;
  }
}

@media (max-width: 768px) {
  .profile-wrap {
    margin-top: 90px;
    padding: 0 20px;
  }

  .profile-info-section {
    flex-direction: column;
    padding: 0 24px 32px;
    gap: 16px;
  }

  .profile-avatar-large {
    margin-top: -60px;
    width: 120px;
    height: 120px;
    font-size: 2.8rem;
  }

  .profile-name {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .profile-wrap {
    margin-top: 80px;
    padding: 0 16px;
  }

  .profile-header-card {
    border-radius: 16px;
  }

  .profile-cover {
    height: 140px;
  }

  .profile-info-section {
    padding: 0 16px 24px;
  }

  .profile-avatar-large {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    font-size: 2.2rem;
    border-width: 4px;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .profile-title {
    font-size: 1rem;
  }

  .profile-content-card,
  .profile-section-container,
  .profile-sidebar-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .review-item {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .review-client {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
