/* ============================================================
   WORKER.CSS — Styles specific to worker.php only
   Blues Home Helpers — Nakuru
   NOTE: Shared styles are in style.css
   ============================================================ */

/* ===== WORKER HERO ===== */
.worker__hero {
  background: linear-gradient(135deg, #0a3d62, #38ada9);
  padding: 90px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  position: relative;
}

.worker__back {
  position: absolute;
  top: 70px;
  left: 16px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.worker__back:hover {
  color: #fff;
}

.worker__hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 700px;
  width: 100%;
}

/* ===== HERO AVATAR ===== */
.worker__hero-avatar {
  position: relative;
  flex-shrink: 0;
}
.worker__hero-avatar img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.4);
  display: block;
}
.worker__hero-initials {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #ffc312;
  color: #0a3d62;
  font-size: 3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255,255,255,0.4);
}
.worker__available-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: #2ecc71;
  border-radius: 50%;
  border: 3px solid #fff;
}

/* ===== HERO INFO ===== */
.worker__hero-info {
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.worker__verified-badge {
  display: inline-block;
  background: rgba(46,204,113,0.25);
  border: 1px solid rgba(46,204,113,0.5);
  color: #2ecc71;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}
.worker__name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}
.worker__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.worker__meta-item {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
}
.worker__meta-available { background: rgba(46,204,113,0.2); color: #2ecc71; }
.worker__meta-busy      { background: rgba(231,76,60,0.2);  color: #ff6b6b; }

/* ===== RATING ROW ===== */
.worker__rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.worker__stars {
  color: #ffc312;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.worker__stars--sm {
  font-size: 0.9rem;
}
.worker__rating-num {
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
}
.worker__review-count {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

/* ===== RATE DISPLAY ===== */
.worker__rate-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.worker__rate-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffc312;
}
.worker__rate-per {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ===== HERO BUTTONS ===== */
.worker__hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.worker__book-btn {
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 8px;
  margin: 0;
}
.worker__book-btn--disabled {
  background: #ccc !important;
  color: #888 !important;
  cursor: not-allowed;
}

/* ===== WORKER BODY LAYOUT ===== */
.worker__body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== WORKER CARDS (shared card style for body sections) ===== */
.worker__card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.worker__card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0a3d62;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.worker__review-badge {
  background: #0a3d62;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
}

/* ===== BIO ===== */
.worker__bio {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ===== SERVICES LIST ===== */
.worker__services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.worker__service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #444;
  padding: 10px 14px;
  background: #f4f9ff;
  border-radius: 8px;
  border-left: 3px solid #0a3d62;
}
.worker__service-check {
  color: #27ae60;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== REVIEWS ===== */
.worker__no-reviews {
  text-align: center;
  padding: 30px 0;
  color: #888;
}
.worker__no-reviews span {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}
.worker__no-reviews p {
  font-size: 0.9rem;
  margin: 0;
}
.worker__reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.worker__review {
  padding: 16px;
  background: #f9f9f9;
  border-radius: 10px;
}
.worker__review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.worker__review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0a3d62;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.worker__review-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #333;
}
.worker__review-date {
  font-size: 0.75rem;
  color: #999;
}
.worker__review-stars {
  color: #ffc312;
  font-size: 0.9rem;
  margin-left: auto;
}
.worker__review-comment {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* ===== SIDEBAR ===== */
.worker__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== BOOKING CARD (sidebar) ===== */
.worker__booking-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 2px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 80px;
}
.worker__booking-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.worker__booking-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0a3d62;
}
.worker__booking-per {
  color: #888;
  font-size: 0.9rem;
}
.worker__booking-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #666;
}
.worker__divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 0;
}
.worker__book-cta {
  display: block;
  background: #ffc312;
  color: #000;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  font-family: inherit;
}
.worker__book-cta:hover { background: #e6ac00; }
.worker__book-cta--disabled {
  background: #eee !important;
  color: #aaa !important;
  cursor: not-allowed;
}
.worker__whatsapp-cta {
  display: block;
  background: #25D366;
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}
.worker__whatsapp-cta:hover { background: #128C7E; }
.worker__booking-note {
  text-align: center;
  font-size: 0.78rem;
  color: #999;
  margin: 0;
}

/* ===== INFO CARD (sidebar) ===== */
.worker__info-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.worker__info-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0a3d62;
  margin: 0 0 14px 0;
}
.worker__info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.88rem;
}
.worker__info-row:last-child {
  border-bottom: none;
}
.worker__info-label {
  color: #888;
  font-weight: 600;
}
.worker__info-value {
  color: #333;
  font-weight: 700;
  text-align: right;
}

/* ===== RESPONSIVE ===== */
@media screen and (min-width: 600px) {
  .worker__hero-inner {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
  .worker__hero-info {
    align-items: flex-start;
  }
  .worker__meta {
    justify-content: flex-start;
  }
  .worker__rating-row {
    justify-content: flex-start;
  }
  .worker__hero-avatar img,
  .worker__hero-initials {
    width: 130px;
    height: 130px;
  }
  .worker__hero-initials {
    font-size: 3.5rem;
  }
  .worker__hero-btns {
    justify-content: flex-start;
  }
}

@media screen and (min-width: 768px) {
  .worker__hero {
    padding: 100px 40px 50px;
    align-items: flex-start;
  }
  .worker__back {
    left: 40px;
  }
  .worker__hero-inner {
    max-width: 100%;
  }
  .worker__body {
    padding: 40px 30px 80px;
  }
  .worker__card {
    padding: 28px 24px;
  }
}

@media screen and (min-width: 900px) {
  .worker__body {
    flex-direction: row;
    align-items: flex-start;
    padding: 40px 40px 80px;
    gap: 30px;
  }
  .worker__main {
    flex: 1;
    min-width: 0;
  }
  .worker__sidebar {
    width: 300px;
    flex-shrink: 0;
  }
  .worker__hero {
    padding: 100px 60px 50px;
  }
  .worker__back {
    left: 60px;
  }
}

@media screen and (min-width: 1024px) {
  .worker__name {
    font-size: 2.2rem;
  }
  .worker__sidebar {
    width: 340px;
  }
  .worker__body {
    padding: 50px 60px 100px;
    max-width: 1200px;
  }
}