/* Tactical Knowledge Section */
.tactical-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tactical-category {
    background: #1e3a8a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.tactical-category h3 {
    color: #f59e0b;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Formations Section */
.formation-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.formation-btn {
    background: #1e3a8a;
    border: 2px solid #f59e0b;
    color: #f59e0b;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.formation-btn:hover, .formation-btn.active {
    background: #f59e0b;
    color: #1e3a8a;
}

.pitch-container {
    background: #0a2d6c;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    height: 400px;
    overflow: hidden;
}

.football-pitch {
    width: 100%;
    height: 100%;
    position: relative;
    background: #0a2d6c;
    border: 2px solid #f59e0b;
    border-radius: 5px;
}

/* Pitch markings */
.pitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a2d6c;
    border: 2px solid #f59e0b;
    border-radius: 5px;
    overflow: hidden;
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 60%;
    border: 2px solid #f59e0b;
    border-radius: 50%;
}

.center-spot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
}

.penalty-area {
    position: absolute;
    width: 15%;
    height: 60%;
    border: 2px solid #f59e0b;
    top: 50%;
    transform: translateY(-50%);
}

.penalty-area.left {
    left: 0;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.penalty-area.right {
    right: 0;
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.goal-area {
    position: absolute;
    width: 8%;
    height: 30%;
    border: 2px solid #f59e0b;
    top: 50%;
    transform: translateY(-50%);
}

.goal-area.left {
    left: 0;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.goal-area.right {
    right: 0;
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.penalty-spot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    top: 50%;
}

.penalty-spot.left {
    left: 15%;
}

.penalty-spot.right {
    right: 15%;
}

/* Player positions */
.player {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-weight: bold;
    font-size: 10px;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Formation details */
.formation-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
}

.formation-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
}

.stat-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #f59e0b;
}

.stat-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: #f59e0b;
    width: 0;
    transition: width 0.5s ease;
}

.formation-tips {
    margin-top: 20px;
}

.formation-tips h5 {
    color: #f59e0b;
    margin-bottom: 10px;
}

.formation-tips ul {
    padding-left: 20px;
    margin: 0;
}

.formation-tips li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Game Scenario Cards */
.scenario-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.scenario-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 158, 11, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scenario-card:hover, .scenario-card.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.scenario-card i {
    font-size: 2rem;
    color: #f59e0b;
    margin-bottom: 10px;
    display: block;
}

.scenario-card h4 {
    margin: 10px 0 5px;
    color: #fff;
}

.scenario-card p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.scenario-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.scenario-details h4 {
    color: #f59e0b;
    margin-top: 0;
    margin-bottom: 15px;
}

.scenario-details h5 {
    color: #f59e0b;
    margin: 20px 0 10px;
}

.scenario-details p, .scenario-details ul {
    margin: 0 0 15px;
    line-height: 1.6;
}

.scenario-details ul {
    padding-left: 20px;
}

.scenario-details li {
    margin-bottom: 8px;
}

.scenario-details h5 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scenario-details h5 i {
    font-size: 1.2rem;
}

.role-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.role {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.role strong {
    color: #f59e0b;
    display: block;
    margin-bottom: 4px;
}

/* Scenario Visuals */
.scenario-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.scenario-visual-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.animation-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 6px;
    width: 100%;
    font-size: 0.9rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.blue {
    background: #4299e1;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.orange {
    background: #ed8936;
}

.dot.gray {
    background: #999;
}

.animation-explanation {
    background: rgba(66, 153, 225, 0.1);
    border-left: 3px solid #4299e1;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    width: 100%;
}

.animation-explanation p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.scenario-diagram {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1;
}

/* Animated player movements */
.scenario-diagram circle[class*="player"] {
    animation: playerMove 3s ease-in-out infinite;
}

.scenario-diagram line[class*="pass"] {
    animation: passAnimation 2s ease-in-out infinite;
    stroke-dasharray: 2;
    stroke-dashoffset: 0;
}

.scenario-diagram path[class*="trajectory"] {
    animation: trajectoryAnimation 2.5s ease-in-out infinite;
    stroke-dasharray: 3;
    stroke-dashoffset: 0;
}

/* Ball animation */
.scenario-diagram circle[class*="ball"] {
    animation: ballMove 2s ease-in-out infinite;
}

@keyframes playerMove {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes passAnimation {
    0% { stroke-dashoffset: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { stroke-dashoffset: 10; opacity: 0; }
}

@keyframes trajectoryAnimation {
    0% { stroke-dashoffset: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { stroke-dashoffset: 15; opacity: 0; }
}

@keyframes ballMove {
    0%, 100% { r: 1; opacity: 0.8; }
    50% { r: 1.5; opacity: 1; }
}

/* Pressing zone pulse */
.scenario-diagram circle[class*="press-zone"] {
    animation: pressZonePulse 2s ease-in-out infinite;
}

@keyframes pressZonePulse {
    0%, 100% { r: 5; opacity: 0.3; }
    50% { r: 7; opacity: 0.1; }
}

/* Match Analysis */
.analysis-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.video-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-placeholder:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #f59e0b;
    color: #f59e0b;
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.analysis-content h4 {
    color: #f59e0b;
    margin-top: 0;
    margin-bottom: 15px;
}

.analysis-points {
    margin: 20px 0;
}

.analysis-point {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #fff;
}

.analysis-point i {
    color: #f59e0b;
    margin-right: 10px;
}

.btn-primary {
    background: #f59e0b;
    color: #1e3a8a;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary:hover {
    background: #e69008;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .analysis-container {
        grid-template-columns: 1fr;
    }
    
    .scenario-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .formation-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .scenario-container {
        grid-template-columns: 1fr;
    }
    
    .tactical-category {
        padding: 15px;
    }
    
    .pitch-container {
        height: 300px;
    }
}
