/* ─────────────────────────────────────────────
   Support Page — extends styles.css
   ───────────────────────────────────────────── */

/* ── Layout override ── */
.support-shell {
  grid-template-columns: 1.05fr 0.95fr;
}

/* ── Brand panel tweaks ── */
.support-brand-panel {
  position: relative;
  overflow: hidden;
  gap: 0;
  justify-content: flex-start;
}

.brand-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: auto;
}

.brand-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  width: fit-content;
  flex-direction: row-reverse;
}

.brand-back svg {
  transform: rotate(180deg);
  flex-shrink: 0;
}

.brand-back:hover {
  color: rgba(255, 255, 255, 0.95);
}

.brand-copy {
  margin-top: 48px;
  margin-bottom: 40px;
}

.brand-copy h1 {
  font-size: clamp(2.4rem, 3.5vw, 4rem);
  line-height: 1.18;
  font-weight: 700;
}

.brand-copy h1 em {
  font-style: normal;
  color: var(--accent);
  display: inline-block;
  position: relative;
}

.brand-copy h1 em::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.5;
}

/* ── Stats strip ── */
.support-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

.stat-card {
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* ── Decorative rings ── */
.brand-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.brand-top,
.brand-copy,
.support-stats {
  position: relative;
  z-index: 1;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(226, 197, 8, 0.15);
}

.deco-ring--1 {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: -80px;
}

.deco-ring--2 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: -20px;
  border-color: rgba(226, 197, 8, 0.22);
}

.deco-ring--3 {
  width: 80px;
  height: 80px;
  bottom: 30px;
  left: 60px;
  background: rgba(226, 197, 8, 0.08);
  border-color: transparent;
}

/* ────────────────────────────────────────────
   Content Panel
   ──────────────────────────────────────────── */
.support-content-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  overflow-y: auto;
  gap: 28px;
}

/* ── Contact Card ── */
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--primary);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(226, 197, 8, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card__body {
  flex: 1;
  min-width: 0;
}

.contact-card__label {
  margin: 0 0 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.56);
}

.contact-card__email {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s ease;
}

.contact-card__email:hover {
  color: #f0d620;
}

.contact-card__note {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.contact-card__cta {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(226, 197, 8, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
  transform: rotate(180deg);
}

.contact-card__cta:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

/* ── Topic Buttons ── */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.topic-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.topic-btn:hover {
  border-color: var(--primary);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.topic-btn.active {
  border-color: var(--accent);
  background: rgba(226, 197, 8, 0.07);
}

.topic-btn__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.topic-btn:hover .topic-btn__icon,
.topic-btn.active .topic-btn__icon {
  background: var(--primary);
  color: var(--accent);
}

/* ── FAQ Section ── */
.faq-section__title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--primary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: rgba(15, 23, 42, 0.28);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  text-align: right;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.faq-q:hover {
  color: var(--primary);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding 0.28s ease;
}

.faq-a:not([hidden]) {
  padding: 0 18px 16px;
  max-height: 400px;
}

.faq-a p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--muted);
}

.faq-a a {
  color: var(--primary);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ── Footer note ── */
.support-footer-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
  text-align: center;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.support-footer-note a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  transition: color 0.2s ease;
}

.support-footer-note a:hover {
  color: var(--primary-dark);
}

/* ──────────────────────────────────────────────
   Entrance animations
   ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact-card,
.topics-grid,
.faq-section,
.support-footer-note {
  animation: fadeUp 0.5s ease both;
}

.contact-card           { animation-delay: 0.08s; }
.topics-grid            { animation-delay: 0.16s; }
.faq-section            { animation-delay: 0.24s; }
.support-footer-note    { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .topics-grid,
  .faq-section,
  .support-footer-note {
    animation: none;
  }
}

/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .support-shell {
    grid-template-columns: 1fr;
  }

  .support-content-panel {
    padding: 28px 20px;
  }

  .support-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-num {
    font-size: 1.3rem;
  }

  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .support-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 12px 8px;
  }

  .topics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-card {
    flex-wrap: wrap;
  }
}
