/* Custom styles for Darts Scoring App */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Dart board button styles */
.dart-button {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dart-button:active {
    transform: translateY(0);
}

.dart-button.single {
    background: linear-gradient(135deg, #10b981, #059669);
}

.dart-button.double {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.dart-button.triple {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.dart-button.bull {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.dart-button.bullseye {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

/* Score display */
.score-display {
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 2px solid #374151;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.score-display.current-player {
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Player card */
.player-card {
    background: linear-gradient(135deg, #374151, #1f2937);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.player-card.active {
    border: 2px solid #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Statistics card */
.stats-card {
    background: linear-gradient(135deg, #1f2937, #111827);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #374151;
}

.stats-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game mode selection */
.game-mode-card {
    background: linear-gradient(135deg, #374151, #1f2937);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-mode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.game-mode-card.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* Throw history */
.throw-history {
    max-height: 300px;
    overflow-y: auto;
}

.throw-history::-webkit-scrollbar {
    width: 6px;
}

.throw-history::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 3px;
}

.throw-history::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

.throw-history::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dart-button {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    
    .score-display {
        padding: 0.75rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
}

/* Loading spinner */
.loading-spinner {
    border: 3px solid #1f2937;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    animation: fadeIn 0.3s ease-out;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.message.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #3b82f6;
}
