/* =====================================================
   HW PROFILE — COMPACT APP FEEL + ORIGINAL COLORS
   Small • tight • modern • keeps gradients/icons
===================================================== */

/* ========================
   GLOBAL
======================== */
.hw-profile-page{
  font-size:12.5px;
  line-height:1.45;
  color:var(--hw-color-text-strong);
}
.hw-profile-page *{
  box-sizing:border-box;
}

/* ========================
   HERO
======================== */
.hw-profile-hero{
  background:linear-gradient(135deg,rgba(136,60,166,.18),rgba(41,124,56,.12));
  border-radius:var(--hw-radius-xl);
  padding:12px;
  color:var(--hw-color-text-strong);
  box-shadow:var(--hw-shadow-md);
  border:1px solid rgba(136,60,166,.12);
}
.hw-profile-page .hw-profile-hero{
  margin-bottom:12px;
  text-align:center;
}
.hw-profile-page .hw-profile-hero::after{
  content:"";
  display:block;
  width:40px;
  height:3px;
  background:var(--hw-color-secondary);
  border-radius:999px;
  margin:12px auto 0;
}
.hw-profile-page .hw-profile-title{
  margin:0 0 4px;
  font-size:14px;
  line-height:1.15;
  font-weight:800;
  color:var(--hw-color-text-strong);
  letter-spacing:-.02em;
  font-family:var(--hw-font-family-display);
}
.hw-profile-page .hw-profile-subtitle{
  margin:0 auto;
  text-align:center;
  font-size:11px;
  line-height:1.35;
  opacity:.82;
}

/* ========================
   CONTENT
======================== */
.hw-profile-page .hw-profile-content{
  margin-top:14px;
}
.hw-profile-page .hw-ai-profile{
  margin:0 auto;
}
.hw-profile-page .hw-profile{
  margin-bottom:18px;
}

/* ========================
   PROFILE CAP
======================== */
.profile-cap{
  background:#ffffff;
  border:1px solid rgba(136,60,166,.12);
  border-radius:var(--hw-radius-lg);
  margin-bottom:10px;
  padding:10px;
  box-shadow:var(--hw-shadow-sm);
}
.hw-profile-page .profile-title{
  margin:0 0 4px;
  font-size:13px;
  line-height:1.2;
  font-weight:800;
  color:var(--hw-color-primary);
  text-align:center;
}
.hw-profile-page .profile-subtitle{
  margin:0 auto;
  padding-bottom:0;
  text-align:center;
  font-size:11px;
  line-height:1.4;
  opacity:.84;
}

.hw-profile-page h2.hw-profile-title {
    font-size: 16px !important;
    text-align: center !important;
    text-transform: capitalize;
}

/* ========================
   EMPTY STATE
======================== */
.hw-profile-page .hw-profile-empty{
  background:var(--hw-app-surface);
  border:1px solid var(--hw-app-line);
  border-radius:var(--hw-radius-xl);
  box-shadow:var(--hw-app-shadow);
  padding:14px 12px;
  margin:30px auto 0;
  text-align:center;
}
.hw-profile-page .hw-profile-empty > p{
  margin:12px 0 16px;
  opacity:.85;
  font-size:12px;
}
.hw-profile-page .hw-profile-empty .hw-btn-primary{
  display:inline-block;
  margin-top:6px;
}
.hw-profile-page .hw-profile-empty small{
  display:block;
  margin-top:12px;
  opacity:.7;
  font-size:11px;
}

/* ========================
   PRIMARY BUTTON
======================== */
.hw-profile-page .hw-btn-primary{
  background-color:var(--hw-color-primary);
  color:#fff;
  border:none;
  border-radius:var(--hw-radius-lg);
  padding:10px 16px;
  cursor:pointer;
  transition:background-color .2s ease, transform .15s ease;
  box-shadow:var(--hw-shadow-md);
  font-size:12px;
  font-weight:700;
}
.hw-profile-page .hw-btn-primary:hover{
  background-color:var(--hw-color-primary-strong);
  transform:translateY(-1px);
}
.hw-profile-page .hw-btn-primary:disabled{
  opacity:.7;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

/* ========================
   MAIN PROFILE CARDS
======================== */
.hw-profile-page .hw-ai-profile .hw-card{
  background:var(--hw-app-surface);
  border:1px solid var(--hw-app-line);
  border-radius:var(--hw-radius-xl);
  box-shadow:var(--hw-app-shadow);
  padding:12px;
  margin-bottom:10px;
}

/* keep green priority card */
.hw-profile-page .hw-ai-profile .hw-card--priority{
  background:linear-gradient(174deg, #883ca6, #297c38);
  border:1px solid rgba(136,60,166,.48);
  border-left:4px solid #0f172a;
  color:#fff !important;
  box-shadow:var(--hw-shadow-md);
}

/* ========================
   TYPOGRAPHY
======================== */
.hw-profile-page .hw-ai-profile .section-title{
  margin-bottom:6px;
}
.section-title{
  font-size:12px;
  line-height:1.2;
  font-weight:800;
  text-align:center;
  color:var(--hw-color-text-strong);
  letter-spacing:-.01em;
}
.hw-profile-page .hw-ai-profile .section-subtitle{
  margin-bottom:5px;
  opacity:.78;
  font-size:11px;
  text-align:center;
}
.hw-profile-page .hw-ai-profile .paragraph{
  margin-bottom:7px;
  font-size:12px;
  line-height:1.5;
  color:var(--hw-color-text);
}
.hw-profile-page .hw-ai-profile .priority-title{
  margin:5px 0 7px;
  font-size:12.5px;
  line-height:1.25;
  font-weight:800;
  text-align:center;
}

/* ========================
   QUOTE / HIGHLIGHT
======================== */
.hw-profile-page .hw-ai-profile .quote{
  background:#f9fafb;
  border-left:4px solid var(--hw-color-primary);
  border-radius:var(--hw-radius-lg);
  padding:10px 11px;
  margin:8px 0;
  background-image:linear-gradient(to top,white,rgba(136,60,166,.18));
  text-align:center;
  font-size:11.5px;
  line-height:1.4;
  font-weight:600;
}
.hw-profile-page .hw-ai-profile .highlight{
  background:#fff;
  border-left:4px solid #f21010;
  border-radius:var(--hw-radius-lg);
  padding:9px 11px;
  margin-top:8px;
  color:#000;
  font-size:11.5px;
  line-height:1.42;
}

/* ========================
   PRIORITY LIST
======================== */
.hw-profile-page .hw-ai-profile .bullet-list{
  margin:8px 0 10px 0;
}
.hw-profile-page .hw-card--priority .bullet-list{
  list-style:none;
  padding:0;
  width:100%;
  max-width:520px;
  text-align:left;
  margin-left:auto;
  margin-right:auto;
}
.hw-profile-page .hw-card--priority .bullet-list li{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-bottom:6px;
  font-size:11.5px;
  line-height:1.42;
}
.hw-profile-page .hw-card--priority .bullet-list li::before{
  content:"";
  width:6px;
  height:10px;
  border-right:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(45deg);
  margin-top:2px;
  margin-left:2px;
  flex-shrink:0;
}

/* ========================
   ACTION BUTTONS
======================== */
.hw-profile-actions{
  margin-top:12px;
  padding-top:10px;
  border-top:1px dashed rgba(255,255,255,.25);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  align-items:center;
}
.hw-profile-btn{
  background:rgba(255,255,255,.14);
  color:#ffffff;
  border:1px solid rgba(255,255,255,.24);
  border-radius:10px;
  padding:9px 12px;
  font-size:11.5px;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  transition:all .18s ease;
  flex:1 1 145px;
  max-width:205px;
  text-align:center;
  box-shadow:none;
}
.hw-profile-btn:hover{
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.35);
  transform:translateY(-1px);
}

/* ========================
   SECTION HEADERS
======================== */
.hw-intelligence-section,
.hw-alignment-section{
  margin-top:16px;
}
.intelligence-title,
.alignment-title{
  text-align:center;
  margin-bottom:10px;
}
.intelligence-title h2,
.alignment-title h2{
  margin:0 0 4px;
  font-size:14px;
  line-height:1.2;
  font-weight:800;
  color:#111827;
  letter-spacing:-.02em;
}
.intelligence-title p,
.alignment-title p{
  margin:0;
  font-size:11px;
  line-height:1.35;
  opacity:.76;
}

/* ========================
   INTELLIGENCE GRID
======================== */
.hw-card-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.hw-intel-card{
  background:#ffffff;
  border-radius:14px;
  padding:11px;
  border:1px solid rgba(0,0,0,.05);
  box-shadow:0 4px 12px rgba(15,23,42,.04);
}
.hw-intel-header{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-bottom:7px;
}
.hw-intel-icon{
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  font-size:16px;
  line-height:1;
  margin-top:1px;
  flex-shrink:0;
}
.hw-intel-header h4{
  margin:0;
  font-size:12.5px;
  line-height:1.25;
  font-weight:800;
  color:#111827;
}
.hw-intel-body{
  opacity:.9;
}
.hw-intel-body p{
  margin:0;
  font-size:12px;
  line-height:1.5;
}

/* keep original colored tones */
.hw-card-risk{
  border-left:4px solid #d9534f;
}
.hw-card-risk .hw-intel-icon::before{
  content:"\f071";
  color:#d9534f;
}
.hw-intel-card.hw-card-risk{
  background:linear-gradient(to top, white, #ffc0cb59);
}

.hw-card-opportunity{
  border-left:4px solid #297c38;
}
.hw-card-opportunity .hw-intel-icon::before{
  content:"\f0eb";
  color:#297c38;
}
.hw-intel-card.hw-card-opportunity{
  background:linear-gradient(to top, white, #cbffc059);
}

.hw-card-strength{
  border-left:4px solid #3b82f6;
}
.hw-card-strength .hw-intel-icon::before{
  content:"\f164";
  color:#3b82f6;
}
.hw-intel-card.hw-card-strength{
  background:linear-gradient(to top, white, #c0c4ff59);
}

.hw-card-weakness{
  border-left:4px solid #f59e0b;
}
.hw-card-weakness .hw-intel-icon::before{
  content:"\f06a";
  color:#f59e0b;
}
.hw-intel-card.hw-card-weakness{
  background:linear-gradient(to top, white, #f9e2a059);
}

/* ========================
   ALIGNMENT GRID
======================== */
.hw-alignment-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.hw-align-card{
  background:#ffffff;
  border-radius:14px;
  padding:11px;
  border:1px solid rgba(0,0,0,.05);
  box-shadow:0 4px 12px rgba(15,23,42,.04);
}
.hw-align-header{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-bottom:7px;
}
.hw-align-icon{
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  font-size:16px;
  line-height:1;
  margin-top:1px;
  flex-shrink:0;
}
.hw-align-header h4{
  margin:0;
  font-size:12.5px;
  line-height:1.25;
  font-weight:800;
  color:#111827;
}
.hw-align-body{
  opacity:.9;
}
.hw-align-body p{
  margin:0;
  font-size:12px;
  line-height:1.5;
}

/* keep original colored tones */
.hw-card-mindset{
  border-left:4px solid #6366f1;
  background:linear-gradient(to top, white, #e0e7ff70);
}
.hw-card-mindset .hw-align-icon::before{
  content:"\f5dc";
  color:#6366f1;
}

.hw-card-habits{
  border-left:4px solid #0ea5e9;
  background:linear-gradient(to top, white, #dbeafe70);
}
.hw-card-habits .hw-align-icon::before{
  content:"\f0ae";
  color:#0ea5e9;
}

.hw-card-recommend{
  border-left:4px solid #22c55e;
  background:linear-gradient(to top, white, #dcfce770);
}
.hw-card-recommend .hw-align-icon::before{
  content:"\f201";
  color:#22c55e;
}

.hw-card-coach{
  border-left:4px solid #a855f7;
  background:linear-gradient(to top, white, #f3e8ff70);
}
.hw-card-coach .hw-align-icon::before{
  content:"\f4ad";
  color:#a855f7;
}

/* ========================
   MOBILE
======================== */
@media (max-width:767px){
  .hw-profile-page{
    font-size:12px;
  }

  .hw-profile-page .hw-profile-title{
    font-size:15px;
  }

  .section-title{
    font-size:12px;
  }

  .hw-profile-page .hw-ai-profile .hw-card,
  .hw-intel-card,
  .hw-align-card{
    padding:10px;
  }

  .hw-profile-actions{
    flex-direction:column;
    gap:8px;
  }

  .hw-profile-btn{
    width:100%;
    max-width:none;
  }
  /* ========================
   ACTIONS — MOBILE FIX
/* =====================================================
   HW Profile – 3 Action Buttons Row (Clean & Modern)
   ===================================================== */

/* Desktop: keep current stacked or wrapped behavior if you want,
   but we only change mobile below */

/* Make buttons INLINE (horizontal side-by-side) on mobile ONLY */
  .hw-profile-actions {
    flex-direction: row !important;     /* forces horizontal */
    flex-wrap: wrap;                    /* allows wrapping if screen is very narrow */
    gap: 6px;                          /* slightly tighter gap for mobile */
    justify-content: center;
  }

  .hw-profile-btn {
    flex: 1 1 30%;                      /* ~3 buttons per row on most phones */
    min-width: 0;
    max-width: none;
    width: auto;
    padding: 10px 8px;                 /* comfortable size that still fits */
    font-size: 11px;                 /* slightly smaller text if needed */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
}

/* ========================
   DESKTOP
======================== */
@media (min-width:768px){
  .hw-profile-hero{
    border-radius:17px;
    padding:14px 16px;
  }

  .hw-profile-page .hw-profile-title{
    font-size:18px;
  }

  .hw-profile-page .hw-profile-subtitle{
    font-size:11.5px;
  }

  .profile-cap{
    padding:11px 12px;
    border-radius:var(--hw-radius-lg);
  }

  .hw-profile-page .profile-title{
    font-size:13.5px;
  }

  .hw-profile-page .profile-subtitle{
    font-size:11.5px;
  }

  .hw-profile-page .hw-ai-profile .hw-card{
    padding:13px 14px;
    border-radius:15px;
  }

  .section-title{
    font-size:13px;
  }

  .hw-profile-page .hw-ai-profile .paragraph,
  .hw-intel-body p,
  .hw-align-body p{
    font-size:12.25px;
  }

  .hw-card-grid,
  .hw-alignment-grid{
    grid-template-columns:1fr 1fr;
    gap:12px;
  }

  .hw-intel-card,
  .hw-align-card{
    padding:12px;
    border-radius:15px;
  }
}

/* =====================================================
   HOUSEHOLD PROFILE TABS (APP FEEL)
===================================================== */

/* WRAPPER */
.hw-household-profiles {
  margin-top: 8px;
}


/* ========================
   TAB BAR (HORIZONTAL SCROLL)
======================== */
.hw-profile-tabs {
  display: flex;
  gap: 6px;

  overflow-x: auto;
  flex-wrap: nowrap;

  padding-bottom: 4px;
  margin-bottom: 10px;

  -webkit-overflow-scrolling: touch;
}

.hw-profile-tabs::-webkit-scrollbar {
  display: none;
}


/* ========================
   TAB BUTTON (LIKE CHIP / APP ITEM)
======================== */
.hw-profile-tab-btn {
  flex: 0 0 auto;
  white-space: nowrap;

  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;

  border-radius: 10px;
  border: 1px solid #f1f5f9;

  background: #ffffff;
  color: #0f172a;

  cursor: pointer;
  transition: all 0.15s ease;

  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* subtle hover */
.hw-profile-tab-btn:hover {
  background: #fafafa;
}


/* ========================
   ACTIVE TAB (BRAND FEEL)
======================== */
.hw-profile-tab-btn.active {
  background: linear-gradient(135deg, #883ca6, #a855f7);
  color: #ffffff;
  border-color: transparent;

  box-shadow: 0 4px 10px rgba(136, 60, 166, 0.25);
}


/* ========================
   TAB PANELS
======================== */
.hw-profile-tab-panel {
  display: none;
}

.hw-profile-tab-panel.active {
  display: block;
}


/* ========================
   SMOOTH TRANSITION (OPTIONAL NICE TOUCH)
======================== */
.hw-profile-tab-panel {
  animation: hwFadeIn 0.2s ease;
}

@keyframes hwFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
