/* ═══════════════════════════════════════════
   HESABIM — Hasta Üyelik Portali
   ═══════════════════════════════════════════ */

/* Giriş yaparak erişin — ana sayfa kart kilidi ile aynı görünüm */
.hb-auth-lock {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 0;
}
.hb-auth-lock:not([hidden]) {
  display: block;
}
.hb-auth-lock .landing-card__lock {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
.hb-auth-lock__btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 8px 18px;
  border-radius: var(--radius);
  background: var(--navy, var(--clr-accent));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.hb-auth-lock__btn:hover {
  opacity: 0.9;
}
body.auth-lock .hb-hero,
body.auth-lock .hb-summary,
body.auth-lock .hb-tabs,
body.auth-lock .hb-main,
body.auth-lock .hb-footer,
body.auth-lock .hb-lightbox {
  display: none !important;
}

.hb-hero {
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
  background: linear-gradient(135deg, var(--clr-bg) 0%, rgba(201, 169, 110, 0.1) 100%);
}
.hb-hero__inner { max-width: 800px; margin: 0 auto; position: relative; }
.hb-back {
  position: absolute; left: 0; top: 0;
  font-size: .88rem; color: var(--clr-text-soft); text-decoration: none; transition: color .2s;
}
.hb-back:hover { color: var(--clr-accent); }

.hb-hero__title { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; margin-bottom: .4rem; }
.hb-hero__sub { font-size: .92rem; color: var(--clr-text-soft); }

/* Summary cards */
.hb-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; max-width: 800px; margin: -1rem auto 1.5rem; padding: 0 1.25rem;
}
.hb-stat {
  background: var(--clr-card); border-radius: var(--radius);
  padding: 16px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hb-stat__icon { font-size: 1.6rem; margin-bottom: 4px; }
.hb-stat__value { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; }
.hb-stat__label { font-size: .78rem; color: var(--clr-text-soft); margin-top: 2px; }

/* Tabs */
.hb-tabs {
  display: flex; gap: 4px; max-width: 800px; margin: 0 auto 1rem;
  padding: 0 1.25rem; overflow-x: auto; flex-wrap: nowrap;
}
.hb-tab {
  flex-shrink: 0; padding: 8px 16px; border-radius: var(--radius);
  border: none; background: var(--clr-pill); color: var(--clr-text-soft);
  font-size: .85rem; cursor: pointer; transition: all .2s;
  font-family: var(--font-body);
}
.hb-tab:hover { color: var(--clr-text); }
.hb-tab.active { background: var(--clr-accent); color: #fff; }

/* Panels */
.hb-main { max-width: 800px; margin: 0 auto; padding: 0 1.25rem 3rem; }

.hb-panel { display: none; }
.hb-panel.active { display: block; }

.hb-empty {
  text-align: center; padding: 3rem 1rem; color: var(--clr-text-soft);
}
.hb-empty__icon { font-size: 3rem; margin-bottom: 12px; opacity: .5; }

/* Treatment list */
.hb-treatment {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--clr-border);
}
.hb-treatment__dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 6px; flex-shrink: 0;
}
.hb-treatment__dot--completed { background: #27ae60; }
.hb-treatment__dot--planned { background: var(--clr-accent); }
.hb-treatment__dot--cancelled { background: #e74c3c; }
.hb-treatment__info { flex: 1; }
.hb-treatment__name { font-weight: 600; font-size: .92rem; margin-bottom: 2px; }
.hb-treatment__meta { font-size: .78rem; color: var(--clr-text-soft); display: flex; gap: 10px; flex-wrap: wrap; }
.hb-treatment__points { font-size: .78rem; color: var(--clr-accent); font-weight: 600; margin-top: 2px; }

/* Points log */
.hb-point-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--clr-border);
}
.hb-point-row__desc { font-size: .88rem; }
.hb-point-row__date { font-size: .75rem; color: var(--clr-text-soft); }
.hb-point-row__pts { font-weight: 700; font-size: .92rem; }
.hb-point-row__pts--earn { color: #27ae60; }
.hb-point-row__pts--spend { color: #e74c3c; }

/* Campaign cards */
.hb-campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.hb-campaign {
  background: var(--clr-card); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hb-campaign__img { width: 100%; height: 140px; object-fit: cover; background: var(--clr-pill); }
.hb-campaign__body { padding: 14px; }
.hb-campaign__title { font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.hb-campaign__desc { font-size: .82rem; color: var(--clr-text-soft); margin-bottom: 8px; line-height: 1.4; }
.hb-campaign__badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 600; background: var(--clr-accent); color: #fff;
}

/* Photo grid */
.hb-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.hb-photo {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 1;
  cursor: pointer; position: relative;
}
.hb-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hb-photo:hover img { transform: scale(1.05); }
.hb-photo__badge {
  position: absolute; top: 6px; left: 6px; padding: 2px 8px;
  border-radius: 12px; font-size: .7rem; font-weight: 600; color: #fff;
}
.hb-photo__badge--before { background: #e67e22; }
.hb-photo__badge--after { background: #27ae60; }
.hb-photo__badge--progress { background: #3498db; }
.hb-photo__badge--other { background: var(--clr-text-soft); }

/* Care tips */
.hb-care-card {
  background: var(--clr-card); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hb-care-card__header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hb-care-card__icon { font-size: 1.2rem; }
.hb-care-card__title { font-weight: 600; font-size: .92rem; }
.hb-care-card__time { font-size: .75rem; color: var(--clr-text-soft); margin-left: auto; }
.hb-care-card__msg { font-size: .85rem; line-height: 1.5; color: var(--clr-text-soft); }

.hb-panel__title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.hb-panel__desc { font-size: .9rem; color: var(--clr-text-soft); margin-bottom: 20px; }
.hb-skin-reports { display: flex; flex-direction: column; gap: 14px; }
.hb-skin-report-card {
  background: var(--clr-card); border-radius: var(--radius);
  padding: 16px; border: 1px solid var(--clr-border);
}
.hb-skin-report-card__date { font-size: .8rem; color: var(--clr-text-soft); margin-bottom: 6px; }
.hb-skin-report-card__summary { font-size: .9rem; line-height: 1.5; margin-bottom: 12px; color: var(--clr-text); }
.hb-skin-report-card .btn { margin-top: 4px; }

/* Loading */
.hb-loading { text-align: center; padding: 3rem 1rem; color: var(--clr-text-soft); }

/* Not linked state */
.hb-not-linked {
  text-align: center; padding: 3rem 1rem;
}
.hb-not-linked__icon { font-size: 3.5rem; margin-bottom: 16px; }
.hb-not-linked__title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.hb-not-linked__desc { font-size: .9rem; color: var(--clr-text-soft); max-width: 400px; margin: 0 auto; line-height: 1.5; }

/* Footer */
.hb-footer { text-align: center; padding: 1.5rem; font-size: .8rem; color: var(--clr-text-soft); border-top: 1px solid var(--clr-border); }

/* Responsive */
@media (max-width: 600px) {
  .hb-summary { grid-template-columns: 1fr 1fr; }
  .hb-campaign-grid { grid-template-columns: 1fr; }
}

/* Lightbox */
.hb-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  z-index: 1000; display: none; align-items: center; justify-content: center;
}
.hb-lightbox.active { display: flex; }
.hb-lightbox__close {
  position: absolute; top: 16px; right: 16px; font-size: 2rem;
  color: #fff; background: none; border: none; cursor: pointer;
}
.hb-lightbox__img { max-width: 90%; max-height: 90vh; border-radius: var(--radius); }
