/* ════════════════════════════════════════════
   NannyHub — index.css
   Warm Editorial Design System
   ════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #0F1821 0%, #1A2332 50%, #253547 100%);
}

/* ── Generic card hover ─────────────────── */
.card-hover {
  transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(26, 35, 50, 0.12);
}

/* ── Language toggle ────────────────────── */
[data-lang] { transition: opacity 0.2s; }


/* ════════════════════════════════════════════
   NANNY CARD  —  Photo-hero card style
   ════════════════════════════════════════════ */

/* ── Card shell ─────────────────────────── */
.nanny-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #E2DDD6;
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  cursor: default;
}

.nanny-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 44px -8px rgba(26, 35, 50, 0.17),
    0 8px 18px -4px rgba(26, 35, 50, 0.09);
  border-color: #8496A9;
}


/* ── Photo hero ─────────────────────────── */
.nanny-hero {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #253547 0%, #1A2332 100%);
  overflow: hidden;
  flex-shrink: 0;
}

.nanny-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Fallback initial when no photo */
.nanny-hero-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  opacity: 0.35;
}

/* Gradient overlay so text is readable */
.nanny-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(10, 14, 20, 0.78) 100%
  );
  pointer-events: none;
}

/* Name + area overlay */
.nanny-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 14px;
  z-index: 2;
}

.nanny-hero-name {
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.nanny-hero-area {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.82);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 3px;
}

/* "Online now" badge — top left */
.nanny-online-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.45);
}

.nanny-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bbf7d0;
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.8); }
}

/* First Aid cert badge — top right */
.nanny-cert-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.92);
  color: #15803d;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}


/* ── Card body ──────────────────────────── */
.nanny-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}


/* ── Price + rating row ─────────────────── */
.nanny-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nanny-price-text {
  font-size: 1.125rem;
  font-weight: 900;
  color: #C5623B;
  letter-spacing: -0.02em;
}

.nanny-price-unit {
  font-size: 0.75rem;
  font-weight: 500;
  color: #8496A9;
  letter-spacing: 0;
}

.nanny-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #92400e;
}


/* ── Experience line ────────────────────── */
.nanny-exp {
  font-size: 0.8125rem;
  color: #6B7280;
  font-weight: 500;
}


/* ── Available days ─────────────────────── */
.nanny-days-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nanny-days-label {
  font-size: 0.75rem;
  color: #6B7280;
  font-weight: 500;
}

.nanny-days-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.nanny-day-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 32px;
  min-height: 38px;
  border-radius: 8px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform 0.1s;
}

.nanny-day-chip.active {
  background: #1A2332;
  color: #ffffff;
}

.nanny-day-chip.inactive {
  background: #F3F4F6;
  color: #D1D5DB;
}

.nanny-day-chip svg {
  flex-shrink: 0;
}


/* ── Last Seen badge (shared with chat.css) ─ */
.ls-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ls-badge .ls-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ls-online .ls-dot  { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.25); }
.ls-offline .ls-dot { background: #9ca3af; }

.ls-online  { color: #16a34a; }
.ls-offline { color: #6b7280; }

/* Last seen row on nanny card */
.nanny-last-seen {
  margin-top: -2px;
}


/* ── Contact Nanny button ───────────────── */
.nanny-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px 18px;
  background: #1A2332;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 46px;
  margin-top: auto;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.18);
}

.nanny-contact-btn:hover {
  background: #253547;
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(26, 35, 50, 0.28);
}

.nanny-contact-btn:active {
  transform: scale(0.97);
  box-shadow: none;
}


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

/* xl: 4 columns — slightly smaller photo */
@media (min-width: 1280px) {
  .nanny-hero {
    aspect-ratio: 3 / 2;
  }
  .nanny-hero-name {
    font-size: 0.9375rem;
  }
  .nanny-day-chip {
    width: 28px;
    min-height: 34px;
    font-size: 0.5625rem;
  }
}

/* Mobile (< 640 px) */
@media (max-width: 639px) {

  #nannyGrid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .nanny-hero {
    aspect-ratio: 16 / 9;
  }

  .nanny-contact-btn {
    padding: 13px 16px;
    font-size: 0.9375rem;
    min-height: 50px;
    border-radius: 16px;
  }

  .nanny-day-chip {
    width: 30px;
    min-height: 36px;
  }
}
