/**
 * Quick Play Styles
 * Prominent instant matchmaking button
 */

.quick-play-section {
    margin: 24px auto;
    max-width: 600px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.quick-play-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quick-play-subtitle {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

#quick-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 20px;
    font-weight: 700;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
}

#quick-play-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #f9f9ff;
}

#quick-play-btn:active:not(:disabled) {
    transform: translateY(0);
}

#quick-play-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.bolt-icon {
    font-size: 24px;
    line-height: 1;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.quick-play-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: white;
    color: #333;
    padding: 14px 28px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 90%;
}

.quick-play-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quick-play-toast-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.quick-play-toast-error {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.quick-play-toast-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quick-play-section {
        margin: 16px;
        padding: 20px;
    }

    .quick-play-title {
        font-size: 24px;
    }

    .quick-play-subtitle {
        font-size: 14px;
    }

    #quick-play-btn {
        padding: 16px 28px;
        font-size: 18px;
        width: 100%;
    }
}

/* Small Screens */
@media (max-width: 480px) {
    .quick-play-section {
        margin: 12px 8px;
        padding: 16px;
        border-radius: 12px;
    }

    .quick-play-title {
        font-size: 20px;
    }

    .quick-play-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    #quick-play-btn {
        padding: 14px 24px;
        font-size: 16px;
    }

    .bolt-icon {
        font-size: 20px;
    }

    .quick-play-toast {
        top: 60px;
        font-size: 14px;
        padding: 12px 24px;
    }
}

/* Accessibility */
#quick-play-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #quick-play-btn,
    .quick-play-toast,
    .spinner {
        transition: none;
        animation: none;
    }
}
