/**
 * Skeleton Loading Animation Styles
 * For improved user experience during data loading
 */

.skeleton-loader {
    position: relative;
    overflow: hidden;
    background: #273346;
    border-radius: 4px;
}

.skeleton-loader::before {
    content: "";
    display: block;
    position: absolute;
    left: -150px;
    top: 0;
    height: 100%;
    width: 150px;
    background: linear-gradient(
        to right,
        transparent 0%,
        #3a4a63 50%,
        transparent 100%
    );
    animation: skeleton-loading 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 6px;
    border-radius: 3px;
}

.skeleton-short {
    width: 40%;
}

.skeleton-medium {
    width: 70%;
}

.skeleton-long {
    width: 90%;
}

.skeleton-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.skeleton-card {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #1e2835;
    border: 1px solid #2a3546;
}

.skeleton-odds {
    display: inline-block;
    width: 40px;
    height: 24px;
    border-radius: 3px;
    margin: 0 10px;
}

.skeleton-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.skeleton-fade-enter-active,
.skeleton-fade-leave-active {
    transition: opacity 0.5s ease;
}

.skeleton-fade-enter,
.skeleton-fade-leave-to {
    opacity: 0;
}

.skeleton-match-card {
    animation: skeleton-pulse 1.5s infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(300%);
    }
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.8;
    }
}

/* Improve loading indicators visibility */
.loading-text {
    color: #4a80de;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8em;
    animation: loading-pulse 1.2s infinite;
}

@keyframes loading-pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Immediate feedback when clicking on odds */
.match-odd:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

/* Improve page transitions */
.page-enter-active,
.page-leave-active {
    transition: opacity 0.3s;
}
.page-enter,
.page-leave-to {
    opacity: 0;
}

/* Optimized animation for real-time data updates */
.odds-update {
    animation: odds-flash 0.8s;
}

@keyframes odds-flash {
    0% {
        background-color: rgba(74, 144, 226, 0.3);
    }
    100% {
        background-color: transparent;
    }
}
