/* =========================================
   1. RESET E BASE
   ========================================= */
:root {
    --ig-primary: #dc2743;
    --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --bg-color: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    line-height: 1.6; 
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul, ol { list-style: none; }

/* =========================================
   2. HEADER (TOPO PRETO PREMIUM)
   ========================================= */
.nav-header { 
    background: #000000; /* Menu Totalmente Preto */
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); 
    position: sticky; top: 0; z-index: 100;
}

.logo { font-weight: 800; font-size: 1.6rem; letter-spacing: -1px; color: #ffffff; }
.logo span { background: var(--ig-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.custom-lang-dropdown { position: relative; display: inline-block; }

/* Botão de Idiomas Escuro */
.lang-btn {
    background-color: #1f2937; color: #f8fafc; padding: 8px 15px; font-size: 0.9rem;
    font-weight: 600; border: 1px solid #374151; border-radius: 20px; cursor: pointer;
    display: flex; align-items: center; gap: 5px; transition: all 0.2s;
}
.lang-btn:hover { background-color: #374151; color: white; }

/* Dropdown de Idiomas Modo Escuro */
.lang-content {
    display: none; position: absolute; right: 0; top: 110%; background-color: #1f2937;
    min-width: 120px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5); border-radius: 12px;
    border: 1px solid #374151; z-index: 200; overflow: hidden; animation: fadeIn 0.2s ease;
}
.custom-lang-dropdown:hover .lang-content { display: block; }
.lang-content a { color: #f8fafc; padding: 12px 16px; text-decoration: none; display: block; font-size: 0.9rem; font-weight: 500; border-bottom: 1px solid #374151; }
.lang-content a:hover { background-color: #374151; color: white; }
.lang-content a:last-child { border-bottom: none; }

/* =========================================
   3. HERO SECTION (FUNDO PREMIUM)
   ========================================= */
.hero-section {
    background: linear-gradient(135deg, #4f46e5 0%, #a855f7 50%, #ec4899 100%);
    padding: 60px 20px 80px; text-align: center; color: white;
}
.hero-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 10px; color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }

.format-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 25px; flex-wrap: wrap; }
.tab-item {
    display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.15); 
    border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; padding: 8px 18px;
    border-radius: 8px; font-size: 0.95rem; font-weight: 600; transition: all 0.2s;
}
.tab-item:hover { background: rgba(255, 255, 255, 0.25); }
.tab-item svg { width: 18px; height: 18px; opacity: 0.85; }

/* =========================================
   4. CAIXA DE BUSCA E BOTÕES (BLINDADA)
   ========================================= */
.search-container { width: 100%; max-width: 700px; margin: 0 auto; }

.search-form { display: flex; flex-direction: column; gap: 15px; }

.input-group {
    display: flex; background: white; border-radius: 8px; 
    padding: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    align-items: center; width: 100%;
}

.search-input { 
    flex: 1; min-width: 0; border: none; padding: 15px 20px; font-size: 1.1rem; 
    outline: none; border-radius: 8px 0 0 8px; color: #333; background: transparent; 
}

.btn-paste {
    background: #f3e8ff; color: #7e22ce; border: none; 
    font-weight: 700; font-size: 0.95rem; padding: 10px 18px; cursor: pointer; 
    display: flex; align-items: center; gap: 6px; border-radius: 6px; 
    transition: background 0.2s; height: 44px; margin-right: 2px;
    flex-shrink: 0; 
}
.btn-paste:hover { background: #e9d5ff; }

.btn-download-green { 
    background-color: #10b981; color: white; border: none; 
    padding: 16px; border-radius: 8px; font-weight: 800; font-size: 1.2rem; 
    cursor: pointer; transition: all 0.2s ease; 
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); 
    display: flex; align-items: center; justify-content: center; gap: 10px; 
    text-transform: uppercase; letter-spacing: 0.5px; width: 100%;
}
.btn-download-green:hover { background-color: #059669; transform: translateY(-2px); }

/* =========================================
   5. RESULTADOS
   ========================================= */
main { flex: 1; width: 100%; max-width: 900px; margin: 0 auto 40px; padding: 0 20px; }
.result-box { 
    background: white; border-radius: 12px; padding: 25px; width: 100%; max-width: 800px; 
    margin: -80px auto 50px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); 
    border: 1px solid #e2e8f0; position: relative; z-index: 10; animation: slideUp 0.4s ease;
}
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-top: 20px; }
.media-item { border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; background: #f8fafc; display: flex; flex-direction: column; justify-content: space-between; }
.media-thumb { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; margin-bottom: 10px; }
.badge-video { background-color: #ede9fe; color: #7c3aed; }
.badge-image { background-color: #dbeafe; color: #2563eb; }
.btn-action { display: block; padding: 12px; border-radius: 8px; font-weight: 700; text-align: center; font-size: 0.9rem; margin-top: 10px; }
.btn-primary { background: var(--ig-gradient); color: white; }
.btn-primary:hover { opacity: 0.9; }
.btn-reset { display: block; text-align: center; color: #94a3b8; font-size: 0.9rem; margin-top: 20px; }

/* =========================================
   6. SEO & FAQ
   ========================================= */
.seo-section { text-align: left; background: white; padding: 40px; border-radius: 16px; border: 1px solid #e2e8f0; }
.seo-section h2 { font-size: 1.5rem; color: #1e293b; margin: 30px 0 15px; font-weight: 800; }
.seo-section h2:first-child { margin-top: 0; }
.seo-section p { margin-bottom: 15px; color: #475569; }
.features-box { background: #f8fafc; padding: 20px; border-radius: 12px; margin: 25px 0; border: 1px solid #e2e8f0; }
.features-box h3 { margin-bottom: 10px; font-size: 1.1rem; }
.features-box li { margin-bottom: 8px; color: #475569; font-size: 0.95rem; }
.seo-section ol { margin-left: 20px; margin-bottom: 25px; color: #475569; }
.seo-section li { margin-bottom: 8px; }

details.faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
summary { padding: 15px; font-weight: 600; cursor: pointer; background: #f8fafc; color: #334155; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: "+"; font-size: 1.2rem; color: #94a3b8; }
details[open] summary::after { content: "−"; color: var(--ig-primary); }
.faq-text { padding: 15px; color: #475569; border-top: 1px solid #e2e8f0; background: white; }

footer { background: white; border-top: 1px solid #e2e8f0; padding: 40px 20px; text-align: center; margin-top: auto; color: #94a3b8; font-size: 0.9rem; }
.footer-links { margin-bottom: 15px; }
.footer-links a:hover { color: var(--ig-primary); }

/* =========================================
   7. RESPONSIVO (CELULARES)
   ========================================= */
@media (max-width: 600px) {
    .hero-title { font-size: 2.2rem; }
    .hero-section { padding-bottom: 80px; }
    .nav-header { padding: 15px 20px; }
    
    .format-tabs { gap: 8px; }
    .tab-item { font-size: 0; padding: 10px 14px; gap: 0; }
    .tab-item svg { width: 22px; height: 22px; }

    .search-input { width: 100%; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }