/* collection_play.css — Collection play page unique styles */

.info-btn {
    width: 36px; height: 36px; border: 1px solid #ddd; border-radius: 50%;
    background: #fff; cursor: pointer; font-size: 16px; color: #666;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.info-btn:hover { border-color: #417690; color: #417690; }

.collection-play .modal-content {
    max-height: 90vh; overflow-y: auto;
}
.collection-play .modal-header {
    align-items: flex-start; margin-bottom: 16px;
}
.collection-play .modal-close {
    width: 28px; height: 28px; border: none; background: #f5f5f5;
    border-radius: 4px; cursor: pointer; font-size: 18px; color: #666;
    display: flex; align-items: center; justify-content: center;
}
.collection-play .modal-close:hover { background: #e0e0e0; }
.collection-play .modal-body .question-counter {
    font-size: 16px; font-weight: bold; color: #333; margin-bottom: 12px;
}
.collection-play .modal-body .description {
    margin-bottom: 16px; font-size: 14px;
}
.collection-play .modal-body .meta {
    color: #999; font-size: 12px;
}

.game-section {
    padding: 12px;
    background: #fff; border: 1px solid #ddd; border-radius: 4px;
}
.question-stem {
    font-size: 24px; line-height: 1.8; margin-bottom: 12px;
    padding: 8px 12px; background: #f9f9f9; border-radius: 4px;
}
.kaiti-text {
    font-family: "KaiTi","楷体","STKaiti","Kaiti SC","Kaiti TC",sans-serif;
}
.pinyin-text {
    font-family: "Andika", sans-serif; font-weight: 400; font-style: normal;
}
.options-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px; margin-bottom: 20px;
}
.option-btn {
    padding: 12px 20px; border: 2px solid #ddd; border-radius: 4px;
    background: #fff; cursor: pointer; font-size: 24px;
    transition: all 0.2s; text-align: center;
}
.option-btn:hover:not(.disabled) { border-color: #417690; background: #f0f7fc; }
.option-btn.correct { border-color: #28a745; background: #d4edda; }
.option-btn.incorrect { border-color: #dc3545; background: #f8d7da; }
.option-btn.disabled { cursor: not-allowed; opacity: 0.7; }
.result-message { padding: 15px; border-radius: 4px; margin-top: 15px; font-weight: bold; }
.result-message.correct { background: #d4edda; color: #155724; }
.result-message.incorrect { background: #f8d7da; color: #721c24; }
.full-sentence { margin-top: 20px; padding: 15px; background: #e9ecef; border-radius: 4px; font-size: 14px; }
.full-sentence strong { color: #417690; }

/* Result Modal */
.result-modal .modal-content { max-width: 450px; }
.result-modal .result-icon { text-align: center; font-size: 48px; margin-bottom: 16px; }
.result-modal .result-title { text-align: center; font-size: 24px; font-weight: bold; margin-bottom: 12px; }
.result-modal .result-title.correct { color: #28a745; }
.result-modal .result-title.incorrect { color: #dc3545; }
.result-modal .result-status { text-align: center; font-size: 14px; color: #666; margin-bottom: 16px; }
.result-modal .result-status .aquila-success { color: #4caf50; }
.result-modal .result-status .aquila-fail { color: #f44336; }
.result-modal .answer-section {
    background: #f5f5f5; padding: 16px; border-radius: 4px; margin-bottom: 20px;
}
.result-modal .answer-section h4 { margin: 0 0 8px 0; color: #417690; font-size: 14px; }
.result-modal .answer-section p { margin: 0; font-size: 14px; line-height: 1.6; }
.result-modal .result-actions { display: flex; justify-content: center; gap: 10px; }
.result-modal .continue-btn {
    padding: 12px 32px; border: none; border-radius: 4px;
    background: #417690; color: #fff; cursor: pointer;
    font-size: 14px; font-weight: bold;
}
.result-modal .continue-btn:hover { background: #2c5f7c; }

/* Navigation */
.navigation { margin-top: 20px; display: flex; gap: 10px; align-items: center; }
.nav-btn {
    padding: 10px 20px; border: none; border-radius: 4px;
    background: #417690; color: #fff; cursor: pointer; font-size: 14px;
}
.nav-btn:hover:not(:disabled) { background: #2c5f7c; }
.nav-btn:disabled { background: #ccc; cursor: not-allowed; }

/* Fixed bottom buttons */
.fixed-btn { position: fixed; bottom: 20px; z-index: 100; }
.fixed-btn-left { left: 20px; }
.fixed-btn-right { right: 20px; }
.fixed-nav-btn {
    padding: 12px 24px; border: none; border-radius: 4px;
    background: #417690; color: #fff; cursor: pointer; font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.fixed-nav-btn:hover:not(:disabled) { background: #2c5f7c; }
.fixed-nav-btn:disabled { background: #ccc; cursor: not-allowed; }
.fixed-info-btn {
    width: 44px; height: 44px; border: none; border-radius: 50%;
    background: #fff; cursor: pointer; font-size: 18px; color: #666;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: all 0.2s;
}
.fixed-info-btn:hover { background: #f0f7fc; color: #417690; }

/* Play restricted (login / plus required) */
.play-restricted { text-align: center; padding: 60px 20px; }
.play-restricted p { font-size: 18px; color: #666; line-height: 1.6; }
.play-restricted a { color: #417690; font-weight: bold; text-decoration: none; }
.play-restricted a:hover { text-decoration: underline; }

/* Play unlocked (has permission) */
.play-unlocked { text-align: right; margin-bottom: 10px; }
.play-unlocked span { font-size: 13px; color: #2e7d32; font-weight: bold; }

/* Game complete / errors */
.game-complete { text-align: center; padding: 40px; }
.game-complete h2 { color: #28a745; }
.no-womb, .error { color: #666; font-style: italic; }
.error { color: #dc3545; }

/* Preview mode banner */
.preview-banner {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s;
}
.preview-banner:hover {
    background: #ffeaa7;
}
