/**
 * PÁGINA DE DOCUMENTOS - LAYOUT MODERNO E PROFISSIONAL
 * Arquivo: css/documentos-page.css
 * Padrão: Sistema universal de cores + Harmonização automática
 */

/* ========================================
   HERO SECTION - DOCUMENTOS
   ======================================== */

.documentos-hero {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.4) 0%, rgba(255, 255, 255, 0.8) 100%);
    padding: 50px 0 35px;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.documentos-hero.harmonized {
    opacity: 1;
}

.documentos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #6b7280 50%, transparent 100%);
    /* Harmonizado via JS */
}

.documentos-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.documentos-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.06) 0%, rgba(107, 114, 128, 0.1) 100%);
    border-radius: 50%;
    margin-bottom: 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.documentos-hero-icon i {
    font-size: 28px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.documentos-hero-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.documentos-hero-icon:hover i {
    transform: scale(1.1);
}

.documentos-hero-title {
    font-size: 28px;
    font-weight: 600;
    color: #0d153d;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.documentos-hero-description {
    font-size: 14px;
    color: #8898aa;
    max-width: 550px;
    margin: 0 auto 20px;
    line-height: 1.6;
    font-weight: 400;
}

.documentos-hero-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(107, 114, 128, 0.3) 50%, transparent 100%);
    margin: 0 auto;
    border-radius: 2px;
    opacity: 0.6;
}

/* ========================================
   CARDS DE DOCUMENTOS
   ======================================== */

.documentos-section {
    padding: 40px 0 60px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.documentos-section.harmonized {
    opacity: 1;
}

.documento-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 280px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    outline: none !important; /* Remove contorno de foco */
}

/* Remove contorno azul ao clicar no card ou em qualquer elemento dentro dele */
.documento-card:focus,
.documento-card:focus-visible,
.documento-card *:focus,
.documento-card *:focus-visible {
    outline: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Linha superior animada */
.documento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    z-index: 1;
}

.documento-card:hover::before {
    transform: scaleX(1);
}

.documento-card:hover {
    transform: translateY(-8px);
    border-color: #6b7280;
    box-shadow: 
        0 20px 50px rgba(107, 114, 128, 0.35),
        0 10px 25px rgba(107, 114, 128, 0.25),
        0 0 30px rgba(107, 114, 128, 0.15);
}

/* ========================================
   ÍCONE DO DOCUMENTO
   ======================================== */

.documento-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.documento-icon-wrapper {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.08) 0%, rgba(107, 114, 128, 0.12) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.documento-icon-wrapper i {
    font-size: 36px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.documento-card:hover .documento-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.documento-card:hover .documento-icon-wrapper i {
    color: #4b5563;
}

/* Badge do tipo de arquivo */
.documento-type-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.documento-card:hover .documento-type-badge {
    transform: scale(1.1);
}

/* ========================================
   CONTEÚDO DO CARD
   ======================================== */

.documento-title {
    color: #0d153d;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
    height: 44px; /* Altura fixa para simetria */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limita a 2 linhas */
    line-clamp: 2; /* Propriedade padrão */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    word-break: break-word; /* Quebra palavras longas */
    cursor: help; /* Indica que há tooltip */
    transition: color 0.2s ease;
}

.documento-title:hover {
    color: #6b7280; /* Cor harmonizada ao hover */
}

.documento-info {
    font-size: 12px;
    color: #8898aa;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.documento-info i {
    font-size: 14px;
}

/* ========================================
   BOTÃO DE DOWNLOAD
   ======================================== */

.documento-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    margin-top: auto;
    outline: none !important; /* Remove contorno de foco */
}

/* Remove contorno azul ao clicar no botão */
.documento-download-btn:focus,
.documento-download-btn:focus-visible,
.documento-download-btn:active {
    outline: none !important;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3) !important;
}

.documento-download-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.documento-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.documento-download-btn:hover i {
    transform: translateY(2px);
}

/* ========================================
   ESTADO VAZIO
   ======================================== */

.documentos-empty-state {
    text-align: center;
    padding: 80px 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.documentos-empty-state.harmonized {
    opacity: 1;
}

.documentos-empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.08) 0%, rgba(107, 114, 128, 0.12) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.documentos-empty-icon i {
    font-size: 48px;
    color: #6b7280;
}

.documentos-empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #0d153d;
    margin-bottom: 12px;
}

.documentos-empty-description {
    font-size: 14px;
    color: #8898aa;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Desktop grande (1920px+) - 4 cards por linha */
@media (min-width: 1400px) {
    .documento-card {
        margin-bottom: 30px;
    }
}

/* Desktop médio (1200-1399px) - 3 cards por linha */
@media (min-width: 1200px) and (max-width: 1399px) {
    .documento-card {
        margin-bottom: 30px;
        min-height: 260px;
    }
    
    .documento-title {
        font-size: 15px;
        height: 42px;
    }
}

/* Laptop (992-1199px) - 3 cards por linha */
@media (min-width: 992px) and (max-width: 1199px) {
    .documento-card {
        margin-bottom: 30px;
        min-height: 250px;
        padding: 25px 15px;
    }
    
    .documento-icon {
        width: 70px;
        height: 70px;
    }
    
    .documento-icon-wrapper i {
        font-size: 32px;
    }
    
    .documento-title {
        font-size: 15px;
        height: 42px;
    }
}

/* Tablet (768-991px) - 2 cards por linha */
@media (min-width: 768px) and (max-width: 991px) {
    .documentos-hero {
        padding: 40px 20px 30px;
    }
    
    .documentos-hero-icon {
        width: 60px;
        height: 60px;
    }
    
    .documentos-hero-title {
        font-size: 24px;
    }
    
    .documento-card {
        margin-bottom: 25px;
        min-height: 260px;
        padding: 25px 15px;
    }
    
    .documento-icon {
        width: 70px;
        height: 70px;
    }
    
    .documento-icon-wrapper i {
        font-size: 32px;
    }
}

/* Mobile grande (576-767px) - 1 card por linha */
@media (min-width: 576px) and (max-width: 767px) {
    .documentos-hero {
        padding: 35px 15px 25px;
    }
    
    .documentos-hero-icon {
        width: 50px;
        height: 50px;
    }
    
    .documentos-hero-icon i {
        font-size: 24px;
    }
    
    .documentos-hero-title {
        font-size: 22px;
    }
    
    .documento-card {
        margin-bottom: 20px;
        min-height: 240px;
    }
    
    .documento-icon {
        width: 65px;
        height: 65px;
    }
    
    .documento-icon-wrapper i {
        font-size: 30px;
    }
}

/* Mobile pequeno (< 576px) - 1 card por linha */
@media (max-width: 575px) {
    .documentos-hero {
        padding: 30px 15px 20px;
    }
    
    .documentos-hero-icon {
        width: 50px;
        height: 50px;
    }
    
    .documentos-hero-icon i {
        font-size: 24px;
    }
    
    .documentos-hero-title {
        font-size: 20px;
    }
    
    .documentos-hero-description {
        font-size: 13px;
    }
    
    .documentos-section {
        padding: 30px 0 40px;
    }
    
    .documento-card {
        margin-bottom: 20px;
        min-height: 230px;
        padding: 20px 15px;
    }
    
    .documento-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .documento-icon-wrapper i {
        font-size: 28px;
    }
    
    .documento-title {
        font-size: 15px;
        height: 42px;
    }
    
    .documento-download-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .documento-card,
    .documento-card::before,
    .documento-icon-wrapper,
    .documento-download-btn,
    .documentos-hero-icon {
        transition: none;
    }
    
    .documento-card:hover {
        transform: none;
    }
}

.documento-card:focus-within {
    outline: 3px solid #4299e1;
    outline-offset: 3px;
}

/* ========================================
   FIM DO ARQUIVO
   ======================================== */

