{% extends "base.html" %}
{% block title %}Mega Plano - Viral Social Pro{% endblock %}
{% block nav_megaplano %}active{% endblock %}
{% block page_title %}Mega Plano{% endblock %}
{% block page_subtitle %}500+ funcionalidades, 100+ APIs, roadmap completo{% endblock %}

{% block content %}
<div class="space-y-6 animate-fade-up">
    <!-- Hero Card -->
    <div class="glass-card rounded-2xl p-6 md:p-8 text-center">
        <div class="inline-flex items-center justify-center w-16 h-16 rounded-2xl gradient-brand mb-4">
            <i data-lucide="rocket" class="w-8 h-8 text-white"></i>
        </div>
        <h1 class="text-2xl md:text-3xl font-extrabold text-white mb-2">MEGA PLANO <span class="text-gradient">VIRAL SOCIAL PRO 2026</span></h1>
        <p class="text-white/50 text-sm max-w-2xl mx-auto">Pesquisa de 400+ ferramentas e 100+ APIs do mercado. Plano completo com 500+ funcionalidades, pipeline de dark channels, TikTok Shop e roadmap de 12 meses.</p>
        <div class="flex flex-wrap justify-center gap-3 mt-5">
            <div class="glass-light rounded-xl px-4 py-2">
                <p class="text-lg font-bold text-brand-400">500+</p>
                <p class="text-[10px] text-white/40">Funcionalidades</p>
            </div>
            <div class="glass-light rounded-xl px-4 py-2">
                <p class="text-lg font-bold text-accent-pink">100+</p>
                <p class="text-[10px] text-white/40">APIs Mapeadas</p>
            </div>
            <div class="glass-light rounded-xl px-4 py-2">
                <p class="text-lg font-bold text-accent-cyan">400+</p>
                <p class="text-[10px] text-white/40">Ferramentas</p>
            </div>
            <div class="glass-light rounded-xl px-4 py-2">
                <p class="text-lg font-bold text-accent-green">6</p>
                <p class="text-[10px] text-white/40">Fases Roadmap</p>
            </div>
        </div>
    </div>

    <!-- Quick Nav -->
    <div class="glass-card rounded-2xl p-4" x-data="{ open: true }">
        <button @click="open = !open" class="flex items-center justify-between w-full text-left">
            <div class="flex items-center gap-3">
                <div class="w-8 h-8 rounded-lg gradient-ocean flex items-center justify-center">
                    <i data-lucide="list" class="w-4 h-4 text-white"></i>
                </div>
                <span class="font-bold text-white/90 text-sm">Navegacao Rapida</span>
            </div>
            <i data-lucide="chevron-down" class="w-4 h-4 text-white/40 transition-transform" :class="open && 'rotate-180'"></i>
        </button>
        <div x-show="open" x-transition class="mt-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-2">
            <a href="#parte-1-módulos-da-plataforma" class="glass-light rounded-xl px-4 py-3 hover:bg-brand-500/10 transition flex items-center gap-3">
                <i data-lucide="layers" class="w-4 h-4 text-brand-400"></i>
                <span class="text-sm text-white/70">Parte 1: 20 Modulos (500+ funcoes)</span>
            </a>
            <a href="#parte-2-apis-disponíveis-no-mercado" class="glass-light rounded-xl px-4 py-3 hover:bg-brand-500/10 transition flex items-center gap-3">
                <i data-lucide="plug" class="w-4 h-4 text-accent-pink"></i>
                <span class="text-sm text-white/70">Parte 2: APIs do Mercado</span>
            </a>
            <a href="#parte-3-dark-channels--vídeos-longos" class="glass-light rounded-xl px-4 py-3 hover:bg-brand-500/10 transition flex items-center gap-3">
                <i data-lucide="film" class="w-4 h-4 text-accent-cyan"></i>
                <span class="text-sm text-white/70">Parte 3: Dark Channels</span>
            </a>
            <a href="#parte-4-tiktok-shop--social-commerce" class="glass-light rounded-xl px-4 py-3 hover:bg-brand-500/10 transition flex items-center gap-3">
                <i data-lucide="shopping-bag" class="w-4 h-4 text-accent-orange"></i>
                <span class="text-sm text-white/70">Parte 4: TikTok Shop</span>
            </a>
            <a href="#parte-5-roadmap-de-implementação" class="glass-light rounded-xl px-4 py-3 hover:bg-brand-500/10 transition flex items-center gap-3">
                <i data-lucide="map" class="w-4 h-4 text-accent-green"></i>
                <span class="text-sm text-white/70">Parte 5: Roadmap 12 Meses</span>
            </a>
            <a href="#parte-6-modelo-de-negócio--monetização" class="glass-light rounded-xl px-4 py-3 hover:bg-brand-500/10 transition flex items-center gap-3">
                <i data-lucide="dollar-sign" class="w-4 h-4 text-yellow-400"></i>
                <span class="text-sm text-white/70">Parte 6: Monetizacao</span>
            </a>
        </div>
    </div>

    <!-- Markdown Content -->
    <div class="glass-card rounded-2xl p-4 md:p-8">
        <div class="mega-plano-content">
            {{ html_content|safe }}
        </div>
    </div>

    <!-- Back to top -->
    <div class="text-center pb-8">
        <a href="#" class="inline-flex items-center gap-2 px-6 py-3 rounded-xl gradient-brand text-white font-semibold text-sm hover:opacity-90 transition">
            <i data-lucide="arrow-up" class="w-4 h-4"></i>
            Voltar ao Topo
        </a>
    </div>
</div>

<style>
    .mega-plano-content {
        color: rgba(255,255,255,0.75);
        line-height: 1.8;
        font-size: 14px;
    }
    .mega-plano-content h1 {
        font-size: 1.75rem;
        font-weight: 800;
        color: #fff;
        margin: 2.5rem 0 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(124,58,237,0.2);
        background: linear-gradient(135deg, #a78bfa, #ec4899);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .mega-plano-content h1:first-child {
        margin-top: 0;
    }
    .mega-plano-content h2 {
        font-size: 1.35rem;
        font-weight: 700;
        color: #c4b5fd;
        margin: 2rem 0 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(124,58,237,0.1);
    }
    .mega-plano-content h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #a78bfa;
        margin: 1.5rem 0 0.5rem;
    }
    .mega-plano-content h4 {
        font-size: 1rem;
        font-weight: 600;
        color: #8b5cf6;
        margin: 1rem 0 0.5rem;
    }
    .mega-plano-content p {
        margin: 0.5rem 0;
    }
    .mega-plano-content strong {
        color: #fff;
        font-weight: 700;
    }
    .mega-plano-content em {
        color: #ec4899;
    }
    .mega-plano-content a {
        color: #7c3aed;
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    .mega-plano-content a:hover {
        color: #a78bfa;
    }
    .mega-plano-content ul, .mega-plano-content ol {
        margin: 0.5rem 0;
        padding-left: 1.5rem;
    }
    .mega-plano-content li {
        margin: 0.25rem 0;
    }
    .mega-plano-content ul li {
        list-style: disc;
    }
    .mega-plano-content ol li {
        list-style: decimal;
    }
    .mega-plano-content ul li::marker {
        color: #7c3aed;
    }
    .mega-plano-content ol li::marker {
        color: #7c3aed;
        font-weight: 700;
    }
    .mega-plano-content blockquote {
        border-left: 3px solid #7c3aed;
        padding: 0.75rem 1rem;
        margin: 1rem 0;
        background: rgba(124,58,237,0.08);
        border-radius: 0 12px 12px 0;
        color: rgba(255,255,255,0.6);
        font-style: italic;
    }
    .mega-plano-content code {
        background: rgba(124,58,237,0.15);
        color: #c4b5fd;
        padding: 2px 6px;
        border-radius: 6px;
        font-size: 13px;
        font-family: 'Fira Code', monospace;
    }
    .mega-plano-content pre {
        background: rgba(5,2,8,0.8);
        border: 1px solid rgba(124,58,237,0.15);
        border-radius: 12px;
        padding: 1rem;
        margin: 1rem 0;
        overflow-x: auto;
    }
    .mega-plano-content pre code {
        background: none;
        padding: 0;
        color: #e2e8f0;
    }
    .mega-plano-content table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin: 1rem 0;
        font-size: 13px;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(124,58,237,0.15);
    }
    .mega-plano-content thead {
        background: rgba(124,58,237,0.15);
    }
    .mega-plano-content th {
        padding: 10px 14px;
        text-align: left;
        font-weight: 700;
        color: #c4b5fd;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }
    .mega-plano-content td {
        padding: 10px 14px;
        border-top: 1px solid rgba(124,58,237,0.08);
        color: rgba(255,255,255,0.65);
    }
    .mega-plano-content tbody tr:hover {
        background: rgba(124,58,237,0.06);
    }
    .mega-plano-content hr {
        border: none;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(124,58,237,0.3), transparent);
        margin: 2rem 0;
    }
    .mega-plano-content input[type="checkbox"] {
        accent-color: #7c3aed;
        margin-right: 8px;
        width: 16px;
        height: 16px;
        vertical-align: middle;
    }

    @media (max-width: 768px) {
        .mega-plano-content { font-size: 13px; }
        .mega-plano-content h1 { font-size: 1.4rem; }
        .mega-plano-content h2 { font-size: 1.15rem; }
        .mega-plano-content h3 { font-size: 1rem; }
        .mega-plano-content table { font-size: 11px; display: block; overflow-x: auto; }
        .mega-plano-content th, .mega-plano-content td { padding: 6px 8px; }
    }
</style>
{% endblock %}
