/* MBTI Test Custom Styles */

.question-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.9) 100%);
    border-radius: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.question-item:hover {
    border-color: rgba(147, 51, 234, 0.3);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.1);
}

.question-item.error {
    border-color: #ef4444;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.likert-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.likert-option {
    flex: 1;
    min-width: 80px;
    position: relative;
}

.likert-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.likert-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 4rem;
}

.likert-label:hover {
    border-color: #a855f7;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.15);
}

.likert-option input[type="radio"]:checked + .likert-label {
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    border-color: #9333ea;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.likert-text {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: keep-all;
}

/* Responsive Design */
@media (max-width: 768px) {
    .likert-option {
        min-width: 60px;
    }

    .likert-label {
        padding: 0.75rem 0.5rem;
        min-height: 3.5rem;
    }

    .likert-text {
        font-size: 0.75rem;
    }

    .question-text {
        font-size: 1rem;
    }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Result Page Animations */
.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tag Styles */
.keyword-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

.career-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.career-tag:hover {
    border-color: #9333ea;
    background: #faf5ff;
    transform: translateY(-2px);
}

.famous-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

/* List Styles */
#strengths-list li,
#weaknesses-list li {
    padding: 0.75rem 1rem;
    background: white;
    border-left: 4px solid #9333ea;
    border-radius: 0.5rem;
    color: #374151;
    line-height: 1.6;
}

#weaknesses-list li {
    border-left-color: #ef4444;
}

/* Dimension Bar Styles */
.dimension-bar-container {
    position: relative;
    height: 2rem;
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dimension-bar-flex {
    display: flex;
    height: 100%;
    width: 100%;
}

.dimension-bar-side {
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dimension-bar-side::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
}
