/* 
 * Estilos do Frontend - Aniversariantes do Mês
 * @author Dante Testa <https://dantetesta.com.br>
 * @since 1.0.0
 * @created 22/12/2024 09:30
 */

/* Container Principal */
.adm-aniversariantes-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    padding: 1rem 0;
}

/* Título */
.adm-titulo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.adm-titulo i {
    color: #f43f5e;
}

/* Seção de Mês */
.adm-mes-section {
    margin-bottom: 2.5rem;
}

.adm-mes-titulo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f43f5e;
    display: inline-block;
}

/* Card */
.adm-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.adm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f43f5e, #fb7185);
}

.adm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Card Foto */
.adm-card-foto {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.adm-foto {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f3f4f6;
    transition: all 0.3s ease;
}

.adm-card:hover .adm-foto {
    border-color: #f43f5e;
}

.adm-foto-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #9ca3af;
    font-size: 3rem;
}

/* Badge */
.adm-card-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(244, 63, 94, 0.4);
}

/* Card Info */
.adm-card-info {
    width: 100%;
}

.adm-card-nome {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.adm-card-data {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #4b5563;
    margin: 0 0 0.5rem 0;
}

.adm-card-data i {
    color: #f43f5e;
}

.adm-idade {
    color: #9ca3af;
    font-size: 0.875rem;
}

.adm-card-cargo,
.adm-card-departamento {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.25rem 0;
}

.adm-card-cargo i,
.adm-card-departamento i {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Estado Vazio */
.adm-vazio {
    text-align: center;
    padding: 3rem 1rem;
    background: #f9fafb;
    border-radius: 1rem;
    color: #6b7280;
}

.adm-vazio i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    display: block;
}

.adm-vazio p {
    font-size: 1rem;
    margin: 0;
}

/* Layout Lista - Ajustes */
.adm-lista .adm-card {
    flex-direction: row;
    text-align: left;
    padding: 1rem 1.5rem;
}

.adm-lista .adm-card-foto {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
    margin-right: 1.25rem;
}

.adm-lista .adm-card-badge-grande {
    margin-bottom: 0;
    margin-right: 1.25rem;
}

.adm-lista .adm-card-badge {
    width: 24px;
    height: 24px;
    font-size: 0.625rem;
}

.adm-lista .adm-card-info {
    text-align: left;
}

.adm-lista .adm-card-nome {
    font-size: 1.125rem;
}

.adm-lista .adm-card-data,
.adm-lista .adm-card-cargo,
.adm-lista .adm-card-departamento {
    justify-content: flex-start;
}

/* Responsivo */
@media (max-width: 768px) {
    .adm-titulo {
        font-size: 1.5rem;
    }
    
    .adm-card-foto {
        width: 100px;
        height: 100px;
    }
    
    .adm-card-nome {
        font-size: 1.125rem;
    }
    
    .adm-lista .adm-card {
        flex-direction: column;
        text-align: center;
    }
    
    .adm-lista .adm-card-foto {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .adm-lista .adm-card-info {
        text-align: center;
    }
    
    .adm-lista .adm-card-data,
    .adm-lista .adm-card-cargo,
    .adm-lista .adm-card-departamento {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .adm-card {
        padding: 1.25rem;
    }
    
    .adm-card-foto {
        width: 90px;
        height: 90px;
    }
    
    .adm-titulo {
        font-size: 1.25rem;
    }
}

/* Animações */
@keyframes adm-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adm-card {
    animation: adm-fadeIn 0.4s ease forwards;
}

.adm-grid .adm-card:nth-child(1) { animation-delay: 0.05s; }
.adm-grid .adm-card:nth-child(2) { animation-delay: 0.1s; }
.adm-grid .adm-card:nth-child(3) { animation-delay: 0.15s; }
.adm-grid .adm-card:nth-child(4) { animation-delay: 0.2s; }
.adm-grid .adm-card:nth-child(5) { animation-delay: 0.25s; }
.adm-grid .adm-card:nth-child(6) { animation-delay: 0.3s; }

/* Print Styles */
@media print {
    .adm-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
        break-inside: avoid;
    }
    
    .adm-card-badge {
        display: none;
    }
}

/* Acessibilidade - Focus States */
.adm-card:focus-within {
    outline: 2px solid #f43f5e;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .adm-card {
        border: 2px solid #1f2937;
    }
    
    .adm-card-nome {
        color: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .adm-card {
        animation: none;
        transition: none;
    }
    
    .adm-card:hover {
        transform: none;
    }
}

/* Card sem linha superior */
.adm-card.adm-card-com-linha::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f43f5e, #fb7185);
}

.adm-card:not(.adm-card-com-linha)::before {
    display: none;
}

/* Card sem foto - Badge Grande */
.adm-card-badge-grande {
    width: 80px;
    min-width: 80px;
    height: 80px;
    min-height: 80px;
    aspect-ratio: 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.adm-card-badge-grande i {
    font-size: 2rem;
    color: #ffffff;
}

.adm-card.adm-card-sem-foto {
    padding-top: 2rem;
}

/* Filtros Container */
.adm-filtros-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.adm-filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 200px;
    flex: 1;
}

.adm-filtro-grupo label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.adm-filtro-grupo label i {
    color: #f43f5e;
    font-size: 0.75rem;
}

.adm-filtro-nome,
.adm-filtro-mes {
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.adm-filtro-nome:focus,
.adm-filtro-mes:focus {
    outline: none;
    border-color: #f43f5e;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

/* Container de Grupos */
.adm-grupos-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Grupo de Mês */
.adm-grupo-mes {
    margin-bottom: 2rem;
}

.adm-grupo-mes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    position: relative;
}

.adm-grupo-mes-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f43f5e, #fb7185);
    border-radius: 2px;
}

.adm-grupo-mes-titulo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.adm-grupo-mes-titulo i {
    color: #f43f5e;
}

.adm-grupo-mes-count {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
}

/* Esconder elementos filtrados */
.adm-card.adm-filtro-hidden,
.adm-grupo-mes.adm-filtro-hidden {
    display: none !important;
}

/* Responsivo Filtros */
@media (max-width: 640px) {
    .adm-filtros-container {
        flex-direction: column;
    }
    
    .adm-filtro-grupo {
        min-width: 100%;
    }
}
