/**
 * MBTI風診断クイズ - スタイルシート
 */

/* 結果ページ専用スタイル（SWELLを上書き） */
.mbti-result-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mbti-result-type-name {
    font-size: 48px !important;
    color: #00BFA5 !important;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold !important;
    line-height: 1.2 !important;
}

.mbti-result-type-code {
    text-align: center;
    font-size: 24px !important;
    color: #666 !important;
    margin-bottom: 40px !important;
}

.mbti-result-image-wrapper {
    text-align: center;
    margin: 40px 0;
}

.mbti-result-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.mbti-result-image-placeholder {
    background: #f0f0f0;
    padding: 60px;
    color: #999;
    border-radius: 8px;
}

.mbti-result-section {
    margin: 60px 0;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mbti-result-heading {
    font-size: 32px !important;
    margin-bottom: 30px !important;
    color: #333 !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    border: none !important;
    padding: 0 !important;
}

.mbti-result-text {
    font-size: 20px !important;
    line-height: 1.8 !important;
    color: #555 !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .mbti-result-type-name {
        font-size: 36px !important;
    }

    .mbti-result-type-code {
        font-size: 18px !important;
    }

    .mbti-result-section {
        padding: 20px;
    }

    .mbti-result-heading {
        font-size: 24px !important;
    }

    .mbti-result-text {
        font-size: 16px !important;
    }
}

/* クイズ本体のスタイル */
.mbti-quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
}

.mbti-quiz-container h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #00BFA5;
    font-weight: bold;
    text-align: center;
}

.mbti-quiz-container > p {
    font-size: 24px;
    color: #666;
    margin-bottom: 60px;
    text-align: center;
}

.mbti-quiz-form {
    background: #ffffff;
    border: none;
    border-radius: 0;
    padding: 20px 0;
}

/* プログレスバー */
.mbti-progress-wrapper {
    margin-bottom: 80px;
}

.mbti-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #666;
}

.mbti-progress {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
}

.mbti-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00BFA5, #26C6DA);
    transition: width 0.3s ease;
    border-radius: 20px;
}

/* 質問 */
.mbti-question {
    margin-bottom: 120px;
    padding-bottom: 80px;
    border-bottom: 2px solid #f0f0f0;
}

.mbti-question:last-child {
    border-bottom: none;
}

.mbti-question-number {
    font-size: 28px;
    color: #999;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.mbti-question-text {
    font-size: 26px !important;
    font-weight: 600 !important;
    margin-bottom: 40px !important;
    color: #333 !important;
    text-align: center !important;
    line-height: 1.6 !important;
}

/* 6段階選択肢（ハート） */
.mbti-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mbti-option-labels {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 800px;
}

.mbti-option-label {
    font-size: 24px;
    color: #555;
    text-align: center;
}

.mbti-option-hearts {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.mbti-heart {
    cursor: pointer;
    font-size: 100px;
    line-height: 0.9;
    display: inline-block;
    transition: all 0.2s ease;
    user-select: none;
}

/* 左側3つ（A寄り）= ティールグリーン系グラデーション（プラス値） */
.mbti-heart[data-value="3"],
.mbti-heart[data-value="2"],
.mbti-heart[data-value="1"] {
    color: #B2EBF2;
}

.mbti-heart[data-value="3"]:hover,
.mbti-heart[data-value="2"]:hover,
.mbti-heart[data-value="1"]:hover {
    color: #26C6DA;
}

.mbti-heart[data-value="3"].selected,
.mbti-heart[data-value="2"].selected,
.mbti-heart[data-value="1"].selected {
    color: #00BFA5;
}

/* 右側3つ（B寄り）= ピンク系グラデーション（マイナス値） */
.mbti-heart[data-value="-1"],
.mbti-heart[data-value="-2"],
.mbti-heart[data-value="-3"] {
    color: #FFD0E0;
}

.mbti-heart[data-value="-1"]:hover,
.mbti-heart[data-value="-2"]:hover,
.mbti-heart[data-value="-3"]:hover {
    color: #FF69B4;
}

.mbti-heart[data-value="-1"].selected,
.mbti-heart[data-value="-2"].selected,
.mbti-heart[data-value="-3"].selected {
    color: #FF1493;
}

.mbti-ab-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 700px;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
}

/* ボタン */
.mbti-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 100px;
    margin-bottom: 60px;
}

.mbti-button {
    background: #00BFA5;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 191, 165, 0.3);
}

.mbti-button:hover:not(:disabled) {
    background: #009688;
    box-shadow: 0 8px 24px rgba(0, 191, 165, 0.4);
    transform: translateY(-4px);
}

.mbti-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.mbti-prev-button {
    background: #9E9E9E;
    box-shadow: 0 4px 16px rgba(158, 158, 158, 0.3);
}

.mbti-prev-button:hover:not(:disabled) {
    background: #757575;
    box-shadow: 0 8px 24px rgba(117, 117, 117, 0.4);
}

.mbti-submit-button {
    background: #00BFA5;
}

/* ページインジケーター */
.mbti-page-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.mbti-page-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #D0D0D0;
    transition: all 0.3s ease;
}

.mbti-page-dot.active {
    background: #00BFA5;
    transform: scale(1.3);
}

/* 結果ページ */
.mbti-result {
    text-align: center;
}

.mbti-result-type {
    font-size: 96px;
    font-weight: bold;
    color: #00BFA5;
    margin: 40px 0;
}

.mbti-result-name {
    font-size: 64px;
    margin-bottom: 20px;
}

.mbti-result-subtitle {
    font-size: 36px;
    color: #666;
    margin-bottom: 60px;
}

.mbti-result-image {
    max-width: 600px;
    margin: 40px auto;
    border-radius: 16px;
}

.mbti-result-section {
    text-align: left;
    margin: 60px 0;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mbti-result-section h3 {
    font-size: 44px;
    margin-bottom: 30px;
    color: #333;
}

.mbti-result-section p {
    font-size: 30px;
    line-height: 1.8;
    color: #555;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .mbti-quiz-container {
        padding: 15px;
    }

    .mbti-quiz-container h2 {
        font-size: 36px;
    }

    .mbti-quiz-container > p {
        font-size: 18px;
    }

    .mbti-progress-text {
        font-size: 16px;
    }

    .mbti-question-text {
        font-size: 20px !important;
    }

    .mbti-option-label {
        font-size: 18px;
    }

    .mbti-option-hearts {
        gap: 12px;
    }

    .mbti-heart {
        font-size: 60px;
    }

    .mbti-ab-labels {
        font-size: 20px;
        margin-top: 3px;
    }

    .mbti-button {
        padding: 14px 32px;
        font-size: 18px;
    }

    .mbti-result-type {
        font-size: 72px;
    }

    .mbti-result-name {
        font-size: 48px;
    }

    .mbti-result-subtitle {
        font-size: 28px;
    }

    .mbti-result-section h3 {
        font-size: 32px;
    }

    .mbti-result-section p {
        font-size: 24px;
    }
}

/* ========================================
   裏ラブタイプ（dark_love）専用スタイル
   ======================================== */

.mbti-dark-love-theme {
    background: linear-gradient(180deg, #120b18 0%, #1a1025 50%, #120b18 100%);
    color: #e8e0f0;
}

.mbti-dark-love-theme .mbti-result-header {
    background: linear-gradient(135deg, #1a0f20 0%, #2a1a35 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(196, 30, 58, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.mbti-dark-love-theme .mbti-result-type-code-large {
    color: #c41e3a !important;
    text-shadow: 0 0 20px rgba(196, 30, 58, 0.5);
}

.mbti-dark-love-theme .mbti-dark-name {
    color: #f0e6f6 !important;
    font-size: 36px !important;
    text-shadow: 0 0 10px rgba(240, 230, 246, 0.3);
}

.mbti-dark-catchphrase {
    font-size: 18px;
    color: #c41e3a;
    font-style: italic;
    margin-top: 15px;
    opacity: 0.9;
}

/* 浮遊アニメーション */
.mbti-float-animation {
    animation: darkFloat 3s ease-in-out infinite;
}

@keyframes darkFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ダークパラメータセクション */
.mbti-dark-params-section {
    background: linear-gradient(135deg, #1a0f20 0%, #251530 100%) !important;
    border: 1px solid rgba(196, 30, 58, 0.4) !important;
    box-shadow: 0 5px 30px rgba(196, 30, 58, 0.2) !important;
}

/* レーダーチャート */
.mbti-radar-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mbti-radar-chart-container canvas {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .mbti-radar-chart-container canvas {
        width: 280px !important;
        height: 280px !important;
    }
}

/* ダークセクション */
.mbti-dark-love-theme .mbti-dark-section {
    background: linear-gradient(135deg, rgba(26, 15, 32, 0.9) 0%, rgba(42, 26, 53, 0.9) 100%) !important;
    border: 1px solid rgba(196, 30, 58, 0.2) !important;
    color: #e8e0f0 !important;
}

.mbti-dark-love-theme .mbti-dark-heading {
    color: #f0e6f6 !important;
    border-bottom: 2px solid #c41e3a !important;
    padding-bottom: 15px !important;
}

.mbti-dark-love-theme .mbti-result-text {
    color: #d0c8e0 !important;
    line-height: 1.9 !important;
}

/* 相性カード - 地獄 */
.mbti-compat-hell {
    color: #ff4444 !important;
}

.mbti-compat-card-hell {
    background: linear-gradient(135deg, #2a0a0a 0%, #3a1515 100%) !important;
    border-left: 4px solid #ff4444 !important;
}

.mbti-compat-hell-link {
    color: #ff6666 !important;
}

/* 相性カード - 共依存 */
.mbti-compat-codep {
    color: #9966cc !important;
}

.mbti-compat-card-codep {
    background: linear-gradient(135deg, #1a0a2a 0%, #2a1540 100%) !important;
    border-left: 4px solid #9966cc !important;
}

.mbti-compat-codep-link {
    color: #bb88ee !important;
}

/* 相性カード - 救世主 */
.mbti-compat-savior {
    color: #ffd700 !important;
}

.mbti-compat-card-savior {
    background: linear-gradient(135deg, #1a1a0a 0%, #2a2a15 100%) !important;
    border-left: 4px solid #ffd700 !important;
}

.mbti-compat-savior-link {
    color: #ffdd44 !important;
}

/* ダーク用リトライボタン */
.mbti-dark-retry {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%) !important;
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4) !important;
}

.mbti-dark-retry:hover {
    background: linear-gradient(135deg, #d42e4a 0%, #9b2548 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.5) !important;
}

/* ダークテーマのシェアセクション */
.mbti-dark-love-theme .mbti-share-section,
.mbti-dark-love-theme .mbti-other-quiz-section {
    background: rgba(26, 15, 32, 0.8) !important;
    border: 1px solid rgba(196, 30, 58, 0.2) !important;
}

.mbti-dark-love-theme .mbti-share-heading,
.mbti-dark-love-theme .mbti-other-quiz-heading {
    color: #f0e6f6 !important;
}

/* ダークテーマの統計表示 */
.mbti-dark-love-theme .mbti-result-stats-inline,
.mbti-dark-love-theme .mbti-dark-section .mbti-result-stats-inline {
    position: relative !important;
    z-index: 10 !important;
    background: rgba(18, 11, 24, 0.95) !important;
    padding: 20px !important;
    margin: 0 0 20px 0 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(196, 30, 58, 0.3) !important;
    border-bottom: 1px solid rgba(196, 30, 58, 0.3) !important;
}

.mbti-dark-love-theme .mbti-stats-dots {
    color: #c41e3a !important;
}

.mbti-dark-love-theme .mbti-stats-percentage {
    color: #c41e3a !important;
}

.mbti-dark-love-theme .mbti-stats-text,
.mbti-dark-love-theme .mbti-stats-count,
.mbti-dark-love-theme .mbti-stats-rank {
    color: #d0c8e0 !important;
}

.mbti-dark-love-theme .mbti-stats-separator {
    color: #666 !important;
}

.mbti-dark-love-theme .mbti-stats-button {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%) !important;
    color: #fff !important;
}

.mbti-dark-love-theme .mbti-stats-button:hover {
    background: linear-gradient(135deg, #d42e4a 0%, #9b2548 100%) !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .mbti-dark-param-row {
        padding: 10px 15px;
    }

    .mbti-dark-param-label {
        font-size: 14px;
        width: 70px;
    }

    .mbti-dark-param-stars {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .mbti-dark-love-theme .mbti-dark-name {
        font-size: 28px !important;
    }

    .mbti-dark-catchphrase {
        font-size: 14px;
    }

    .mbti-dark-love-theme .mbti-result-stats-inline {
        padding: 15px !important;
    }
}
