/* Skeleton Screens - Loading States */

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

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    width: 80%;
}

.skeleton-title {
    height: 1.5em;
    margin-bottom: 1em;
    width: 60%;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
    border-radius: 8px;
}

.skeleton-image {
    height: 150px;
    border-radius: 8px;
    margin-bottom: 1em;
}

.skeleton-button {
    height: 38px;
    border-radius: 6px;
    width: 120px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Content Reveal Animation */
.content-reveal {
    animation: fadeInUp 0.5s ease;
}

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

/* Page-specific skeleton layouts */
.skeleton-ilan-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skeleton-ilan-card .skeleton-image {
    height: 120px;
    margin-bottom: 1rem;
}

.skeleton-ilan-card .skeleton-title {
    height: 1.2em;
    width: 70%;
}

.skeleton-ilan-card .skeleton-text {
    height: 0.9em;
    width: 90%;
}

.skeleton-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.skeleton-profile .skeleton-avatar {
    width: 60px;
    height: 60px;
}

.skeleton-profile .skeleton-text-wrapper {
    flex: 1;
}

/* Skeleton pulse effect for better UX */
.skeleton-pulse {
    animation: skeleton-pulse 2s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
