/* Move History Component Styles */

/* Main Move History Container */
.move-history {
    margin-top: 1rem;
    width: 100%;
    max-width: 800px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.move-history-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    max-height: 800px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Move History Header */
.move-history-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
    border-radius: 16px 16px 0 0;
}

.move-history-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.move-history-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.move-history-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #F59E0B;
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.move-history-subtitle {
    font-size: 0.85rem;
    color: #9CA3AF;
    font-weight: 500;
}

/* Move History Content */
.move-history-content {
    padding: 1.25rem 1.5rem;
}

/* No Moves State */
.no-moves {
    text-align: center;
    padding: 2rem 1rem;
    color: #6B7280;
}

.no-moves-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-moves-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #9CA3AF;
}

.no-moves-subtext {
    font-size: 0.9rem;
    color: #6B7280;
    font-style: italic;
}

/* Turn Groups */
.turn-group {
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.turn-group:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.turn-group.current-turn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.turn-group:last-child {
    margin-bottom: 0;
}

/* Turn Header */
.turn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.turn-number {
    font-weight: 700;
    color: #8B5CF6;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(139, 92, 246, 0.3);
}

.current-indicator {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.turn-moves {
    padding: 0.75rem 1.25rem;
}

/* Move Entries */
.move-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.move-entry:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.move-entry:last-child {
    margin-bottom: 0;
}

.move-entry.player1-move {
    border-left: 4px solid #8B5CF6;
}

.move-entry.player2-move {
    border-left: 4px solid #F59E0B;
}

/* Player Info */
.move-player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.player1-avatar {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.player2-avatar {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

/* Game End Move Styling */
.move-entry.game-end-move {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid #F59E0B;
}

.move-entry.game-end-move:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.4);
}

.game-end-avatar {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    color: #FEF3C7;
    font-size: 1.2rem;
}

.game-end-description {
    color: #F59E0B;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Game End Turn Styling */
.turn-group.game-end-turn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.turn-group.game-end-turn .turn-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.turn-group.game-end-turn .turn-number {
    color: #F59E0B;
    font-weight: 700;
}

.player-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #9CA3AF;
    text-align: center;
}

/* Move Details */
.move-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.move-description {
    color: #E5E7EB;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.move-trail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.trail-start {
    color: #6B7280;
    background: rgba(107, 114, 128, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.trail-arrow {
    color: #9CA3AF;
    font-weight: bold;
}

.trail-end {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .move-history-container {
        max-height: 600px;
        margin: 0.5rem 0;
    }
    
    .move-history-header {
        padding: 1rem;
    }
    
    .move-history-title {
        gap: 0.5rem;
    }
    
    .move-history-icon {
        font-size: 1.2rem;
    }
    
    .move-history-header h3 {
        font-size: 1.1rem;
    }
    
    .move-history-subtitle {
        font-size: 0.8rem;
    }
    
    .move-history-content {
        padding: 1rem;
    }
    
    .turn-header {
        padding: 0.75rem 1rem;
    }
    
    .turn-number {
        font-size: 0.9rem;
    }
    
    .current-indicator {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .turn-moves {
        padding: 0.5rem 1rem;
    }
    
    .move-entry {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        gap: 0.75rem;
    }
    
    .move-player-info {
        min-width: 60px;
    }
    
    .player-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .player-label {
        font-size: 0.75rem;
    }
    
    .move-description {
        font-size: 0.9rem;
    }
    
    .move-trail {
        font-size: 0.8rem;
        gap: 0.25rem;
    }
    
    .trail-start,
    .trail-end {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
} 