/**
 * Custom CSS - Estilos adicionais
 */

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

.fp-card {
    animation: fadeIn 0.3s ease;
}

/* Loading overlay no grid */
.fp-grid.is-loading {
    position: relative;
    pointer-events: none;
}

.fp-grid.is-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Focus states */
.fp-form-control:focus,
.fp-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--fp-primary-light);
}

/* Card hover effects */
.fp-card__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--fp-transition);
}

.fp-card:hover .fp-card__image::after {
    opacity: 1;
}

/* Mobile menu */
.fp-header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: var(--fp-space-4);
    border-bottom: 1px solid var(--fp-gray-200);
    box-shadow: var(--fp-shadow-md);
}

/* Placeholder image */
.fp-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--fp-primary) 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
}

/* Smooth transitions */
* {
    scroll-behavior: smooth;
}

/* Better select styling */
select.fp-form-control {
    background-color: #fff;
}

/* Button loading state */
.fp-btn.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.fp-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fp-spin 0.6s linear infinite;
}

@keyframes fp-spin {
    to { transform: rotate(360deg); }
}

/* Responsive tables */
.fp-table-wrap {
    overflow-x: auto;
}

/* Print styles */
@media print {
    .fp-header,
    .fp-footer,
    .fp-btn {
        display: none !important;
    }
}
