.match-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.match-modal.active {
    opacity: 1;
}

.match-error-content,
.match-content {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff39;
    border-radius: 2px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    color: white;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.match-modal.active .match-error-content,
.match-modal.active .match-content {
    transform: scale(1);
}

.requirements-list {
    margin: 20px 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 0, 0, 0.1);
}

.requirement-icon {
    font-size: 1.2em;
}

.match-tips {
    margin-top: 20px;
    text-align: left;
    background: rgba(0, 255, 57, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.match-tips ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.match-tips li {
    margin: 5px 0;
    padding-left: 20px;
    position: relative;
}

.match-tips li:before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #00ff39;
}

.stadium-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/stadium.jpg') center/cover;
    opacity: 0.2;
    border-radius: 18px;
    transition: opacity 0.5s ease;
}

.stadium-background.active {
    opacity: 0.4;
}

.match-preparation {
    position: relative;
    z-index: 1;
}

.preparation-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.prep-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.prep-step:nth-child(1) { animation-delay: 0.2s; }
.prep-step:nth-child(2) { animation-delay: 0.4s; }
.prep-step:nth-child(3) { animation-delay: 0.6s; }

.step-icon {
    font-size: 1.5em;
}

.match-warning {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 10px;
}

.consumption-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
    color: #ff6b6b;
}

.match-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.start-match-btn,
.cancel-match-btn,
.close-match-btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-match-btn {
    background: linear-gradient(45deg, #00ff39, #00cc44);
    color: black;
}

.cancel-match-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.start-match-btn:hover,
.cancel-match-btn:hover {
    transform: scale(1.05);
}

.match-animation {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 18px;
}

.match-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 2;
}

.match-action {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

.match-timer {
    font-size: 2em;
    font-family: monospace;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 15px;
    border: 2px solid #00ff39;
}

.match-results {
    text-align: center;
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    animation: slideIn 0.5s ease forwards;
}

.result-icon {
    font-size: 1.5em;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.searching-animation {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto 20px;
}

.searching-pulse {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 255, 57, 0.2);
    position: absolute;
    animation: pulse-ring 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.searching-pulse:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: #00ff39;
}

.regions-list {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.region {
    animation: fade-in-out 2s infinite;
    opacity: 0.5;
}

.region:nth-child(2) { animation-delay: 0.6s; }
.region:nth-child(3) { animation-delay: 1.2s; }

.rival-found {
    text-align: center;
    padding: 20px;
}

.rival-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rival-level {
    font-size: 1.5em;
    color: #00ff39;
    font-weight: bold;
}

.rival-region {
    font-size: 2em;
}

.versus-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
}

.player-side, .rival-side {
    text-align: center;
}

.player-flag, .rival-flag {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.vs-symbol {
    font-size: 1.5em;
    font-weight: bold;
    color: #00ff39;
}

.match-events {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-event {
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 10px;
    animation: slide-in-right 0.3s ease;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.3);
        opacity: 0.8;
    }
    80%, 100% {
        opacity: 0;
        transform: scale(2);
    }
}

@keyframes fade-in-out {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes slide-in-right {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.accept-match-btn {
    background: linear-gradient(45deg, #00ff39, #00cc44);
    color: black;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.accept-match-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 57, 0.3);
}

.match-score {
    font-size: 3em;
    font-weight: bold;
    margin: 20px 0;
    font-family: monospace;
    color: #00ff39;
    text-shadow: 0 0 10px rgba(0, 255, 57, 0.5);
}

.result-item.victory {
    background: rgba(0, 255, 57, 0.2);
    border: 1px solid #00ff39;
}

.result-item.defeat {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
}

.result-item.draw {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid #ffa500;
}

.skills-improved {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
}

.skill-item {
    font-size: 0.9em;
    color: #00ff39;
}

.rival-level {
    font-size: 0.9em;
    color: #00ff39;
    margin-top: 5px;
}

.match-score-live {
    font-size: 2.5em;
    font-weight: bold;
    font-family: monospace;
    color: #fff;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.match-event.goal {
    background: rgba(0, 255, 57, 0.2);
    border: 1px solid #00ff39;
    color: #00ff39;
    font-weight: bold;
}

.match-event.rival-goal {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff6b6b;
    font-weight: bold;
}

.match-event {
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 8px;
    animation: slideIn 0.3s ease forwards;
    text-align: left;
} 