/**
 * Header Loading Skeleton Styles
 * Prevents CLS by reserving space for dynamic header elements
 */

/* Skeleton shimmer animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

/* Single skeleton placeholder for 3 elements section */
.header-icons-skeleton {
    display: flex;
    align-items: center;
    height: 40px;
    animation-duration: 1.2s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: shimmer;
    animation-timing-function: linear;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 800px 104px;
    border-radius: 8px;
    will-change: transform;
    transform: translateZ(0);
}

/* Hide on mobile - no skeleton needed */
@media (max-width: 1023px) {
    .header-icons-skeleton {
        display: none;
    }
}

/* Desktop - wider skeleton for 3 icons */
@media (min-width: 1536px) {
    .header-icons-skeleton {
        width: 600px;
    }
}

/* Tablet/small desktop - narrower */
@media (min-width: 1024px) and (max-width: 1535px) {
    .header-icons-skeleton {
        width: 200px;
    }
}

/* Hide skeleton when content is loaded */
.header-content-loaded .header-icons-skeleton {
    display: none;
}

/* Hide actual content until loaded */
.header-icons-actual {
    display: none;
}

/* Show actual content when loaded */
.header-content-loaded .header-icons-actual {
    display: flex;
}
