/**
 * JobSure Public Panel Animations
 * CSS animations for the public panel elements
 */

/* Import Animate.css for professional animations */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

/* General Animation Styles */
.animate__animated {
    --animate-duration: 1s;
    --animate-delay: 0s;
}

/* Custom Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.zoom-in {
    animation: zoomIn 0.6s ease forwards;
}

.bounce-in {
    animation: bounceIn 0.8s ease forwards;
}

/* Hover Effect Animations */
.hover-float {
    transition: transform 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-5px);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.5);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Navbar Animation */
.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Button Animations */
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card Animations */
.offer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Image Hover Effects */
.offer-image-container {
    overflow: hidden;
}

.offer-image {
    transition: transform 0.5s ease;
}

.offer-card:hover .offer-image {
    transform: scale(1.1);
}

/* Badge Animations */
.category-badge {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.category-badge:hover {
    transform: scale(1.1) rotate(3deg);
}

/* Search Box Animation */
.search-box {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.search-box:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer Link Animations */
.footer a {
    position: relative;
    transition: color 0.3s ease;
}

.footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer a:hover::after {
    width: 100%;
}

/* Social Icon Animations */
.social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.2);
}

/* Hero Section Parallax Effect */
.hero {
    background-attachment: fixed;
    transition: background-position 0.1s linear;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Pulse Animation for Notifications */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Staggered Animation for Lists */
.staggered-item {
    opacity: 0;
    transform: translateY(20px);
}

.staggered-item.animate {
    animation: fadeInUp 0.5s ease forwards;
}

/* Page Transition Effects */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.page-transition.active {
    transform: translateY(0);
}

.page-transition.exit {
    transform: translateY(-100%);
}
