/**
 * Estilos Front-end da Página de Protocolo e Contrato de Intenções (Design Apple Material)
 */

.intencoes-page-template {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.intencoes-content-card.apple-panel {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
}

.intencoes-card-header {
    border-bottom: 1px solid #f0f0f2;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.intencoes-card-header .page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.intencoes-card-header .page-subtitle {
    font-size: 16px;
    color: #6e6e73;
    margin: 0;
    line-height: 1.5;
}

.intencoes-body-text {
    margin-bottom: 35px;
}

.intencoes-body-text h2 {
    font-size: 20px;
    font-weight: 600;
    color: #194899;
    margin-bottom: 12px;
}

.intencoes-body-text p {
    font-size: 15px;
    line-height: 1.7;
    color: #3a3a3c;
    margin: 0;
}

/* Seção de Download de Documentos */
.intencoes-download-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.intencoes-download-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.intencoes-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.intencoes-download-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.25s ease;
}

.intencoes-download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(25, 72, 153, 0.1);
    border-color: #cbd5e1;
}

.intencoes-file-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.intencoes-file-icon i {
    font-size: 26px;
}

.intencoes-file-icon.badge-pdf {
    background: rgba(217, 56, 30, 0.1);
    color: #d9381e;
}

.intencoes-file-icon.badge-docx {
    background: rgba(43, 87, 154, 0.1);
    color: #2b579a;
}

.intencoes-file-icon.inactive {
    background: #e2e8f0;
    color: #94a3b8;
}

.file-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.intencoes-file-details {
    flex: 1;
}

.intencoes-file-details h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.intencoes-file-details p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.btn-download-pdf, .btn-download-docx {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-download-pdf {
    background: #d9381e;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(217, 56, 30, 0.25);
}

.btn-download-pdf:hover {
    background: #b52b14;
    box-shadow: 0 5px 12px rgba(217, 56, 30, 0.35);
    transform: translateY(-1px);
}

.btn-download-docx {
    background: #2b579a;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(43, 87, 154, 0.25);
}

.btn-download-docx:hover {
    background: #1e3f73;
    box-shadow: 0 5px 12px rgba(43, 87, 154, 0.35);
    transform: translateY(-1px);
}

.btn-download-pdf.disabled {
    background: #cbd5e1;
    color: #64748b !important;
    box-shadow: none;
    cursor: not-allowed;
}

/* Card Informativo para quando não houver arquivos */
.intencoes-no-files-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px dashed #cbd5e1;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .intencoes-content-card.apple-panel {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .intencoes-card-header .page-title {
        font-size: 24px;
    }

    .intencoes-files-grid {
        grid-template-columns: 1fr;
    }

    .intencoes-download-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .btn-download-pdf, .btn-download-docx {
        width: 100%;
        justify-content: center;
    }
}
