<?php
require_once __DIR__ . '/includes/functions.php';
startSecureSession();
$pageTitle = 'Support - AdityaHost';
$metaDesc  = 'Get instant help for FamAPI: payment issues, integration support, billing questions. WhatsApp, Telegram, Instagram — choose your channel.';
$navActive = 'contact';
include __DIR__ . '/includes/public_header.php';
?>

<style>
.support-hero{background:linear-gradient(135deg,#0f0a1e 0%,#1a1040 40%,#2d1a6e 100%);padding:60px 0 50px;text-align:center;position:relative;overflow:hidden}
.support-hero::before{content:'';position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle at 30% 50%,rgba(163,112,252,0.08) 0%,transparent 50%);pointer-events:none}
.support-hero h1{font-size:2.2rem;font-weight:800;color:#fff;margin-bottom:10px;position:relative}
.support-hero p{color:rgba(255,255,255,0.6);font-size:1rem;max-width:500px;margin:0 auto;position:relative}

.support-wrap{max-width:1100px;margin:0 auto;padding:0 20px}

.channel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;margin-top:-30px;position:relative;z-index:2}

.channel-card{background:#fff;border-radius:16px;padding:24px;display:flex;gap:16px;align-items:flex-start;box-shadow:0 4px 24px rgba(0,0,0,0.08);transition:transform 0.2s,box-shadow 0.2s;text-decoration:none;color:inherit;border:1px solid rgba(0,0,0,0.04)}
.channel-card:hover{transform:translateY(-3px);box-shadow:0 8px 32px rgba(0,0,0,0.12)}
.channel-icon{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:1.4rem}
.channel-icon.green{background:linear-gradient(135deg,#25D366,#128C7E);color:#fff}
.channel-icon.blue{background:linear-gradient(135deg,#0088cc,#0066aa);color:#fff}
.channel-icon.pink{background:linear-gradient(135deg,#E4405F,#C13584);color:#fff}
.channel-icon.indigo{background:linear-gradient(135deg,#5865F2,#4752c4);color:#fff}
.channel-icon.purple{background:linear-gradient(135deg,#a370fc,#7c3aed);color:#fff}
.channel-body h3{font-size:1rem;font-weight:700;color:#1a1a2e;margin-bottom:4px}
.channel-body p{font-size:0.85rem;color:#64748b;margin:0 0 8px;line-height:1.5}
.channel-body .link{font-weight:600;font-size:0.9rem}
.channel-body .link.green{color:#25D366}
.channel-body .link.blue{color:#0088cc}
.channel-body .link.pink{color:#E4405F}
.channel-body .link.indigo{color:#5865F2}
.channel-body .link.purple{color:#a370fc}

.faq-section{margin-top:48px;margin-bottom:60px}
.faq-section h2{font-size:1.4rem;font-weight:800;color:#1a1a2e;text-align:center;margin-bottom:28px}
.faq-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.faq-card{background:#fff;border-radius:14px;padding:22px;box-shadow:0 2px 12px rgba(0,0,0,0.05);border:1px solid rgba(0,0,0,0.04)}
.faq-card h4{font-size:0.92rem;font-weight:700;color:#1a1a2e;margin-bottom:8px;display:flex;align-items:center;gap:8px}
.faq-card h4::before{content:'';width:6px;height:6px;border-radius:50%;background:#a370fc;flex-shrink:0}
.faq-card p{font-size:0.85rem;color:#64748b;line-height:1.6;margin:0}
.faq-card a{color:#a370fc;text-decoration:none;font-weight:500}
.faq-card a:hover{text-decoration:underline}

.cta-box{background:linear-gradient(135deg,#f8f5ff,#ede5ff);border-radius:16px;padding:32px;text-align:center;margin-top:40px;border:1px solid rgba(163,112,252,0.15)}
.cta-box h3{font-size:1.1rem;font-weight:700;color:#1a1a2e;margin-bottom:6px}
.cta-box p{font-size:0.88rem;color:#64748b;margin:0 0 16px}
.cta-box .btn{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,#a370fc,#7c3aed);color:#fff;padding:12px 28px;border-radius:10px;font-weight:600;font-size:0.9rem;text-decoration:none;transition:transform 0.2s,box-shadow 0.2s}
.cta-box .btn:hover{transform:translateY(-2px);box-shadow:0 4px 20px rgba(163,112,252,0.3)}

@media(max-width:640px){
  .support-hero{padding:40px 0 36px}
  .support-hero h1{font-size:1.6rem}
  .channel-grid{grid-template-columns:1fr;margin-top:-20px}
  .faq-grid{grid-template-columns:1fr}
}
</style>

<section class="support-hero">
  <div class="support-wrap">
    <h1>Support</h1>
    <p>Payment questions, integration help, billing issues — apna channel choose karo.</p>
  </div>
</section>

<div class="support-wrap">

  <div class="channel-grid">

    <a href="https://wa.me/917738733069" target="_blank" rel="noopener" class="channel-card">
      <div class="channel-icon green">
        <i class="fab fa-whatsapp"></i>
      </div>
      <div class="channel-body">
        <h3>WhatsApp</h3>
        <p>Instant reply. Order ID bhejo, minutes mein solution.</p>
        <span class="link green">+91 77387 33069</span>
      </div>
    </a>

    <a href="https://t.me/Aditya268" target="_blank" rel="noopener" class="channel-card">
      <div class="channel-icon blue">
        <i class="fab fa-telegram-plane"></i>
      </div>
      <div class="channel-body">
        <h3>Telegram</h3>
        <p>Quick questions, updates aur announcements.</p>
        <span class="link blue">@Aditya268</span>
      </div>
    </a>

    <a href="https://instagram.com/adityahost.in" target="_blank" rel="noopener" class="channel-card">
      <div class="channel-icon pink">
        <i class="fab fa-instagram"></i>
      </div>
      <div class="channel-body">
        <h3>Instagram</h3>
        <p>Offers, updates aur behind-the-scenes content.</p>
        <span class="link pink">@adityahost.in</span>
      </div>
    </a>

    <a href="https://discord.com/users/aditya_2006_19" target="_blank" rel="noopener" class="channel-card">
      <div class="channel-icon indigo">
        <i class="fab fa-discord"></i>
      </div>
      <div class="channel-body">
        <h3>Discord</h3>
        <p>Developer community aur real-time chat.</p>
        <span class="link indigo">@aditya_2006_19</span>
      </div>
    </a>

    <a href="docs.php" class="channel-card">
      <div class="channel-icon" style="background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff">
        <i class="fas fa-book"></i>
      </div>
      <div class="channel-body">
        <h3>Documentation</h3>
        <p>API docs, code examples aur integration guide.</p>
        <span class="link" style="color:#3b82f6">Read Docs</span>
      </div>
    </a>

  </div>

  <!-- FAQ Section -->
  <div class="faq-section">
    <h2>Common Questions</h2>
    <div class="faq-grid">

      <div class="faq-card">
        <h4>Payment done but not showing?</h4>
        <p>1-2 minute wait karo, phir refresh karo. Still pending? Order ID aur <b>UTR</b> WhatsApp pe bhejo — hum manually verify karenge.</p>
      </div>

      <div class="faq-card">
        <h4>API key kahan milega?</h4>
        <p><a href="register.php">Register</a> karo, dashboard mein <b>API Keys</b> section mein free trial key milegi.</p>
      </div>

      <div class="faq-card">
        <h4>Gmail connect kaise karun?</h4>
        <p>Dashboard → Integrations mein jaake FamPay Gmail aur App Password daal do. <a href="docs.php">Docs mein step-by-step guide hai</a>.</p>
      </div>

      <div class="faq-card">
        <h4>API integration help</h4>
        <p>Pehle <a href="docs.php">documentation</a> padho. Phir bhi issue ho toh apna <b>api key prefix</b> (pehle 6 chars) aur error bhejo.</p>
      </div>

      <div class="faq-card">
        <h4>Refund kaise milega?</h4>
        <p>Verification ke baad <b>24 hours</b> ke andar refund sender UPI pe ho jaata hai.</p>
      </div>

      <div class="faq-card">
        <h4>Response time kitna hai?</h4>
        <p>WhatsApp & Telegram: <b>few minutes</b> (10 AM - 10 PM IST).</p>
      </div>

    </div>
  </div>

  <!-- CTA -->
  <div class="cta-box">
    <h3>Ready to integrate?</h3>
    <p>2 API calls mein payment gateway ready. Free trial included.</p>
    <a href="register.php" class="btn"><i class="fas fa-rocket"></i> Get Started Free</a>
  </div>

</div>

<?php include __DIR__ . '/includes/public_footer.php'; ?>
