/* Diagnosis Page Styling */

.diagnosis-hero {
    background: url('../../images/research_lab.png') center/cover no-repeat;
}

.diagnosis-hero::before {
    background-color: rgba(255, 248, 235, 0.85); /* Slightly warm tint */
}

.diagnosis-container {
    max-width: 800px;
    margin: 0 auto;
}

.card.shadow {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: none; /* Override global style.css */
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 30px;
}

.quiz-question h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--text-color);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.option-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.option-btn:active {
    background: var(--secondary-color);
    color: white;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* Result Styles */
.mascot-container {
    margin: 20px auto 30px;
    display: flex;
    justify-content: center;
}

.result-mascot {
    width: 280px;
    height: 280px;
    object-fit: contain;
    border-radius: 20px;
}

.mascot-clip-container {
    width: 280px;
    height: 280px;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.mascot-clip-container img {
    position: absolute;
    width: 560px; /* Assuming 2x2 grid in 560x560? No, let's scale it */
    height: 560px;
}

/* Clipping logic for mascot_batch_final.png (1024x1024 reduced to 560x560 area) */
.mascot-clip-container.amex img { top: 0; left: 0; }
.mascot-clip-container.ikea img { top: 0; left: -280px; }
.mascot-clip-container.visa img { top: -280px; left: 0; }
.mascot-clip-container.uber img { top: -280px; left: -280px; }

.result-type-acronym {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: 5px;
    font-family: 'Noto Sans JP', sans-serif;
}

.result-type-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    color: #444;
    margin-bottom: 30px;
}

.advice-box {
    text-align: center;
    margin-top: 20px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px dashed #ccc;
    line-height: 1.8;
}

.restart-btn {
    margin-top: 40px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .card.shadow { padding: 30px 20px; }
    .result-type-acronym { font-size: 2.5rem; }
    .result-mascot, .mascot-clip-container {
        width: 220px;
        height: 220px;
    }
    .mascot-clip-container img { width: 440px; height: 440px; }
    .mascot-clip-container.ikea img { left: -220px; }
    .mascot-clip-container.visa img { top: -220px; }
    .mascot-clip-container.uber img { top: -220px; left: -220px; }
}
