/* Pages CSS - Estilos para páginas internas */

/* Layout Geral das Páginas */
.page-content {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: calc(100vh - 200px);
    /* Garante que o footer fique embaixo */
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Card de Conteúdo */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .content-card {
        padding: 24px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* Seções de Conteúdo */
.content-section {
    margin-bottom: 40px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.content-section h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 24px 0 12px 0;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.content-section ul,
.content-section ol {
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding-left: 24px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.content-section strong {
    color: var(--text-primary);
}

.content-section a {
    color: var(--primary-400);
    text-decoration: none;
    transition: color 0.2s;
}

.content-section a:hover {
    color: var(--primary-300);
    text-decoration: underline;
}

/* Caixas de Destaque */
.highlight-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
}

.highlight-box h2 {
    border-bottom: none;
    color: var(--primary-300);
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    color: #fca5a5;
    margin-top: 16px;
}

/* Botão Voltar */
.back-link {
    text-align: center;
    margin-top: 40px;
}

/* Estilos Específicos da Documentação */
.doc-index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.doc-link {
    display: block;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.doc-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-500);
    color: var(--primary-300);
    transform: translateX(4px);
    text-decoration: none;
}

.doc-section {
    padding-top: 40px;
    /* Espaço para âncoras */
}

/* Estilos da Licença */
.license-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.license-card h3 {
    color: var(--primary-300);
    margin-top: 0;
}

.license-card ul {
    margin-bottom: 0;
}

/* Estilos do FAQ */
.faq-category h2 {
    color: var(--primary-300);
    border-bottom: none;
    font-size: 1.3rem;
    margin-top: 40px;
}

.faq-category:first-child h2 {
    margin-top: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary-400);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Altura suficiente para o conteúdo */
    padding-bottom: 24px;
}

/* Estilos do Suporte */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.support-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.support-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-500);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.support-card.featured {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-500);
    position: relative;
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.support-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.support-card p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}

/* Tabela de Comparação */
.table-responsive {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Estilos dos Tutoriais */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.tutorial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-500);
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1e1e2d, #14141e);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
}

.play-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    color: var(--primary-500);
    transition: transform 0.2s;
}

.video-placeholder:hover .play-icon {
    transform: scale(1.1);
    color: var(--primary-400);
}

.tutorial-info {
    padding: 24px;
}

.tutorial-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tutorial-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.tutorial-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

.tutorial-cta {
    text-align: center;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 48px;
}

.tutorial-cta h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}