@extends('layouts.app')
@section('title', 'FAQ')
@section('meta_description', 'Frequently asked questions about TrollMasters.AI. Refund policy, anonymity guarantees, how campaigns work, what we can and cannot do, and more.')
@section('meta_keywords', 'troll masters faq, internet troll service questions, are troll services anonymous, troll for hire faq, online revenge service questions')
@section('og_title', 'TrollMasters.AI FAQ — Everything You Need to Know')

@push('schema')
@php
echo '<script type="application/ld+json">'.json_encode([
    '@context'   => 'https://schema.org',
    '@type'      => 'FAQPage',
    'mainEntity' => [
        ['@type'=>'Question','name'=>'Do you offer refunds?','acceptedAnswer'=>['@type'=>'Answer','text'=>'Absolutely not. We will always fulfill our end of the bargain but under no circumstances will there ever be a refund. We may issue credits or additional service time if warranted.']],
        ['@type'=>'Question','name'=>'Can I stop the trolling once it has started?','acceptedAnswer'=>['@type'=>'Answer','text'=>'You can stop us, but what is already done remains done. We will cease all activity within 12 hours of your request.']],
        ['@type'=>'Question','name'=>'Will you ever reveal my identity?','acceptedAnswer'=>['@type'=>'Answer','text'=>'We will NEVER release any of your information to anyone, for any reason, including law enforcement. We are not based in the USA and will not cooperate with any investigations.']],
        ['@type'=>'Question','name'=>'Why are you doing this?','acceptedAnswer'=>['@type'=>'Answer','text'=>'We are the equalizers. Bad karma does not work fast enough. We accelerate consequences for people who truly have it coming.']],
        ['@type'=>'Question','name'=>'Can you deny my project?','acceptedAnswer'=>['@type'=>'Answer','text'=>'Yes. We reserve the right to deny any project. If you are acting in bad faith or asking for something illegal, we will decline. We are very open but have boundaries.']],
    ],
], JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE).'</script>';
@endphp
@endpush

@section('content')

{{-- ── Hero ── --}}
<section class="relative overflow-hidden grid-bg py-14 sm:py-24">
    <div class="absolute inset-0 pointer-events-none">
        <div class="absolute top-0 left-1/2 -translate-x-1/2 w-[600px] h-[350px]" style="background:radial-gradient(ellipse,rgba(220,38,38,0.07) 0%,transparent 70%);"></div>
    </div>
    <div class="relative max-w-3xl mx-auto px-4 text-center">
        <div class="inline-flex items-center gap-2 bg-red-950/40 border border-red-900/40 rounded-full px-4 py-1.5 mb-6">
            <svg class="w-3 h-3 text-red-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
            <span class="section-label text-[10px]">Got Questions?</span>
        </div>
        <h1 class="font-display text-white troll-glow mb-4" style="font-size:clamp(60px,12vw,110px);line-height:1;">FAQ</h1>
        <p class="text-gray-400 text-xl leading-relaxed">Everything you need to know before you unleash the fury.</p>
    </div>
</section>

{{-- ── FAQ Accordion ── --}}
<section class="max-w-3xl mx-auto px-4 py-10 sm:py-16">
    @php
    $faqs = [
        [
            'icon' => 'M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z',
            'color' => 'text-green-400',
            'q' => 'Do you offer refunds?',
            'a' => 'Absolutely not. We have taken great care to ensure that we can provide this service in a manner that will never get back to you. We will always fulfill our end of the bargain — but under no circumstances will there ever be a refund. We are reasonable people, so if we feel that there is a basis that we could do more, we will always make it right — but it will be in the form of a CREDIT, or additional time or services on an existing campaign.'
        ],
        [
            'icon' => 'M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636',
            'color' => 'text-red-400',
            'q' => 'Can I stop the trolling once it has started?',
            'a' => 'Sure you can stop us, but that doesn\'t mean we will delete everything we have already done. Our services include leaving everything up. If you want us to stop, we will stop cold in our tracks — but what is done is done. Make sure you are ready for the aftermath before you enlist us. We will cease all trolling within 12 hours of receiving your request, give or take.'
        ],
        [
            'icon' => 'M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z',
            'color' => 'text-blue-400',
            'q' => 'Will you ever tell anybody I purchased your services?',
            'a' => 'We have taken great measures to ensure 100% privacy of all of our clients. We will NEVER release any of your info to anyone, for any reason — even law enforcement. We are not based in the USA and will not cooperate with any investigations. Regardless, DENY UNTIL YOU DIE and NEVER ADMIT you were involved — WE DON\'T EXIST!!!'
        ],
        [
            'icon' => 'M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z',
            'color' => 'text-yellow-400',
            'q' => 'Why are you doing this?',
            'a' => 'There are countless people in the world that have it coming to them and BAD KARMA just hasn\'t worked its magic yet. We are the equalizers, we are the protectors, we are the saviors. We are here to move karma along and ensure that the people that have it coming to them, get it as soon as possible.'
        ],
        [
            'icon' => 'M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z',
            'color' => 'text-orange-400',
            'q' => 'Can you deny my project?',
            'a' => 'If we feel that you are lying to us, trying to get us to do something illegal, or acting in bad faith, we will deny your project. WE RESERVE THE RIGHT TO DENY ANY PROJECT. If you are not sure, send us a message first. If you pay for services and we don\'t feel comfortable — don\'t worry, we will work it out. We will still get you your money\'s worth and then some.'
        ],
    ];
    @endphp

    <div class="space-y-3" id="faq-list">
        @foreach($faqs as $i => $faq)
        <div class="reveal faq-item rounded-2xl overflow-hidden" style="background:#111111;border:1px solid #1e1e1e;transition:border-color 0.2s;">
            <button
                onclick="toggleFaq(this)"
                class="w-full text-left px-6 py-5 flex items-center gap-4 focus:outline-none group"
            >
                <div class="w-9 h-9 rounded-xl flex items-center justify-center shrink-0" style="background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);">
                    <svg class="w-4 h-4 {{ $faq['color'] }}" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="{{ $faq['icon'] }}"/>
                    </svg>
                </div>
                <span class="text-white font-semibold flex-1 text-left leading-snug group-hover:text-red-300 transition-colors">{{ $faq['q'] }}</span>
                <svg class="faq-chevron w-4 h-4 text-gray-600 shrink-0 transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
                </svg>
            </button>
            <div class="faq-body overflow-hidden" style="max-height:0;transition:max-height 0.35s cubic-bezier(.4,0,.2,1);">
                <div class="px-6 pb-5 pl-[72px]">
                    <p class="text-gray-400 leading-relaxed text-sm">{{ $faq['a'] }}</p>
                </div>
            </div>
        </div>
        @endforeach
    </div>

    {{-- CTA --}}
    <div class="text-center pt-16 reveal">
        <div class="section-label mb-3">Still unsure?</div>
        <h2 class="font-display text-white mb-3" style="font-size:clamp(32px,5vw,56px);line-height:1.1;">HAVE MORE QUESTIONS?</h2>
        <p class="text-gray-500 mb-8 text-sm leading-relaxed max-w-md mx-auto">Reach out directly — we respond fast. Or just pick a package and let us handle the rest.</p>
        <div class="flex flex-col sm:flex-row gap-4 justify-center">
            <a href="{{ route('contact.index') }}" class="btn-outline inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl font-bold text-sm w-full sm:w-auto">
                <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/></svg>
                CONTACT US
            </a>
            <a href="{{ route('services.index') }}" class="btn-troll inline-flex items-center justify-center gap-2 text-white px-8 py-4 rounded-xl font-bold text-sm w-full sm:w-auto">
                <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/></svg>
                VIEW PACKAGES
            </a>
        </div>
    </div>
</section>

@push('scripts')
<script>
function toggleFaq(btn) {
    const item   = btn.closest('.faq-item');
    const body   = btn.nextElementSibling;
    const icon   = btn.querySelector('.faq-chevron');
    const isOpen = body.style.maxHeight && body.style.maxHeight !== '0px';

    // Close all
    document.querySelectorAll('.faq-item').forEach(el => {
        el.querySelector('.faq-body').style.maxHeight = '0px';
        el.querySelector('.faq-chevron').style.transform = '';
        el.style.borderColor = '#1e1e1e';
    });

    // Open clicked if it was closed
    if (!isOpen) {
        body.style.maxHeight = body.scrollHeight + 'px';
        icon.style.transform = 'rotate(180deg)';
        item.style.borderColor = 'rgba(220,38,38,0.35)';
    }
}
</script>
@endpush

@endsection
