/* ==========================================================
   support.css — BuzzChat Support Center Styles
   The Stellar Corp® · BuzzChat Corp®
   ========================================================== */

/* ----------------------------------------------------------
   SUPPORT PAGE LAYOUT
   ---------------------------------------------------------- */
.support-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 120px 40px 60px;
}

.support-container {
  max-width: 1080px;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   SUPPORT HEADER
   ---------------------------------------------------------- */
.support-header {
  text-align: center;
  margin-bottom: 40px;
}

.support-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  margin-bottom: 24px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c4b5fd;
}

.support-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.support-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   SEARCH BAR
   ---------------------------------------------------------- */
.support-search {
  max-width: 600px;
  margin: 0 auto 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: var(--transition);
}

.support-search:focus-within {
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.04);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.08);
}

.support-search i {
  color: var(--text-dim);
  font-size: 1rem;
}

.support-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.support-search input::placeholder {
  color: var(--text-dim);
}

/* ----------------------------------------------------------
   SECTION TITLES
   ---------------------------------------------------------- */
.support-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
}

/* ----------------------------------------------------------
   CATEGORIES GRID
   ---------------------------------------------------------- */
.support-categories {
  margin-bottom: 72px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.category-card:hover::before { opacity: 1; }

.category-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.ci-purple { background: rgba(124, 58, 237, 0.15); color: #c4b5fd; }
.ci-blue   { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.ci-pink   { background: rgba(236, 72, 153, 0.15); color: #f9a8d4; }
.ci-green  { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.ci-yellow { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.ci-cyan   { background: rgba(6, 182, 212, 0.15); color: #67e8f9; }
.ci-orange { background: rgba(249, 115, 22, 0.15); color: #fdba74; }
.ci-teal   { background: rgba(20, 184, 166, 0.15); color: #5eead4; }

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.category-card > p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 14px;
  position: relative;
}

.category-topics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.topic-item {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: var(--transition);
}

.topic-item:hover {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.15);
}

.topic-item[open] {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
}

.topic-item summary {
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: var(--transition);
}

.topic-item summary::-webkit-details-marker { display: none; }

.topic-item summary::before {
  content: '›';
  color: var(--accent-purple);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.topic-item[open] summary::before {
  transform: rotate(90deg);
}

.topic-item summary:hover {
  color: var(--text-primary);
}

.topic-answer {
  padding: 0 10px 10px 22px;
  animation: topicSlide 0.25s ease;
}

.topic-answer p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.topic-answer a {
  color: #c4b5fd;
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 181, 253, 0.3);
}

.topic-answer a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

@keyframes topicSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   CONTACT SECTION
   ---------------------------------------------------------- */
.support-contact {
  margin-bottom: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.support-contact-sub {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #c4b5fd;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--accent-purple), #5b21b6);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
  width: fit-content;
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.contact-response {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ----------------------------------------------------------
   STATUS SECTION
   ---------------------------------------------------------- */
.support-status {
  margin-bottom: 64px;
}

.status-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 18px;
  padding: 32px 36px;
  text-align: center;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6ee7b7;
  margin-bottom: 16px;
}

.status-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.status-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.status-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.status-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  color: #6ee7b7;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.status-link:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

/* ----------------------------------------------------------
   USEFUL LINKS
   ---------------------------------------------------------- */
.support-links {
  margin-bottom: 40px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.useful-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.useful-link:hover {
  border-color: var(--border-hover);
  background: rgba(124, 58, 237, 0.04);
  transform: translateX(4px);
}

.useful-link > i:first-child {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.useful-link div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.useful-link strong {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 700;
}

.useful-link span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.link-arrow {
  color: var(--text-dim);
  font-size: 0.75rem;
  transition: var(--transition);
}

.useful-link:hover .link-arrow {
  color: #c4b5fd;
  transform: translateX(4px);
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .support-page {
    padding: 100px 20px 40px;
  }

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

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

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

  .status-card {
    padding: 24px 20px;
  }
}

/* ==========================================================
   LIGHT THEME — Support Center
   ========================================================== */
[data-theme="light"] .support-search {
  background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .support-search:focus-within {
  background: rgba(124, 58, 237, 0.05);
}
[data-theme="light"] .support-search input { color: #1a1a2e; }

[data-theme="light"] .category-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .category-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .category-card h3 { color: #1a1a2e; }

[data-theme="light"] .topic-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .topic-item:hover {
  background: rgba(124, 58, 237, 0.05);
}
[data-theme="light"] .topic-item[open] {
  background: rgba(124, 58, 237, 0.06);
}
[data-theme="light"] .topic-item summary { color: #555577; }
[data-theme="light"] .topic-item summary:hover { color: #1a1a2e; }
[data-theme="light"] .topic-answer p { color: #666688; }
[data-theme="light"] .topic-answer a { color: #7c3aed; border-bottom-color: rgba(124,58,237,0.3); }

[data-theme="light"] .contact-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .contact-card h3 { color: #1a1a2e; }
[data-theme="light"] .contact-icon {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
}

[data-theme="light"] .status-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.03));
  border-color: rgba(16, 185, 129, 0.15);
}
[data-theme="light"] .status-card h3 { color: #1a1a2e; }
[data-theme="light"] .status-indicator { background: rgba(16, 185, 129, 0.08); color: #059669; }
[data-theme="light"] .status-link {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .useful-link {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .useful-link strong { color: #1a1a2e; }
[data-theme="light"] .useful-link > i:first-child {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
}
