/**
 * Estilos para conteúdo gerado por IA nas páginas de loja
 */

/* Container principal do conteúdo IA */
.ai-generated-content {
    margin-top: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Breadcrumb agora corrigido em breadcrumb-fix.css */

/* Remove estilos indesejados do HTML gerado */
.ai-generated-content html,
.ai-generated-content body,
.ai-generated-content head,
.ai-generated-content meta,
.ai-generated-content title,
.ai-generated-content style,
.ai-generated-content link {
    display: none !important;
}

/* Seções do conteúdo */
.ai-generated-content section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.ai-generated-content section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

/* Headers */
.ai-generated-content h1 {
    display: none; /* Ocultar H1 duplicado */
}

.ai-generated-content h2 {
    color: #ff6b35;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #ff6b35;
    font-weight: 600;
}

.ai-generated-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.ai-generated-content h4 {
    color: #34495e;
    font-size: 1.1rem;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

/* Parágrafos */
.ai-generated-content p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}

/* Listas */
.ai-generated-content ul,
.ai-generated-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.ai-generated-content li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.7;
}

.ai-generated-content ul li {
    position: relative;
    padding-left: 1.5rem;
    list-style: none;
}

.ai-generated-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

/* Seção de Sobre */
.ai-generated-content section#sobre {
    background: linear-gradient(135deg, #fff5f2 0%, #ffffff 100%);
    border-left: 4px solid #ff6b35;
}

/* Seção de Produtos/Catálogo */
.ai-generated-content section:has(h2:contains("Catálogo")),
.ai-generated-content section:has(h2:contains("Produtos")) {
    background: #f8f9fa;
}

/* Seção de Entrega */
.ai-generated-content section:has(h2:contains("Entrega")),
.ai-generated-content section:has(h2:contains("Envio")) {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    border-left: 4px solid #3498db;
}

.ai-generated-content section:has(h2:contains("Entrega")) h2,
.ai-generated-content section:has(h2:contains("Envio")) h2 {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Seção de Pagamento */
.ai-generated-content section:has(h2:contains("Pagamento")) {
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    border-left: 4px solid #27ae60;
}

.ai-generated-content section:has(h2:contains("Pagamento")) h2 {
    color: #27ae60;
    border-bottom-color: #27ae60;
}

/* Seção de Trocas */
.ai-generated-content section:has(h2:contains("Troca")),
.ai-generated-content section:has(h2:contains("Devolução")) {
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border-left: 4px solid #f39c12;
}

.ai-generated-content section:has(h2:contains("Troca")) h2,
.ai-generated-content section:has(h2:contains("Devolução")) h2 {
    color: #f39c12;
    border-bottom-color: #f39c12;
}

/* Seção de FAQs */
.ai-generated-content section:has(h2:contains("Perguntas")),
.ai-generated-content section:has(h2:contains("FAQ")) {
    background: linear-gradient(135deg, #fef5ff 0%, #ffffff 100%);
    border-left: 4px solid: #9b59b6;
}

.ai-generated-content section:has(h2:contains("Perguntas")) h2,
.ai-generated-content section:has(h2:contains("FAQ")) h2 {
    color: #9b59b6;
    border-bottom-color: #9b59b6;
}

/* FAQ Items */
.ai-generated-content .faq-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.ai-generated-content .faq-item h3 {
    color: #2c3e50;
    margin-top: 0;
}

/* Destaques e badges */
.ai-generated-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.ai-generated-content em {
    color: #7f8c8d;
    font-style: italic;
}

/* Links */
.ai-generated-content a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ai-generated-content a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* Tabelas (caso existam) */
.ai-generated-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.ai-generated-content th,
.ai-generated-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.ai-generated-content th {
    background: #f5f5f5;
    font-weight: 600;
    color: #2c3e50;
}

/* Cards de destaque */
.ai-generated-content .highlight-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.ai-generated-content .highlight-card h3 {
    color: white;
}

/* Badges */
.ai-generated-content .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #ff6b35;
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-generated-content section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .ai-generated-content h2 {
        font-size: 1.5rem;
    }
    
    .ai-generated-content h3 {
        font-size: 1.2rem;
    }
}

/* Animações suaves */
.ai-generated-content section {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ícones especiais */
.ai-generated-content .icon-delivery:before {
    content: "🚚";
    margin-right: 0.5rem;
}

.ai-generated-content .icon-payment:before {
    content: "💳";
    margin-right: 0.5rem;
}

.ai-generated-content .icon-return:before {
    content: "↩️";
    margin-right: 0.5rem;
}

.ai-generated-content .icon-faq:before {
    content: "❓";
    margin-right: 0.5rem;
}

/* Ocultar elementos duplicados ou desnecessários */
.ai-generated-content header:first-of-type {
    display: none;
}

/* Sumário de Navegação Rápida */
.content-index {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #e6f3ff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.content-index h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.content-index ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.content-index li {
    margin: 0;
}

.content-index a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-index a:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    text-decoration: none;
}

.content-index a:active {
    transform: translateY(0);
}

/* Emojis no sumário */
.content-index a:before {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Responsive para sumário */
@media (max-width: 768px) {
    .content-index ul {
        grid-template-columns: 1fr;
    }
    
    .content-index a {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}

/* Melhorar espaçamento entre elementos */
.ai-generated-content > *:first-child {
    margin-top: 0;
}

.ai-generated-content > *:last-child {
    margin-bottom: 0;
}