/* assets/css/download.css - EXCLUSIVO PARA PÁGINA DE DOWNLOAD */

/* --- Variáveis e Utilitários Mágicos --- */
:root {
    --magic-primary: #10b981; /* Emerald 500 */
    --magic-secondary: #3b82f6; /* Blue 500 */
    --magic-accent: #8b5cf6; /* Violet 500 */
    --magic-dark: #0f172a; /* Slate 900 */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 15px rgba(16, 185, 129, 0.4);
    --neon-glow-soft: 0 0 10px rgba(16, 185, 129, 0.3), 0 0 20px rgba(16, 185, 129, 0.1);
}

.magic-text-gradient {
    background: linear-gradient(135deg, #34d399 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   SEÇÃO 1: ESTRUTURA HERO & CARDS
   ========================================= */

/* --- Background Mágico Animado --- */
.download-page-hero {
    background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
                #0f172a;
    position: relative;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
    animation: orbFloat 10s infinite alternate;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 30px); }
}

/* --- Cards de Vidro Premium (Usado na Download Page) --- */
.glass-card-premium {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-premium:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- Imagem do Produto (Original & Mágica) --- */
.product-showcase-img-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-showcase-img-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain; 
    display: block;
}

.product-showcase-img-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}

/* --- Badge de Versão Mágica --- */
.magic-version-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #60a5fa;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 20;
    text-transform: uppercase;
}

.magic-version-badge i {
    margin-right: 4px;
    color: #3b82f6;
}

/* --- Título Ajustado --- */
.product-title-adjusted {
    font-size: 22px !important;
    line-height: 1.4;
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* --- BOTÕES MÁGICOS (Voltar e Gerenciar) --- */
.btn-magic-back {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #e2e8f0;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-magic-back:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.6);
    color: white;
    transform: translateX(-3px);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.btn-magic-manage {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #ddd6fe;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.btn-magic-manage:hover {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), rgba(15, 23, 42, 0.8));
    border-color: #a78bfa;
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* --- BADGE VERIFICADO E SEGURO --- */
.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    animation: pulse-badge 3s infinite;
}

.secure-badge i {
    font-size: 1rem;
    filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.6));
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.4); border-color: rgba(16, 185, 129, 0.8); }
}

/* --- CARD DE DOWNLOAD & AVATAR --- */
.download-option-card {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-option-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    transform: scale(1.01);
}

/* --- AVATAR (FIXED) --- */
.magic-user-avatar {
    width: 46px;
    height: 46px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-inner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    z-index: 2; 
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    position: relative; 
}

/* Efeito Shine */
.avatar-inner::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 3;
    pointer-events: none;
    transition: none;
}

.magic-user-avatar:hover .avatar-inner::before {
    animation: shine-avatar 0.8s ease-in-out;
}

@keyframes shine-avatar {
    100% { left: 150%; }
}

.avatar-inner img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%;
}

.header-avatar-letter {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 1.1rem;
}

.avatar-ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #34d399; 
    border-right-color: #3b82f6;
    z-index: 1;
    animation: spin-avatar 2.5s linear infinite;
}

.magic-user-avatar::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    z-index: 0;
}

@keyframes spin-avatar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- BOTÃO BAIXAR MÁGIA PURA --- */
.btn-download-pure-magic {
    position: relative;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.8rem 1.8rem;
    border-radius: 0.75rem;
    border: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 10;
}

.btn-download-pure-magic::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-download-pure-magic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.btn-download-pure-magic:hover::before {
    left: 100%;
}

.btn-download-pure-magic i {
    font-size: 1.1rem;
}

/* =========================================
   SEÇÃO 2: PRELOADER ORBITAL (PÁGINA DE DOWNLOAD)
   ========================================= */

.loader-magic-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.orbital-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.orbital-ring.ring-1 {
    width: 100%; height: 100%;
    border-top-color: #10b981;
    border-bottom-color: #10b981;
    animation: spin-orbit 3s linear infinite;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.orbital-ring.ring-2 {
    width: 80%; height: 80%;
    border-left-color: #3b82f6;
    border-right-color: #3b82f6;
    animation: spin-orbit 2s linear infinite reverse;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.orbital-ring.ring-3 {
    width: 60%; height: 60%;
    border: 2px dashed rgba(139, 92, 246, 0.6);
    animation: spin-orbit 6s linear infinite;
}

.core-energy {
    width: 40%; height: 40%;
    background: radial-gradient(circle, #3b82f6 0%, #1e3a8a 100%);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    position: relative;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.core-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.5);
    animation: pulse-core 1.5s ease-out infinite;
}

@keyframes spin-orbit { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse-core { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes progress-slide { 0% { transform: translateX(-100%); } 50% { transform: translateX(0%); } 100% { transform: translateX(100%); } }

/* Partículas */
.particles-container { position: absolute; width: 100%; height: 100%; }
.particle { position: absolute; width: 4px; height: 4px; background: #34d399; border-radius: 50%; opacity: 0; }
.particle.p1 { top: 0; left: 50%; animation: float-p 2s ease-in infinite; }
.particle.p2 { top: 50%; right: 0; animation: float-p 2.5s ease-in infinite 0.5s; }
.particle.p3 { bottom: 0; left: 50%; animation: float-p 2s ease-in infinite 1s; }
.particle.p4 { top: 50%; left: 0; animation: float-p 2.5s ease-in infinite 1.5s; }

@keyframes float-p { 0% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1.5); } 100% { opacity: 0; transform: scale(0) translate(10px, -10px); } }

/* Animações Gerais (Compartilhadas) */
@keyframes slideUpFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-slide-up { animation: slideUpFade 0.6s ease-out forwards; }
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }