/* IQ Test MVP - Main Styles */

:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --secondary: #EC4899;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #fafafa;
}

.iq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    line-height: 1.5;
}

.iq-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.iq-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.iq-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.iq-btn-secondary {
    background: var(--gray-100);
    color: var(--gray-900);
}

.iq-btn-secondary:hover {
    background: var(--gray-200);
}

.iq-btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.iq-btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.iq-error {
    max-width: 600px;
    margin: 60px auto;
    padding: 32px;
    background: #FEE2E2;
    border: 2px solid #EF4444;
    border-radius: 16px;
    color: #991B1B;
    font-size: 1.1rem;
    text-align: center;
}

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.iq-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Loading spinner */
.iq-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

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

/* Utilities */
.iq-text-center {
    text-align: center;
}

.iq-mb-4 {
    margin-bottom: 1rem;
}

.iq-mb-8 {
    margin-bottom: 2rem;
}

.iq-mt-4 {
    margin-top: 1rem;
}

.iq-mt-8 {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 640px) {
    .iq-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .iq-btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
}
