/* MBTI Test Styles */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --muted-text: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Hero gradient background */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Header Styles */
.display-4 {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* Card Styles */
.card {
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Hover lift effect */
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Feature Icons */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Button Styles */
.btn {
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(45deg, #5a6fd8, #6a42a0);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(13, 110, 253, 0.3);
}

/* Question Card */
.question-card {
    transition: all 0.3s ease;
    border-radius: 20px;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Answer Button Styles */
.answer-btn {
    text-align: left;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 15px;
    font-size: 1rem;
    line-height: 1.4;
}

.answer-btn:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
}

.answer-btn:active {
    transform: scale(0.98);
}

/* Progress Bar */
.progress {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.4s ease;
}

/* Result Card */
#result-card {
    position: relative;
    overflow: hidden;
}

#result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* MBTI Type Colors */
.mbti-intj { border-left: 5px solid #8B5CF6; }
.mbti-intp { border-left: 5px solid #06B6D4; }
.mbti-entj { border-left: 5px solid #DC2626; }
.mbti-entp { border-left: 5px solid #F59E0B; }
.mbti-infj { border-left: 5px solid #10B981; }
.mbti-infp { border-left: 5px solid #8B5CF6; }
.mbti-enfj { border-left: 5px solid #EC4899; }
.mbti-enfp { border-left: 5px solid #F59E0B; }
.mbti-istj { border-left: 5px solid #4B5563; }
.mbti-isfj { border-left: 5px solid #10B981; }
.mbti-estj { border-left: 5px solid #DC2626; }
.mbti-esfj { border-left: 5px solid #EC4899; }
.mbti-istp { border-left: 5px solid #6B7280; }
.mbti-isfp { border-left: 5px solid #8B5CF6; }
.mbti-estp { border-left: 5px solid #F59E0B; }
.mbti-esfp { border-left: 5px solid #EC4899; }

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* Loading Animation */
.spinner-border {
    animation: spin 1s linear infinite;
}

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

/* Badge Styles */
.badge {
    border-radius: 10px;
    font-weight: 600;
}

/* Navbar styles */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Section spacing */
section {
    position: relative;
}

/* Footer */
footer {
    background: #212529 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 2rem 1.5rem;
    }
    
    .answer-btn {
        min-height: 70px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .answer-btn {
        min-height: 60px;
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .btn, .progress, footer {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        background: white;
        border: 2px solid #000;
    }
    
    .btn-outline-primary {
        border: 3px solid var(--primary-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}