/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Reveal Classes */
.reveal, .reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active, .reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered transition delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ── Animated Food Loader & Skeleton Shimmer Cards ── */
.food-loader-wrapper {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 20px;
    width: 100%;
}

.food-icons-orbit {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.food-center-glow {
    font-size: 2.6rem;
    animation: pulseGlow 1.5s infinite ease-in-out;
    filter: drop-shadow(0 0 15px rgba(234, 179, 8, 0.8));
    user-select: none;
}

.food-icon-item {
    position: absolute;
    font-size: 1.8rem;
    user-select: none;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.food-icon-item.item-1 { animation: orbitSpin1 2.8s infinite ease-in-out; }
.food-icon-item.item-2 { animation: orbitSpin2 2.8s infinite ease-in-out; }
.food-icon-item.item-3 { animation: orbitSpin3 2.8s infinite ease-in-out; }
.food-icon-item.item-4 { animation: orbitSpin4 2.8s infinite ease-in-out; }

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(234,179,8,0.5)); }
    50% { transform: scale(1.25); filter: drop-shadow(0 0 25px rgba(239,68,68,0.9)); }
}

@keyframes orbitSpin1 {
    0% { transform: translate(-45px, -45px) scale(0.9) rotate(0deg); }
    50% { transform: translate(45px, 45px) scale(1.15) rotate(180deg); }
    100% { transform: translate(-45px, -45px) scale(0.9) rotate(360deg); }
}

@keyframes orbitSpin2 {
    0% { transform: translate(45px, -45px) scale(1.15) rotate(0deg); }
    50% { transform: translate(-45px, 45px) scale(0.9) rotate(180deg); }
    100% { transform: translate(45px, -45px) scale(1.15) rotate(360deg); }
}

@keyframes orbitSpin3 {
    0% { transform: translate(-45px, 45px) scale(1) rotate(0deg); }
    50% { transform: translate(45px, -45px) scale(1.2) rotate(180deg); }
    100% { transform: translate(-45px, 45px) scale(1) rotate(360deg); }
}

@keyframes orbitSpin4 {
    0% { transform: translate(45px, 45px) scale(1.2) rotate(0deg); }
    50% { transform: translate(-45px, -45px) scale(0.85) rotate(180deg); }
    100% { transform: translate(45px, 45px) scale(1.2) rotate(360deg); }
}

.loader-text-glow {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f3f4f6;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(234, 179, 8, 0.5);
    animation: textFadePulse 1.8s infinite ease-in-out;
}

@keyframes textFadePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Skeleton Loading Cards */
.skeleton-cards-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 15px;
}

.skeleton-card {
    background: rgba(30, 30, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    position: relative;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.08) 20%,
        rgba(255, 255, 255, 0.18) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.skeleton-img {
    width: 100%;
    height: 150px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.skeleton-line {
    height: 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.skeleton-line.title { width: 75%; height: 20px; }
.skeleton-line.price { width: 45%; }
.skeleton-btn {
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-top: 6px;
}
