/*
 * Estilos CSS para Sales Custom Shortcodes
 * Versão: 1.0.3
 */

/* Google Fonts já carregadas via PHP */

/* Botão Personalizado */
.sales-custom-botao {
    display: inline-block;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 24px;
    font-weight: 500;
    background: linear-gradient(90deg, #F2A011 0%, #F25C05 100%);
    border-radius: 50px;
    padding: 16px 80px;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    z-index: 1;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: none;
    vertical-align: middle;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sales-custom-botao::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #F2A011 0%, #F25C05 100%);
    border-radius: 50px;
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover */
.sales-custom-botao:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(242, 160, 17, 0.4);
    color:#fff;
}

.sales-custom-botao:hover::before {
    background: linear-gradient(90deg, #F25C05 0%, #F2A011 100%);
    transform: scale(1.02);
}

/* Clique */
.sales-custom-botao:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(242, 160, 17, 0.3);
}

/* Foco */
.sales-custom-botao:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 160, 17, 0.3);
}

/* Variações de Tamanho */
.sales-custom-botao.pequeno {
    font-size: 18px;
    padding: 12px 50px;
}

.sales-custom-botao.medio {
    font-size: 24px;
    padding: 16px 80px;
}

.sales-custom-botao.grande {
    font-size: 28px;
    padding: 20px 100px;
}

/* Cores */
.sales-custom-botao.azul::before,
.sales-custom-botao.azul:hover::before {
    background: linear-gradient(90deg, #1E40AF 0%, #3B82F6 100%);
}

.sales-custom-botao.azul:hover::before {
    background: linear-gradient(90deg, #3B82F6 0%, #1E40AF 100%);
}

.sales-custom-botao.verde::before {
    background: linear-gradient(90deg, #059669 0%, #10B981 100%);
}

.sales-custom-botao.verde:hover::before {
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
}

.sales-custom-botao.roxo::before {
    background: linear-gradient(90deg, #7C3AED 0%, #A855F7 100%);
}

.sales-custom-botao.roxo:hover::before {
    background: linear-gradient(90deg, #A855F7 0%, #7C3AED 100%);
}

/* Outline */
.sales-custom-botao.outline {
    background: transparent;
    border: 2px solid #F2A011;
    color: #F2A011;
}

.sales-custom-botao.outline::before {
    content: none;
    background: transparent;
}

.sales-custom-botao.outline:hover {
    color: white;
    background: linear-gradient(90deg, #F2A011 0%, #F25C05 100%);
}

/* Fantasma */
.sales-custom-botao.fantasma {
    background: transparent;
    border: 2px solid #F2A011;
    color: #F2A011;
}

.sales-custom-botao.fantasma:hover {
    color: white;
    background: linear-gradient(90deg, #F2A011 0%, #F25C05 100%);
}

/* Loading */
.sales-custom-botao.loading {
    pointer-events: none;
    position: relative;
}

.sales-custom-botao.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsivo */
@media (max-width: 768px) {
    .sales-custom-botao {
        font-size: 20px;
        padding: 14px 60px;
    }
    .sales-custom-botao.pequeno {
        font-size: 16px;
        padding: 10px 40px;
    }
    .sales-custom-botao.grande {
        font-size: 24px;
        padding: 16px 80px;
    }
}

@media (max-width: 480px) {
    .sales-custom-botao {
        font-size: 18px;
        padding: 12px 40px;
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 10px auto;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .sales-custom-botao,
    .sales-custom-botao::before {
        transition: none;
    }
    .sales-custom-botao:hover {
        transform: none;
    }
}

/* Modo Escuro */
@media (prefers-color-scheme: dark) {
    .sales-custom-botao.outline {
        border-color: #F2A011;
        color: #F2A011;
    }
    .sales-custom-botao.outline:hover {
        color: white;
        background: linear-gradient(90deg, #F2A011 0%, #F25C05 100%);
    }
    .sales-titulo-h2,
    .sales-titulo-h3,
    .sales-titulo-com-imagem {
        color: #eee;
    }
    .sales-faq-pergunta {
        color: #ddd;
    }
    .sales-faq-pergunta:hover {
        color: #F2A011;
    }
    .sales-faq-resposta {
        color: #ccc;
    }
}

/* Impressão */
@media print {
    .sales-custom-botao {
        background: #F2A011 !important;
        color: white !important;
        border: 1px solid #F2A011;
        box-shadow: none;
        transform: none;
    }
    .sales-custom-botao::before,
    .sales-custom-botao:hover::before {
        display: none;
    }
    
    /* Ocultar espaços na impressão para economizar papel */
    .sales-custom-space {
        height: 0.5rem !important;
        page-break-inside: avoid;
    }
}

/* Títulos */
.sales-titulo-h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin: 30px 0 -5px 0;
    color: #333;
}

.sales-titulo-h2 {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 50px 0 20px 0;
    color: #333;
}

/* Título com Imagem */
.sales-titulo-com-imagem {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 2px solid #f2a109;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sales-titulo-com-imagem img {
    width: 40px;
    margin-right: 20px!important;
}

.sales-titulo-com-imagem h2{
    color: #2c3e50;
    font-size: 36px;
    margin: 0;
    line-height: 1.2;
    flex: 1;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
}
.sales-titulo-com-imagem h3{
    color: #2c3e50;
    font-size: 28px;
    margin: 0;
    line-height: 1.2;
    flex: 1;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}

/* Links */
.sales-link {
    color: #F25C05;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-weight: 700;
}

.sales-link:hover {
    color: #F2A011;
    text-decoration: underline;
}

/* Âncora */
.sales-ancora {
    display: block;
    position: relative;
    top: -80px; /* Ajuste para compensar o cabeçalho fixo */
    visibility: hidden;
}

/* FAQ */
.sales-faq-container {
    font-family: 'Manrope', sans-serif;
    max-width: 100%;
    margin: 0;
}

.sales-faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 0 0 5px 0;
}

.sales-faq-pergunta {
    font-size: 18px;
    font-weight: 800;
    color: #F25C05;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    padding-right: 15px;
    margin: 10px 0 5px 0;
}

.sales-faq-pergunta:hover {
    color: #F25C05;
    text-decoration: underline;
}

.sales-faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: #F25C05;
    transition: transform 0.3s ease;
    margin-left: 15px;
    flex-shrink: 0;
}

.sales-faq-resposta {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.sales-faq-item.ativo .sales-faq-resposta {
    padding-top: 5px;
    padding-bottom: 5px;
    max-height: 1000px;
}

.sales-faq-item.ativo .sales-faq-toggle {
    transform: rotate(45deg);
}

/* Shortcode de Espaço */
.sales-custom-space {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    clear: both;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

/* Responsivo para espaços */
@media (max-width: 768px) {
    .sales-titulo-h2 { font-size: 30px; }
    .sales-titulo-h3 { font-size: 24px; }
    .sales-faq-pergunta { font-size: 16px; }
    
    /* Reduzir espaços em dispositivos móveis */
    .sales-custom-space {
        height: calc(var(--space-height, 1rem) * 0.75) !important;
    }
}

@media (max-width: 480px) {
    .sales-titulo-h2 { font-size: 26px; }
    .sales-titulo-h3 { font-size: 22px; }
    .sales-titulo-com-imagem { gap: 10px; }
    .sales-titulo-com-imagem img { width: 25px; }
    
    /* Reduzir ainda mais espaços em telas muito pequenas */
    .sales-custom-space {
        height: calc(var(--space-height, 1rem) * 0.5) !important;
    }
}

/* Acessibilidade para espaços */
@media (prefers-reduced-motion: reduce) {
    .sales-custom-space {
        transition: none;
    }
}

/* Modo escuro para espaços */
@media (prefers-color-scheme: dark) {
    .sales-custom-space {
        background: transparent;
    }
}