/* Controls - Buttons, Forms, and Interactive Elements */

/* Controls */
.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.95);
}

.find-match-btn {
    background: linear-gradient(135deg, #8B5CF6 0%, #F59E0B 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.find-match-btn:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.game-guide-btn {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.4);
}

.game-guide-btn:hover {
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.6);
    transform: translateY(-2px);
}

.find-match-btn:disabled {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: #a0aec0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.disconnect-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    display: none;
}

.disconnect-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
    transform: translateY(-2px);
}

/* Discord Section */
.discord-section {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.discord-link {
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.discord-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.discord-logo {
    height: 60px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* AI Game Section */
.ai-game-section {
    margin-top: 20px;
    text-align: center;
}

.ai-game-section h3 {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.ai-difficulty-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.ai-btn {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 80px;
}

.ai-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ai-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-easy {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #4CAF50;
}

.ai-easy:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    border-color: #45a049;
}

.ai-medium {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border-color: #FF9800;
}

.ai-medium:hover:not(:disabled) {
    background: linear-gradient(135deg, #F57C00, #E65100);
    border-color: #F57C00;
}

.ai-hard {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: white;
    border-color: #F44336;
}

.ai-hard:hover:not(:disabled) {
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    border-color: #D32F2F;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .ai-difficulty-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .ai-btn {
        width: 120px;
    }
}

/* Responsive design for buttons */
@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-width: auto;
        aspect-ratio: auto;
    }
    
    .controls {
        gap: 0.75rem;
    }
    
    .discord-logo {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        min-width: auto;
        aspect-ratio: auto;
    }
    
    .controls {
        gap: 0.5rem;
    }
    
    .discord-logo {
        height: 40px;
    }
} 