/*
  skeleton.css
  Enhanced Premium Shimmer Animation for MeatDae
*/

.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #f2f2f2;
    border-radius: 12px;
    display: block;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: skeleton-shimmer 1.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Specific Shapes */
.sk-text {
    height: 14px;
    margin-bottom: 8px;
    width: 100%;
    border-radius: 4px;
}

.sk-title {
    height: 24px;
    width: 80%;
    margin-bottom: 12px;
    border-radius: 6px;
}

.sk-img {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
}

.sk-circle {
    border-radius: 50%;
}

.sk-btn {
    height: 40px;
    width: 100%;
    border-radius: 12px;
}

/* Page fade-in */
body {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.loaded {
    opacity: 1;
}

