/**
 * Schoolink Premium Plugin Styles
 * Versão Final Consolidada - 20/01/2026
 */

:root {
    --schoolink-primary: #8b5cf6;
    --schoolink-secondary: #d8b4fe;
    --schoolink-dark: #0a0e27;
    --schoolink-accent: #ff00ff;
    --schoolink-bg-blue: rgba(10, 14, 39, 0.2); /* Fundo azul com 20% de transparência */
}

.schoolink-premium-container {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    /* Difusão suave no limite superior para transição com parallax */
    mask-image: linear-gradient(to bottom, transparent 0%, black 150px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 150px);
}

/* Seções com fundo azul transparente */
.schoolink-faq-section,
.schoolink-cta-section {
    background-color: var(--schoolink-bg-blue);
    padding: 4rem 1rem;
}

.schoolink-features-section {
    background: linear-gradient(to bottom, var(--schoolink-bg-blue), rgba(88, 28, 135, 0.2));
    padding: 4rem 1rem;
}

/* FAQ Section */
.schoolink-faq-container {
    max-width: 768px;
    margin: 0 auto;
}

.schoolink-faq-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.schoolink-faq-heading h2 {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .schoolink-faq-heading h2 {
        font-size: 2.25rem;
    }
}

.schoolink-faq-heading p {
    font-weight: 600;
    font-size: 0.875rem;
    color: #9ca3af;
}

.schoolink-faq-item {
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 0.75rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.schoolink-faq-item:hover {
    background-color: rgba(139, 92, 246, 0.1);
}

.schoolink-faq-question {
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.schoolink-faq-question:hover {
    color: #d8b4fe;
}

.schoolink-faq-answer {
    font-weight: 500;
    color: #d1d5db;
    padding-top: 1rem;
    font-size: 0.875rem;
    display: none;
}

.schoolink-faq-item.active .schoolink-faq-answer {
    display: block;
}

/* Features Section */
.schoolink-features-container {
    max-width: 1024px;
    margin: 0 auto;
}

.schoolink-features-heading {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .schoolink-features-heading {
        font-size: 2.25rem;
    }
}

.schoolink-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .schoolink-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.schoolink-feature-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.schoolink-feature-card:hover {
    background-color: rgba(139, 92, 246, 0.15);
}

.schoolink-feature-card h3 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.schoolink-feature-card p {
    font-weight: 500;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* CTA Section */
.schoolink-cta-container {
    max-width: 512px;
    margin: 0 auto;
    text-align: center;
}

.schoolink-cta-heading {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .schoolink-cta-heading {
        font-size: 2.25rem;
    }
}

.schoolink-cta-text {
    font-weight: 600;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

/* ============================================ */
/*         ESTILOS DE BOTÕES ATUALIZADOS        */
/* ============================================ */

/* 
 * Botão (estrutura base) 
 * - Garante que não haverá bordas ou contornos em nenhum estado.
 */
.schoolink-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    border: none !important;
    outline: none !important;
}

/* 
 * CORREÇÃO PARA A TAG <button>
 * Reseta a aparência padrão para que aceite gradientes e estilos customizados.
 * Essencial para botões gerados via shortcode.
 */
button.schoolink-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
}

/* Remove o outline em estados de foco também, garantindo consistência */
.schoolink-btn:focus, .schoolink-btn:active {
    outline: none !important;
    border: none !important;
}

/* 
 * BOTÃO PRIMÁRIO (NOVO ESTILO)
 * Para CTAs principais como "Assinar Agora".
 */
.schoolink-btn-primary {
    background: linear-gradient(130deg, #006AFF 10%, #00FFA7 100%);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 255, 167, 0.4);
}

.schoolink-btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 255, 167, 0.9), 0 0 50px rgba(0, 106, 255, 0.7);
    transform: scale(1.03);
}

/* 
 * BOTÃO SECUNDÁRIO (ESTILO ANTIGO RESTAURADO)
 * Para CTAs secundários como "Já sou membro".
 */
.schoolink-btn-secondary {
    background: linear-gradient(135deg, #ff00ff 0%, #d946ef 50%, #a855f7 100%);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.schoolink-btn-secondary:hover {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.9), 0 0 50px rgba(217, 70, 239, 0.7);
    transform: scale(1.03);
}

/* Modal */
.schoolink-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.schoolink-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.schoolink-modal-content {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 384px;
    width: 90%;
    backdrop-filter: blur(10px);
    position: relative;
}

.schoolink-modal-header {
    margin-bottom: 1.5rem;
}

.schoolink-modal-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #ffffff;
}

.schoolink-modal-description {
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.875rem;
}

.schoolink-modal-plan {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: rgba(139, 92, 246, 0.2);
    margin-bottom: 1rem;
}

.schoolink-modal-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.schoolink-modal-plan-label {
    font-weight: 700;
    font-size: 0.875rem;
}

.schoolink-modal-plan-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: #d8b4fe;
}

.schoolink-modal-plan-note {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.schoolink-modal-benefits {
    margin-bottom: 1rem;
}

.schoolink-modal-benefits-label {
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.schoolink-modal-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.schoolink-modal-benefit-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: #d8b4fe;
}

.schoolink-modal-email-group {
    margin-bottom: 1rem;
}

.schoolink-modal-email-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.schoolink-modal-email-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.schoolink-modal-email-input:focus {
    outline: none;
    border-color: var(--schoolink-primary);
}

.schoolink-modal-footer-text {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.schoolink-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
/* ... (todo o seu código CSS existente, terminando com a regra .schoolink-modal-close) ... */

.schoolink-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}


/* ======================================================= */
/*     CONTÊINER FIXO PARA OS BOTÕES DE CTA (COLE AQUI)    */
/* ======================================================= */

.schoolink-cta-fixo-container {
    position: fixed; /* Mantém o contêiner fixo na tela */
    bottom: 0;       /* Alinha na base da página */
    left: 0;         /* Alinha à esquerda */
    width: 100%;     /* Ocupa a largura total */
    padding: 1.5rem 1rem; /* Espaçamento interno */
    
    /* Efeito de fundo para destacar os botões */
    background: linear-gradient(to top, rgba(10, 14, 39, 1) 0%, rgba(10, 14, 39, 0) 100%);
    
    display: flex;
    flex-direction: column; /* Empilha os botões verticalmente */
    align-items: center;    /* Centraliza os botões horizontalmente */
    gap: 1rem;              /* Espaço entre os botões */
    
    /* Z-index alto para ficar sobre a página, mas MENOR que o z-index do modal (9999) */
    z-index: 9998; 
}

/* Ajuste para telas maiores (desktop) */
@media (min-width: 768px) {
    .schoolink-cta-fixo-container {
        flex-direction: row; /* Botões lado a lado no desktop */
        justify-content: center; /* Centraliza o grupo de botões */
    }
}

/* FIM DO ARQUIVO CSS */
