﻿/**
 * New Psychic Profile Page Redesign (2026)
 * Based on client-provided reference HTML.
 * Used on single-profile.php
 */

.txp-psychic-profile-page {
  background: #f7f5f2;
  padding: 24px 12px 80px;
  color: #1a1a2e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.txp-psychic-profile-page .txp-pp-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── MAIN CARD ── */
.txp-pp-card {
  background: #fff;
  border: 1px solid #e4e0da;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.txp-pp-avatar-wrap {
  position: relative;
  width: 240px;
  flex-shrink: 0;
  aspect-ratio: 320 / 350;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.txp-pp-avatar {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 0;
}

.txp-pp-status-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(34,154,82,0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 10px;
  border-radius: 6px;
}

.txp-pp-play-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform .15s;
  color: #1a1a2e;
  padding: 0; /* content now inside .wp-exclude-emoji span */
  line-height: 1;
}
.txp-pp-play-btn:hover {
  transform: scale(1.08);
}

.txp-pp-info {
  flex: 1;
  min-width: 0;
}

.txp-pp-info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.txp-pp-verified {
  color: #229a52;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 2px;
}

.txp-pp-name {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.15;
  margin: 0;
}

.txp-pp-icon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.txp-pp-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #E4E0DA;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888;
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s, transform .15s;
  padding: 0 !important;
  margin: 0;
  line-height: 0 !important;
  font-size: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 3px rgba(26, 26, 46, .06);
  overflow: visible;
}
.txp-pp-icon-btn svg {
  width: 20px !important;
  height: 20px !important;
  display: block;
  overflow: visible;
  flex-shrink: 0;
}
.txp-pp-icon-btn:hover {
  color: #7C3AED;
  border-color: #DDD6FE;
  background: #F8F5FF;
}
.txp-pp-heart,
.txp-pp-heart path {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.txp-pp-icon-btn.wishlist-icon-only.is-active {
  color: #fff;
  background: #7C3AED;
  border-color: #7C3AED;
  box-shadow: 0 6px 16px rgba(124, 58, 237, .28);
}
.txp-pp-icon-btn.wishlist-icon-only.is-active .txp-pp-heart,
.txp-pp-icon-btn.wishlist-icon-only.is-active .txp-pp-heart path {
  fill: #fff !important;
  stroke: #fff !important;
}
.txp-pp-icon-btn.wishlist-icon-only.is-active .txp-pp-heart {
  animation: txp-heart-pop .28s ease;
}
.txp-pp-icon-btn.is-busy {
  opacity: .65;
  pointer-events: none;
}
@keyframes txp-heart-pop {
  0% { transform: scale(.82); }
  55% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

.txp-pp-usp-tag {
  display: inline-block;
  margin: 10px 0 14px;
  background: #fff9ec;
  border: 1px solid #fcd97a;
  color: #b85c00;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
}

.txp-pp-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.txp-pp-price-main {
  font-size: 26px;
  font-weight: 800;
  color: #229a52;
}

.txp-pp-price-old {
  font-size: 16px;
  color: #bbb;
  text-decoration: line-through;
}

.txp-pp-promo-note {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-bottom: 14px;
}

.txp-pp-cta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.txp-pp-btn-call {
  flex: 2;
  min-width: 160px;
  padding: 13px 20px;
  border-radius: 10px;
  border: none;
  background: #229a52;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: background .15s, transform .1s;
}
.txp-pp-btn-call:hover {
  background: #1a7d41;
  transform: translateY(-1px);
}
.txp-pp-btn-call span {
  font-size: 11px;
  font-weight: 400;
  color: #fff;
  opacity: 0.85;
  line-height: 1;
  margin-top: 2px;
}

.txp-pp-btn-appt {
  flex: 1;
  min-width: 120px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid #d35400;
  background: #fff8f3;
  color: #d35400;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.txp-pp-btn-appt:hover {
  background: #fff0e6;
}

/* Chat button is intentionally not shown per requirement (future June work) */
.txp-pp-btn-chat {
  display: none !important;
}

.txp-pp-confidential {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.txp-pp-meta-row {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #666;
  flex-wrap: wrap;
}
.txp-pp-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.txp-pp-meta-item strong {
  color: #1a1a2e;
  font-weight: 600;
}

/* ── WARM MERGED SECTION ── */
.txp-pp-warm-section {
  background: rgb(255,251,245);
  border: 1px solid rgb(235,228,218);
  border-radius: 16px;
  overflow: hidden;
}

.txp-pp-warm-inner {
  padding: 20px 24px;
}
.txp-pp-warm-inner + .txp-pp-warm-inner {
  border-top: 1px solid rgb(235,228,218);
}

.txp-pp-block-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #b07040;
  margin-bottom: 8px;
}

.txp-pp-block-body {
  font-size: 15px;
  color: #444;
  line-height: 1.65;
}
.txp-pp-block-body em {
  font-style: italic;
  color: #555;
  display: block; /* ensure it properly wraps rich content (About Me / Specialization / Reading Style now use <em> for consistent italic styling like Best For) */
}

.txp-pp-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.txp-pp-spec-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #444;
}
.txp-pp-spec-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #229a52;
  flex-shrink: 0;
}

/* ── REVIEWS CARD ── */
.txp-pp-reviews-card {
  background: #fff;
  border: 1px solid #e4e0da;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.txp-pp-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.txp-pp-reviews-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
}
.txp-pp-reviews-count {
  font-size: 13px;
  color: #888;
}

/* No reviews variant */
.txp-pp-review-cta-box {
  background: rgb(255,251,245);
  border: 1px solid rgb(235,228,218);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: center;
}
.txp-pp-review-cta-box p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
}
.txp-pp-review-cta-btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 8px;
  border: 1.5px solid #229a52;
  background: #fff;
  color: #229a52;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.txp-pp-review-cta-btn:hover {
  background: #f0faf4;
}

.txp-pp-reviews-note {
  font-size: 13px;
  color: #aaa;
  text-align: center;
  font-style: italic;
  padding-top: 12px;
  border-top: 1px solid #f0ede8;
}

/* Full reviews variant */
.txp-pp-reviews-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.txp-pp-reviews-score {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
}
.txp-pp-stars-row {
  display: flex;
  gap: 2px;
}
.txp-pp-star {
  color: #f5a623;
  font-size: 16px;
}
.txp-pp-reviews-total {
  font-size: 13px;
  color: #888;
}

/* Rating bars */
.txp-pp-rating-bars {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.txp-pp-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.txp-pp-bar-label {
  font-size: 12px;
  color: #666;
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}
.txp-pp-bar-track {
  flex: 1;
  height: 6px;
  background: #f0ede8;
  border-radius: 3px;
  overflow: hidden;
}
.txp-pp-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #f5a623;
}
.txp-pp-bar-count {
  font-size: 12px;
  color: #aaa;
  width: 28px;
  flex-shrink: 0;
  text-align: right;
}

/* Review list */
.txp-pp-review-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.txp-pp-review-item {
  padding: 18px 0;
  border-bottom: 1px solid #f0ede8;
}
.txp-pp-review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.txp-pp-review-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 12px;
}

.txp-pp-reviewer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.txp-pp-reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #229a52;
  flex-shrink: 0;
  text-transform: uppercase;
}

.txp-pp-reviewer-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}
.txp-pp-reviewer-date {
  font-size: 12px;
  color: #aaa;
  margin-top: 1px;
}

.txp-pp-review-stars {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
  font-size: 15px;
  color: #f5a623;
}

.txp-pp-review-topic {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #229a52;
  background: #f0faf4;
  border: 1px solid #c8ecd8;
  padding: 3px 9px;
  border-radius: 20px;
}

.txp-pp-review-text {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.txp-pp-verified-purchase {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #229a52;
  margin-top: 8px;
}

/* Leave review row */
.txp-pp-leave-review {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0ede8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.txp-pp-leave-review p {
  font-size: 14px;
  color: #666;
  margin: 0;
}
.txp-pp-leave-review-btn {
  padding: 9px 20px;
  border-radius: 8px;
  border: 1.5px solid #229a52;
  background: #fff;
  color: #229a52;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.txp-pp-leave-review-btn:hover {
  background: #f0faf4;
}

/* Mobile */
@media (max-width: 768px) {
  .txp-pp-card {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
  }
  .txp-pp-avatar-wrap {
    width: 100%;
    max-width: none;
    aspect-ratio: 320 / 350;
    border-radius: 0;
  }
  .txp-pp-avatar {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
  .txp-pp-info {
    padding: 16px 16px 20px;
  }
  .txp-pp-name {
    font-size: 22px;
  }
  .txp-pp-price-main {
    font-size: 22px;
  }
  .txp-pp-cta-row {
    flex-direction: column;
  }
  .txp-pp-btn-call,
  .txp-pp-btn-appt {
    flex: 1 1 auto;
    width: 100%;
  }
  .txp-pp-reviews-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .txp-pp-leave-review {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Badges under the psychic name - updated for new class names */
.txp-profile-badge-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 4px;
}
.txp-profile-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid;
  line-height: 1;
  white-space: nowrap;
}
.txp-profile-badge-1 {
  background: rgb(239, 246, 255);
  border-color: rgb(59, 130, 246);
  color: rgb(59, 130, 246);
}
.txp-profile-badge-2 {
  background: rgb(240, 250, 244);
  border-color: rgb(34, 154, 82);
  color: rgb(34, 154, 82);
}

.txp-pp-play-btn .wp-exclude-emoji {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

/* Share tooltip */
.txp-pp-share-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  background: #1a1a2e;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: none;
}
.txp-pp-share-tooltip.show {
  display: block !important;
}

/* Badges - use txp-pp- prefix to avoid conflict with existing .badge styles on site */
.txp-pp-badge-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.txp-pp-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid;
  line-height: 1;
  white-space: nowrap;
}
.txp-pp-badge-1 {
  background: rgb(239, 246, 255);
  border-color: rgb(59, 130, 246);
  color: rgb(59, 130, 246);
}
.txp-pp-badge-2 {
  background: rgb(240, 250, 244);
  border-color: rgb(34, 154, 82);
  color: rgb(34, 154, 82);
}

/* ============================================
.txp-pp-profile .review-text { font-size: 14px; color: #444; line-height: 1.6; }
.txp-pp-profile .verified-purchase {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #229a52; margin-top: 8px;
}

/* Leave review CTA */
.txp-pp-profile .leave-review {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid #f0ede8;
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
.txp-pp-profile .leave-review p { font-size: 14px; color: #666; }
.txp-pp-profile .leave-review-btn {
  padding: 9px 20px; border-radius: 8px;
  border: 1.5px solid #229a52; background: #fff;
  color: #229a52; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.txp-pp-profile .leave-review-btn:hover { background: #f0faf4; }

/* Badge row for badges under name */
.txp-pp-profile .badge-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.txp-pp-profile .badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid;
}
.txp-pp-profile .badge-1 {
  background: rgb(239, 246, 255);
  border-color: rgb(59, 130, 246);
  color: rgb(59, 130, 246);
}
.txp-pp-profile .badge-2 {
  background: rgb(240, 250, 244);
  border-color: rgb(34, 154, 82);
  color: rgb(34, 154, 82);
}

/* Mobile */
@media (max-width: 580px) {
  .txp-pp-profile .card { flex-direction: column; }
  .txp-pp-profile .avatar-wrap { width: 100%; }
  .txp-pp-profile .avatar { width: 100%; height: 280px; }
  .txp-pp-profile .leave-review { flex-direction: column; align-items: flex-start; }
  .txp-pp-profile .reviews-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
