/* ===== styles.css ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.page-wrapper {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 90vh;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.card {
    width: 100%;
    background: #2d2d2d;
    border-radius: 40px;
    padding: 30px 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0,0,0,0.3);
    border: 1px solid #444;
}

.start-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-image {
    margin-bottom: 20px;
}

.avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FA2D05;
    background: #222;
    box-shadow: 0 8px 24px rgba(250, 45, 5, 0.25);
}

.main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.main-title .highlight {
    color: #FA2D05;
    font-weight: 300;
}

.profile-text {
    text-align: left;
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 700px;
    padding: 0 8px;
}

.profile-text p {
    margin-bottom: 12px;
}

.profile-text strong {
    color: #ffffff;
}

.menu-nav {
    width: 100%;
    margin-top: 8px;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    width: 100%;
}

.menu-list li {
    width: 100%;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #3a3a3a;
    color: #e0e0e0;
    padding: 16px 22px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border: 1px solid #4f4f4f;
    transition: 0.2s;
    width: 100%;
}

.menu-link i {
    font-size: 1.2rem;
    color: #FA2D05;
}

.menu-link:hover {
    background: #4a4a4a;
    border-color: #FA2D05;
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgba(250, 45, 5, 0.15);
}

.menu-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.menu-link.disabled i {
    color: #666;
}

.header-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FA2D05;
    background: #222;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(250, 45, 5, 0.2);
}

.header-text h1 {
    font-size: 2.1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0;
}

.subhead {
    color: #cccccc;
    font-weight: 400;
    font-size: 1rem;
    border-left: 4px solid #FA2D05;
    padding-left: 16px;
    background: rgba(250, 45, 5, 0.08);
    border-radius: 0 12px 12px 0;
    margin-top: 4px;
    display: inline-block;
}

.question {
    background: #3a3a3a;
    border-radius: 24px;
    padding: 18px 22px;
    margin-bottom: 16px;
    border: 1px solid #4f4f4f;
    transition: 0.15s;
}

.question:hover {
    border-color: #FA2D05;
    background: #404040;
}

.question p {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1.05rem;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.question p small {
    font-weight: 400;
    color: #aaaaaa;
    font-size: 0.8rem;
    background: #4a4a4a;
    padding: 0 10px;
    border-radius: 30px;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
}

.options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #e0e0e0;
    cursor: pointer;
    background: #4a4a4a;
    padding: 6px 14px 6px 10px;
    border-radius: 40px;
    transition: 0.1s;
    border: 1px solid transparent;
}

.options label:hover {
    background: #555;
    border-color: #FA2D05;
}

.options input[type="radio"] {
    accent-color: #FA2D05;
    width: 18px;
    height: 18px;
    margin-right: 2px;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn {
    background: #3a3a3a;
    border: none;
    padding: 14px 34px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #555;
    color: #e0e0e0;
}

.btn-primary {
    background: #FA2D05;
    border: 1px solid #FA2D05;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(250, 45, 5, 0.3);
}

.btn-primary:hover {
    background: #d62804;
    transform: scale(1.01);
    box-shadow: 0 10px 22px rgba(250, 45, 5, 0.4);
}

.btn-secondary:hover {
    background: #4a4a4a;
    border-color: #777;
}

.error-msg {
    color: #ff6b6b;
    background: #3a1a1a;
    padding: 12px 18px;
    border-radius: 60px;
    display: inline-block;
    margin-top: 12px;
    border: 1px solid #FA2D05;
}

.result-box {
    margin-top: 32px;
    background: #3a3a3a;
    border-radius: 32px;
    padding: 24px 28px;
    border-left: 8px solid #FA2D05;
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    display: none;
    animation: fadeSlide 0.5s ease;
    border: 1px solid #4f4f4f;
}

.result-box.show {
    display: block;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.result-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FA2D05;
    box-shadow: 0 8px 24px rgba(250, 45, 5, 0.2);
}

.result-box h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.result-box .scale-badge {
    display: inline-block;
    background: #FA2D05;
    color: #ffffff;
    font-weight: 600;
    padding: 4px 18px;
    border-radius: 40px;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.result-box .desc {
    font-size: 1.1rem;
    color: #e8e8e8;
    margin: 12px 0 8px;
    line-height: 1.5;
}

.result-box .detail {
    color: #dddddd;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 18px;
    border-radius: 24px;
    border: 1px solid #4f4f4f;
    font-size: 0.95rem;
}

.score-detail {
    margin-top: 14px;
    font-size: 0.95rem;
    background: #4a1a0a;
    padding: 10px 16px;
    border-radius: 40px;
    color: #ffccbb;
    border: 1px solid #FA2D05;
}

.footer-note {
    margin-top: 18px;
    font-size: 0.8rem;
    color: #888;
    text-align: right;
    border-top: 1px solid #444;
    padding-top: 18px;
}

.footer {
    width: 100%;
    max-width: 820px;
    margin-top: 30px;
    padding: 18px 20px 12px;
    border-top: 1px solid #3a3a3a;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #3a3a3a;
    color: #cccccc;
    font-size: 1.4rem;
    transition: 0.25s;
    border: 1px solid #4f4f4f;
    text-decoration: none;
}

.social-icon:hover {
    background: #FA2D05;
    color: #ffffff;
    border-color: #FA2D05;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(250, 45, 5, 0.3);
}

.footer-copy {
    color: #777;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

@media (max-width: 700px) {
    .card {
        padding: 22px 20px;
    }
    .main-title {
        font-size: 1.6rem;
    }
    .avatar-large {
        width: 130px;
        height: 130px;
    }
    .avatar {
        width: 100px;
        height: 100px;
    }
    .result-avatar {
        width: 100px;
        height: 100px;
    }
    .menu-link {
        font-size: 0.95rem;
        padding: 14px 18px;
    }
    .profile-text {
        font-size: 0.95rem;
        padding: 0 4px;
    }
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .header-text h1 {
        font-size: 1.6rem;
    }
    .result-box h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.3rem;
    }
    .avatar-large {
        width: 110px;
        height: 110px;
    }
    .avatar {
        width: 80px;
        height: 80px;
    }
    .result-avatar {
        width: 80px;
        height: 80px;
    }
    .card {
        padding: 18px 14px;
    }
    .menu-link {
        font-size: 0.85rem;
        padding: 12px 14px;
        gap: 8px;
    }
    .social-links {
        gap: 12px;
    }
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .result-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .header-text h1 {
        font-size: 1.3rem;
    }
    .result-box h2 {
        font-size: 1.2rem;
        justify-content: center;
    }
}