/* Portal animations & UI enhancements */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.55s ease-out forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.45s ease-out forwards;
    opacity: 0;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
    opacity: 0;
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -12px rgba(15, 23, 42, 0.18);
}

.stat-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 55%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -14px rgba(15, 23, 42, 0.2);
}

.stat-icon-wrap {
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon-wrap {
    transform: scale(1.08) rotate(-3deg);
}

.btn-interactive {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-interactive:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.45);
}

.btn-interactive:active {
    transform: translateY(0);
}

.admin-nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.admin-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.admin-nav-link.is-active::after,
.admin-nav-link:hover::after {
    transform: scaleX(1);
}

.chart-card {
    transition: box-shadow 0.25s ease;
}

.chart-card:hover {
    box-shadow: 0 12px 28px -14px rgba(15, 23, 42, 0.15);
}

.table-row-interactive {
    transition: background-color 0.2s ease;
}

.table-row-interactive:hover {
    background-color: #f8fafc;
}

.flash-toast {
    animation: slideInRight 0.4s ease-out;
}

.public-hero-gradient {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #ecfdf5 100%);
}

.job-card-accent {
    border-left: 4px solid transparent;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.job-card-accent:hover {
    border-left-color: #23b677;
}

.filter-panel {
    transition: box-shadow 0.25s ease;
}

.filter-panel:focus-within {
    box-shadow: 0 8px 24px -12px rgba(99, 102, 241, 0.25);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .animate-fade-in-up,
    .animate-fade-in,
    .animate-slide-in-right,
    .animate-scale-in,
    .flash-toast {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hover-lift:hover,
    .stat-card:hover,
    .btn-interactive:hover {
        transform: none;
    }
}

/* Pagination — active page */
nav[aria-label*="Pagination"] .pagination-page-active,
nav[aria-label*="Pagination"] [aria-current="page"] > span {
    background: #ffcc00 !important;
    color: #1c1c1e !important;
    border-color: #e6b800 !important;
    font-weight: 700 !important;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(255, 204, 0, 0.35);
}
