/* TheraTest styles - Therafull theme compatible */
:root {
  --primary: #6a11cb;
  --secondary: #2575fc;
  --text: #2d3748;
  --muted: #718096;
  --bg-soft: #f8f9fa;
}

.theratest-hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, rgba(106,17,203,0.06), rgba(37,117,252,0.06));
}
.theratest-hero h1 {
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--text);
  margin-bottom: 12px;
}
.theratest-hero p {
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 12px; margin: 20px 0 10px; }
.primary-btn, .secondary-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 28px; font-weight: 700; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease; color: #fff;
}
.primary-btn { background: linear-gradient(45deg, var(--primary), var(--secondary)); }
.secondary-btn { background: linear-gradient(45deg, var(--secondary), var(--primary)); }
.primary-btn:hover, .secondary-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(106,17,203,.25); color:#fff; text-decoration:none; }
.hero-highlights { display:flex; gap:16px; padding:0; margin: 8px 0 0; list-style:none; color: var(--muted); }
.hero-highlights li i { color: var(--primary); margin-right:6px; }
.hero-illustration img { border-radius: 18px; box-shadow: 0 18px 60px rgba(0,0,0,.12); width: 100%; height: auto; position: relative; z-index: 1; }
.hero-illustration { position: relative; }
.quick-panel{
  position:absolute; inset:auto 12px 12px 12px; background:#ffffff; border-radius:16px; padding:14px; border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 28px rgba(0,0,0,.08); z-index: 3;
}
.qp-title{ font-weight:800; color:var(--text); margin-bottom:10px; display:flex; align-items:center; gap:8px; }
.qp-title i{ color:var(--primary); }
.qp-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.qp-chip{ border:none; background:linear-gradient(45deg, var(--primary), var(--secondary)); color:#fff; padding:8px 12px; border-radius:999px; font-weight:700; cursor:pointer; box-shadow:0 6px 18px rgba(106,17,203,.2); }
.qp-chip:hover{ transform: translateY(-1px); }
/* Chip'ler DOM sırasına göre görüntülensin */
.qp-mood{ background:var(--bg-soft); border-radius:12px; padding:10px; border:1px solid rgba(0,0,0,.04); }
.qp-mood label{ font-size:.9rem; color:var(--muted); margin-bottom:6px; display:block; }
.mood-row{ display:flex; align-items:center; gap:10px; }
.qp-add{ margin-top:8px; width:100%; border:none; background:#1a202c; color:#fff; padding:8px 10px; border-radius:10px; font-weight:700; }

.tests-grid.section { padding: 60px 0; background: #fff; }
.tests-grid .section-heading h2 { font-weight: 800; color: var(--text); }
.tests-grid .section-heading p { color: var(--muted); }

.test-card {
  display: block; position: relative; border-radius: 18px; background: var(--bg-soft); padding: 26px; text-decoration:none;
  border: 1px solid rgba(0,0,0,0.05); transition: all .25s ease; height: 100%; color: var(--text);
}
.test-card:hover{ background:#fff; transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.12); color: var(--text); }
.test-card .test-icon{ width:56px; height:56px; display:flex; align-items:center; justify-content:center; border-radius:14px; margin-bottom:14px;
  background: linear-gradient(45deg, var(--primary), var(--secondary)); color:#fff; font-size:22px; box-shadow: 0 8px 22px rgba(106,17,203,.25); }
.test-card h4{ font-weight: 700; margin-bottom: 8px; }
.test-card p{ color: var(--muted); margin-bottom: 10px; }
.test-card .coming-soon{ position:absolute; right:16px; top:16px; background:#111827; color:#fff; font-size:.75rem; padding:6px 10px; border-radius:999px; opacity:.85; }

.cta-section { padding: 40px 0 80px; background: linear-gradient(135deg, rgba(106,17,203,.06), rgba(37,117,252,.06)); }
.cta-box{ background:#fff; border-radius: 18px; padding: 26px; border:1px solid rgba(0,0,0,.06); box-shadow: 0 10px 32px rgba(0,0,0,.06); text-align:center; }
.cta-box h3{ font-weight:800; color: var(--text); margin-bottom: 8px; }
.cta-box p{ color: var(--muted); margin-bottom: 18px; }

/* Chat footer styles - sayfanın en altında (fixed değil) */
#footer { position: static; width: 100%; background: #1a202c; color: #cbd5e0; text-align: center; padding: 10px 0; z-index: 1; margin-top: 40px; }
#footer a { color: #cbd5e0; text-decoration: none; }
#footer a:hover { color: #fff; }

/* GAD-7 modal styles */
.gad7-modal{ border-radius:16px; overflow:hidden; }
.gad7-modal .modal-header{ background: linear-gradient(45deg, var(--primary), var(--secondary)); color:#fff; }
.gad7-form{ display:flex; flex-direction:column; gap:14px; }
.gad7-item{ background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:12px; padding:12px; }
.gad7-item.invalid{ border-color:#ef4444; box-shadow:0 0 0 2px rgba(239,68,68,.15) inset; }
.gad7-item .q{ font-weight:700; color:var(--text); display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.gad7-item .q-index{ width:26px; height:26px; border-radius:50%; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; font-size:.85rem; color:var(--primary); font-weight:800; }
.gad7-item .opts{ display:grid; grid-template-columns: repeat(4, 1fr); gap:8px; }
.gad7-item .opts.opts-7{ grid-template-columns: repeat(7, 1fr); }
.gad7-item .opt{ display:flex; align-items:center; gap:8px; background:#f8fafc; padding:8px 10px; border-radius:10px; border:1px solid rgba(0,0,0,.04); cursor:pointer; min-width:0; white-space:normal; word-break:break-word; }
.gad7-item .opt input{ accent-color: var(--primary); }
.gad7-result .result-box{ background:#f8fafc; border:1px solid rgba(0,0,0,.06); padding:14px; border-radius:12px; }
.gad7-result .score{ font-weight:800; color:var(--text); }
.gad7-result .severity{ margin-top:6px; }
.sev{ display:inline-block; padding:4px 10px; border-radius:999px; color:#fff; font-weight:700; font-size:.85rem; }
.sev-minimal{ background:#10b981; }
.sev-mild{ background:#3b82f6; }
.sev-moderate{ background:#f59e0b; }
.sev-moderatelysevere{ background:#f97316; }
.sev-severe{ background:#ef4444; }
/* Generic severities for other scales (e.g., CBI, CSI) */
.sev-low{ background:#10b981; }
.sev-high{ background:#ef4444; }

/* ECR-R nav */
.ecrr-nav{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:10px; }
.ecrr-progress{ font-weight:700; color:var(--text); }

@media (max-width: 768px) {
  .theratest-hero { padding: 90px 0 50px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-illustration { margin-top: 20px; min-height: 320px; overflow: hidden; border-radius: 18px; }
  .hero-illustration img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
  /* Mobilde de panel mavi görselin ÜZERİNDE kalsın */
  .quick-panel{ position:absolute; inset:auto 12px 12px 12px; margin-top:0; }
  /* Test seçeneklerini mobilde alt satıra geçir */
  .gad7-item .opts { grid-template-columns: repeat(2, 1fr); }
  .gad7-item .opts.opts-7 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 420px) {
  .gad7-item .opts { grid-template-columns: 1fr; }
  .gad7-item .opts.opts-7 { grid-template-columns: repeat(3, 1fr); }
}

/* Daha dar ekranlarda panel taşmasını engellemek için yüksekliği artır ve paneli sıkıştır */
@media (max-width: 420px) {
  .hero-illustration { min-height: 420px; }
  .quick-panel { padding: 12px; border-radius: 14px; }
  .qp-title { font-size: 1rem; }
  .qp-chip { padding: 6px 10px; font-size: 0.9rem; }
  .qp-mood { padding: 8px; }
}

@media (max-width: 360px) {
  .hero-illustration { min-height: 480px; }
  .qp-chip { font-size: 0.85rem; }
}


