/* =========================================================
   Helpdesk Page
   File: assets/css/helpdesk-page.css
========================================================= */

#tc-helpdesk-root{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: #fff;
}

.entry-content #tc-helpdesk-root,
.wp-block-group #tc-helpdesk-root{
  max-width: none !important;
}

/* Hero */
.tc-help-hero{
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.10), transparent 32%),
    radial-gradient(circle at bottom right, rgba(236,72,153,.08), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.tc-help-hero__inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px){
  .tc-help-hero__inner{
    grid-template-columns: 1.08fr .92fr;
    gap: 40px;
  }
}

.tc-help-eyebrow{
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 6px 12px;
  background: #eff6ff;
  color: #175cd3;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.tc-help-hero__title{
  margin: 0;
  color: #111827;
  font-size: 36px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

@media (min-width: 768px){
  .tc-help-hero__title{
    font-size: 48px;
  }
}

.tc-help-hero__desc{
  margin-top: 18px;
  max-width: 760px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
}

.tc-help-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.tc-help-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 9999px;
  padding: 0 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.tc-help-btn:hover{
  transform: translateY(-1px);
}

.tc-help-btn--primary{
  background: #111827;
  color: #fff;
}

.tc-help-btn--primary:hover{
  background: #1f2937;
}

.tc-help-btn--secondary{
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
}

.tc-help-btn--secondary:hover{
  background: #f9fafb;
}

.tc-help-hero-card{
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, #eff6ff 0%, #fdf2f8 100%);
  box-shadow: 0 24px 80px rgba(15,23,42,.10);
  border: 1px solid rgba(255,255,255,.7);
}

.tc-help-hero-card img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Quick cards */
.tc-help-quick{
  background: #fff;
}

.tc-help-quick__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px){
  .tc-help-quick__grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tc-help-mini-card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.tc-help-mini-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(15,23,42,.08);
}

.tc-help-mini-card__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #eff6ff;
  color: #175cd3;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
}

.tc-help-mini-card h3{
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  color: #111827;
  font-weight: 700;
}

.tc-help-mini-card p{
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.75;
}

/* Section head */
.tc-help-section-head{
  margin-bottom: 28px;
}

.tc-help-section-head--center{
  text-align: center;
}

.tc-help-section-kicker{
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 6px 12px;
  background: #eff6ff;
  color: #175cd3;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.tc-help-section-title{
  margin: 0;
  color: #111827;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tc-help-section-desc{
  margin: 14px 0 0;
  max-width: 860px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.8;
}

.tc-help-section-head--center .tc-help-section-desc{
  margin-left: auto;
  margin-right: auto;
}

/* Contact cards */
.tc-help-contact{
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.tc-help-contact__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px){
  .tc-help-contact__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px){
  .tc-help-contact__grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tc-help-contact-card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 16px 44px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.tc-help-contact-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(15,23,42,.08);
}

.tc-help-contact-card--highlight{
  background: linear-gradient(135deg, #111827 0%, #1d4ed8 100%);
  border-color: transparent;
}

.tc-help-contact-card__badge{
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 6px 12px;
  background: #eff6ff;
  color: #175cd3;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.tc-help-contact-card--highlight .tc-help-contact-card__badge{
  background: rgba(255,255,255,.16);
  color: #fff;
}

.tc-help-contact-card h3{
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  color: #111827;
  font-weight: 700;
}

.tc-help-contact-card--highlight h3{
  color: #fff;
}

.tc-help-contact-card__value{
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
  color: #175cd3;
  font-weight: 800;
  word-break: break-word;
}

.tc-help-contact-card--highlight .tc-help-contact-card__value{
  color: #fff;
}

.tc-help-contact-card__desc{
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #6b7280;
}

.tc-help-contact-card--highlight .tc-help-contact-card__desc{
  color: rgba(255,255,255,.82);
}

/* QR / download */
.tc-help-qr{
  background: #fff;
}

.tc-help-qr__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1024px){
  .tc-help-qr__grid{
    grid-template-columns: 1fr 1fr 1.2fr;
    align-items: stretch;
  }
}

.tc-help-qr-card,
.tc-help-download-card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 16px 44px rgba(15,23,42,.06);
}

.tc-help-qr-card__image{
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #f9fafb;
  margin-bottom: 16px;
}

.tc-help-qr-card__image img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tc-help-qr-card h3,
.tc-help-download-card h3{
  margin: 0 0 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 700;
}

.tc-help-qr-card p,
.tc-help-download-card p{
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.8;
}

.tc-help-download-card__stores{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.tc-store-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 8px 14px;
  background: #111827;
  border-radius: 14px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}

.tc-store-btn:hover{
  transform: translateY(-1px);
  background: #1f2937;
}

.tc-store-btn img{
  display: block;
  max-height: 36px;
  width: auto;
}

/* Visual section */
.tc-help-visual{
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.tc-help-visual__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1024px){
  .tc-help-visual__grid{
    grid-template-columns: .8fr 1.2fr;
  }
}

.tc-help-visual-card{
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 44px rgba(15,23,42,.06);
}

.tc-help-visual-card img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* FAQ */
.tc-help-faq{
  background: #fff;
}

.tc-help-faq__list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.tc-help-faq-item{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: 0 12px 32px rgba(15,23,42,.05);
}

.tc-help-faq-item h3{
  margin: 0 0 10px;
  color: #111827;
  font-size: 20px;
  font-weight: 700;
}

.tc-help-faq-item p{
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.8;
}

/* Dark mode */
.dark #tc-helpdesk-root{
  background: transparent;
}

.dark .tc-help-hero{
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(236,72,153,.10), transparent 30%),
    linear-gradient(180deg, rgba(17,24,39,1) 0%, rgba(15,23,42,1) 100%);
}

.dark .tc-help-quick,
.dark .tc-help-contact,
.dark .tc-help-qr,
.dark .tc-help-visual,
.dark .tc-help-faq{
  background: transparent;
}

.dark .tc-help-hero__title,
.dark .tc-help-section-title,
.dark .tc-help-mini-card h3,
.dark .tc-help-contact-card h3,
.dark .tc-help-qr-card h3,
.dark .tc-help-download-card h3,
.dark .tc-help-faq-item h3{
  color: rgba(255,255,255,.92);
}

.dark .tc-help-hero__desc,
.dark .tc-help-section-desc,
.dark .tc-help-mini-card p,
.dark .tc-help-contact-card__desc,
.dark .tc-help-qr-card p,
.dark .tc-help-download-card p,
.dark .tc-help-faq-item p{
  color: rgba(255,255,255,.72);
}

.dark .tc-help-mini-card,
.dark .tc-help-contact-card,
.dark .tc-help-qr-card,
.dark .tc-help-download-card,
.dark .tc-help-visual-card,
.dark .tc-help-faq-item{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}

.dark .tc-help-btn--secondary{
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}

.dark .tc-help-btn--secondary:hover{
  background: rgba(255,255,255,.10);
}

.dark .tc-help-contact-card__value{
  color: #93c5fd;
}

.dark .tc-help-contact-card--highlight{
  background: linear-gradient(135deg, rgba(37,99,235,.9) 0%, rgba(17,24,39,.95) 100%);
}

/* Accessibility / motion */
.tc-help-btn:focus-visible,
.tc-store-btn:focus-visible{
  outline: 2px solid rgba(105, 56, 239, 0.95);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce){
  .tc-help-btn,
  .tc-store-btn,
  .tc-help-mini-card,
  .tc-help-contact-card{
    transition: none;
  }

  .tc-help-btn:hover,
  .tc-store-btn:hover,
  .tc-help-mini-card:hover,
  .tc-help-contact-card:hover{
    transform: none;
  }
}