/* Soccer Pitch */
.pitch {
    width: 400px;
    height: 600px;
    background-color: #2d5a27;
    border: 3px solid rgba(255, 255, 255, 0.8);
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Field Markings */
.center-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.penalty-area {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.penalty-area-top {
    top: 0;
    border-top: none;
}

.penalty-area-bottom {
    bottom: 0;
    border-bottom: none;
}

.goal-area {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.goal-area-top {
    top: 0;
    border-top: none;
}

.goal-area-bottom {
    bottom: 0;
    border-bottom: none;
}

/* Players */
#players-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.player {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: top 0.8s ease-in-out, left 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.player.team-home {
    background-color: #3b82f6;
    border: 2px solid #1d4ed8;
}

.player.team-away {
    background-color: #ef4444;
    border: 2px solid #b91c1c;
}

.player.goalkeeper {
    background-color: #eab308;
    border: 2px solid #a16207;
}

/* Soccer Ball */
.ball {
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0);
    border: 1px solid #333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: top 0.8s ease-in-out, left 0.8s ease-in-out;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    cursor: grab;
}

/* Play Suggestion Cards */
.play-card {
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.play-card:hover {
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.play-card.selected {
    border-color: #22c55e;
    background-color: #f0fdf4;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.play-card h3 {
    color: #171717;
    font-weight: 600;
    margin-bottom: 6px;
}

.play-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 1.2s ease-in-out infinite;
    margin-right: 8px;
}

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