/* ============================================
   BETARO SKELETON LOADERS
   Modern shimmer-effect loading placeholders
   ============================================ */

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Base Skeleton Styles */
.skeleton {
    background: linear-gradient(90deg,
            #f0f0f0 0%,
            #f8f8f8 20%,
            #f0f0f0 40%,
            #f0f0f0 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 8px;
    display: inline-block;
}

.skeleton-dark {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.15) 20%,
            rgba(255, 255, 255, 0.05) 40%,
            rgba(255, 255, 255, 0.05) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Skeleton Elements */
.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text-lg {
    height: 24px;
    margin-bottom: 12px;
    border-radius: 6px;
}

.skeleton-title {
    height: 32px;
    margin-bottom: 16px;
    border-radius: 8px;
    width: 60%;
}

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

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

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

/* Skeleton Card Components */
.skeleton-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.skeleton-sport-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.skeleton-match-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

/* Skeleton Layouts */
.skeleton-grid {
    display: grid;
    gap: 24px;
}

.skeleton-flex {
    display: flex;
    gap: 16px;
    align-items: center;
}

.skeleton-space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Specific Skeleton Patterns */
.skeleton-sport-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.skeleton-stat-pill {
    height: 36px;
    width: 100px;
    border-radius: 20px;
    display: inline-block;
    margin-right: 12px;
}

.skeleton-button {
    height: 44px;
    border-radius: 8px;
    width: 120px;
}

.skeleton-badge {
    height: 24px;
    width: 80px;
    border-radius: 12px;
}

.skeleton-chip {
    height: 40px;
    width: 100px;
    border-radius: 20px;
    display: inline-block;
    margin-right: 8px;
}

/* Loading Container */
.skeleton-container {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .skeleton-card,
    .skeleton-sport-card {
        padding: 20px;
    }

    .skeleton-title {
        width: 80%;
    }
}

/* Betaro Specific Skeletons */
.betaro-skeleton-hero {
    height: 300px;
    border-radius: 0;
    margin-bottom: 40px;
}

.betaro-skeleton-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.betaro-skeleton-stats {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.betaro-skeleton-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.betaro-skeleton-vs {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Hide original content while loading */
.loading-hidden {
    display: none;
}

/* Alpine.js cloak - prevents flash of unstyled content */
[x-cloak] {
    display: none !important;
}