/* Advanced animations for the betting site */

/* Pulse animation for category badge */
@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }

    70% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }

    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Glow animation for team logos */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(108, 122, 224, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(108, 122, 224, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(108, 122, 224, 0.5);
    }
}

/* VS text animation */
@keyframes vsAnimation {
    0% {
        transform: scale(1);
        color: #6c7ae0;
    }
    50% {
        transform: scale(1.2);
        color: #e74c3c;
    }
    100% {
        transform: scale(1);
        color: #6c7ae0;
    }
}

/* Time remaining animation */
@keyframes timeRemaining {
    0% {
        color: #999;
    }
    50% {
        color: #e74c3c;
    }
    100% {
        color: #999;
    }
}

/* Match item hover effect */
@keyframes matchHover {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-5px);
    }
}

/* Flag wave animation */
@keyframes flagWave {
    0% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(5deg);
    }
    20% {
        transform: rotate(-5deg);
    }
    30% {
        transform: rotate(3deg);
    }
    40% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(2deg);
    }
    60% {
        transform: rotate(-2deg);
    }
    70% {
        transform: rotate(1deg);
    }
    80% {
        transform: rotate(-1deg);
    }
    90% {
        transform: rotate(0.5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Enhanced match item styles */
.match-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    position: relative;
}

.match-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(108, 122, 224, 0.1), rgba(231, 76, 60, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.match-item > * {
    position: relative;
    z-index: 1;
}

.match-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(108, 122, 224, 0.3);
}

.match-item:hover::before {
    opacity: 1;
}

/* Enhanced category badge */
.category-badge {
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    transition: all 0.3s ease;
    background: linear-gradient(to right, #e74c3c, #c0392b);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    letter-spacing: 1px;
}

.match-item:hover .category-badge {
    background: linear-gradient(to right, #c0392b, #e74c3c);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.7);
}

/* Enhanced team logos */
.team-logo {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 3px;
}

.match-item:hover .team-logo {
    animation: glow 2s infinite;
    border-color: #6c7ae0;
    transform: scale(1.2) rotate(5deg);
    background: radial-gradient(circle, white, #f0f0f0);
}

/* Enhanced VS text */
.vs-text {
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(45deg, #6c7ae0, #4a00e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(108, 122, 224, 0.3);
    font-weight: bold;
    letter-spacing: 1px;
}

.match-item:hover .vs-text {
    animation: vsAnimation 2s infinite;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Enhanced time remaining */
.match-time-remaining {
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 10px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    display: inline-block;
    margin: 5px auto;
    text-align: center;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
}

.match-time-remaining::before {
    content: '⏱️';
    margin-right: 5px;
}

.match-item:hover .match-time-remaining {
    animation: timeRemaining 2s infinite;
    font-weight: bold;
    background-color: rgba(231, 76, 60, 0.1);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

/* Enhanced team names */
.team-name {
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 0;
}

.team-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #6c7ae0, #4a00e0);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.match-item:hover .team-name {
    color: #333;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.match-item:hover .team-name::after {
    width: 100%;
}

/* Flag animations */
.team-left img, .team-right img {
    transition: all 0.3s ease;
}

.match-item:hover .team-left img,
.match-item:hover .team-right img {
    animation: flagWave 2s ease-in-out;
}

/* Match header enhancements */
.match-header {
    transition: all 0.3s ease;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(108, 122, 224, 0.1), rgba(255,255,255,0));
    padding: 10px;
    border-radius: 5px;
}

.match-item:hover .match-header {
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(108, 122, 224, 0.2), rgba(255,255,255,0));
}

/* Match ID enhancement */
.match-id {
    transition: all 0.3s ease;
}

.match-item:hover .match-id {
    color: #4a00e0;
    text-shadow: 0 0 5px rgba(74, 0, 224, 0.3);
}

/* Match odds enhancement */
.match-odds {
    transition: all 0.3s ease;
}

.match-item:hover .match-odds {
    color: #c0392b;
    transform: scale(1.1);
}
