/* =============================================================
   Aride Expandable Cards — Frontend CSS
   ============================================================= */

.aride-expandable-section {
    padding: 8px 0;
}

/* Grid */
.aride-cards-grid { display: grid; gap: 20px; }
.aride-cols-1 { grid-template-columns: 1fr; }
.aride-cols-2 { grid-template-columns: repeat(2, 1fr); }
.aride-cols-3 { grid-template-columns: repeat(3, 1fr); }
.aride-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .aride-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .aride-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .aride-cols-2,
    .aride-cols-3,
    .aride-cols-4 { grid-template-columns: 1fr; }
}

/* Card */
.aride-card {
    background: #fff;
    border: 1.5px solid #e0d9f7;
    border-radius: 18px;
    padding: 28px 24px 20px;
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.aride-card:hover {
    box-shadow: 0 8px 32px rgba(120,60,220,.12);
    border-color: #b69af5;
    transform: translateY(-2px);
}
.aride-card.open {
    border-color: #7c3aed;
    box-shadow: 0 10px 40px rgba(120,60,220,.17);
}

/* Badge */
.aride-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 18px;
}

/* Title */
.aride-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #2d0a6e;
    margin-bottom: 10px;
    line-height: 1.35;
}

/* Preview */
.aride-card-preview {
    font-size: 0.875rem;
    color: #6b6b8a;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Toggle — texto + seta delicado, sobrescreve estilos de botão do tema */
.aride-card-toggle,
.aride-card-toggle:visited,
.aride-card-toggle:focus,
.aride-card-toggle:active {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: 14px !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    color: #7c3aed !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    width: auto !important;
    min-width: 0 !important;
    transition: opacity 0.2s !important;
}
.aride-card-toggle:hover {
    opacity: 0.72 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    color: #7c3aed !important;
}
.aride-card-toggle svg {
    width: 14px !important;
    height: 14px !important;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
}
.aride-card.open .aride-card-toggle svg {
    transform: rotate(180deg);
}

/* Expanded area */
.aride-card-expanded {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s cubic-bezier(.4,0,.2,1), opacity 0.3s ease;
}
.aride-card.open .aride-card-expanded {
    max-height: 4000px;
    opacity: 1;
}

/* Divider */
.aride-card-divider {
    height: 1px;
    background: linear-gradient(90deg, #e0d9f7, transparent);
    margin: 16px 0;
}

/* Expanded content — generic styles for WYSIWYG output */
.aride-expanded-content {
    font-size: 0.875rem;
    color: #3d3d5c;
    line-height: 1.6;
}
.aride-expanded-content p  { margin: 0 0 8px; }
.aride-expanded-content ul,
.aride-expanded-content ol { padding-left: 18px; margin: 0 0 8px; }
.aride-expanded-content li { margin-bottom: 6px; line-height: 1.55; }
.aride-expanded-content strong { font-weight: 700; }
.aride-expanded-content a  { color: #7c3aed; text-decoration: underline; }

/* CTA Button */
.aride-cta-wrap {
    margin-top: 20px;
}

.aride-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
    line-height: 1;
}

.aride-cta-btn:hover { opacity: 0.88; text-decoration: none; }

/* Filled (padrão) */
.aride-cta-btn.aride-cta-filled {
    background-color: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

/* Outline / contorno */
.aride-cta-btn.aride-cta-outline {
    background-color: transparent;
    border-color: #7c3aed;
    color: #7c3aed;
}
.aride-cta-btn.aride-cta-outline:hover {
    background-color: #7c3aed;
    color: #fff;
    opacity: 1;
}

/* Ghost / fantasma */
.aride-cta-btn.aride-cta-ghost {
    background-color: transparent;
    border-color: transparent;
    color: #7c3aed;
    padding-left: 0;
    padding-right: 0;
}

/* Icon sizing */
.aride-cta-icon svg,
.aride-cta-icon i {
    font-size: 0.9em;
    width: 1em;
    height: 1em;
}

/* Card span — wide (2 colunas) e full (largura total) */
.aride-cols-2 .aride-card-wide,
.aride-cols-3 .aride-card-wide,
.aride-cols-4 .aride-card-wide { grid-column: span 2; }

.aride-cols-2 .aride-card-full { grid-column: span 2; }
.aride-cols-3 .aride-card-full { grid-column: span 3; }
.aride-cols-4 .aride-card-full { grid-column: span 4; }

@media (max-width: 1024px) {
    .aride-cols-4 .aride-card-wide { grid-column: span 2; }
    .aride-cols-4 .aride-card-full { grid-column: span 2; }
}
@media (max-width: 900px) {
    .aride-cols-3 .aride-card-wide { grid-column: span 2; }
    .aride-cols-3 .aride-card-full { grid-column: span 2; }
}
@media (max-width: 560px) {
    .aride-card-wide,
    .aride-card-full { grid-column: span 1 !important; }
}
