/* 전기기사 게시판 CSS */

.electrician-stats {
    background: white;
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.stats-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.stats-info strong {
    color: #FF6B35;
    font-weight: 600;
}

.last-update {
    color: #999;
    font-size: 12px;
}

.category-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 6px 12px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.category-btn:hover {
    background: #e0e0e0;
}

.category-btn.active {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
}

.btn-refresh {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    transform: rotate(180deg);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.header-actions {
    display: flex;
    gap: 8px;
}

/* 문제 카드 */
.question-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.question-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.question-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.category-badge {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.difficulty-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.difficulty-badge.difficulty-easy {
    background: #4CAF50;
    color: white;
}

.difficulty-badge.difficulty-normal {
    background: #FF9800;
    color: white;
}

.difficulty-badge.difficulty-hard {
    background: #F44336;
    color: white;
}

.question-time {
    margin-left: auto;
    font-size: 12px;
    color: #999;
}

.question-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

.question-content-preview {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.question-answer {
    padding: 12px;
    background: #f8f9fa;
    border-left: 3px solid #FF6B35;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 14px;
}

.question-answer strong {
    color: #FF6B35;
    margin-right: 8px;
}

.question-link {
    display: inline-block;
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.question-link:hover {
    color: #F7931E;
    text-decoration: underline;
}

/* 문제 상세 페이지 */
.question-detail {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.question-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.question-detail-title {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

.question-date {
    margin-left: auto;
    font-size: 13px;
    color: #999;
}

.question-detail-content {
    margin-bottom: 24px;
}

.content-section {
    margin-bottom: 24px;
}

.content-section h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #FF6B35;
    padding-bottom: 8px;
    border-bottom: 2px solid #FF6B35;
}

.content-text,
.answer-text,
.explanation-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.answer-section .answer-text {
    background: #fff3e0;
    border-left: 4px solid #FF6B35;
    font-weight: 600;
    font-size: 18px;
    color: #FF6B35;
}

.explanation-section .explanation-text {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
}

.question-source {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

.question-source a {
    color: #FF6B35;
    text-decoration: none;
    word-break: break-all;
}

.question-source a:hover {
    text-decoration: underline;
}

/* 선택지 스타일 */
.options-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
}

.option-item:hover {
    background: #f0f0f0;
    border-color: #FF6B35;
    transform: translateX(4px);
}

.option-item.selected {
    border-color: #FF6B35;
    background: #fff3e0;
}

.option-item.correct {
    background: #e8f5e9;
    border-color: #4CAF50;
    border-width: 3px;
}

.option-item.wrong {
    background: #ffebee;
    border-color: #F44336;
    border-width: 3px;
}

.option-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    color: #FF6B35;
    flex-shrink: 0;
}

.option-item.correct .option-number {
    background: #4CAF50;
    color: white;
}

.option-item.wrong .option-number {
    background: #F44336;
    color: white;
}

.option-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    padding-top: 4px;
}

.option-item.correct .option-text {
    color: #2e7d32;
    font-weight: 600;
}

.option-item.wrong .option-text {
    color: #c62828;
}

/* 결과 표시 */
.result-section {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-message {
    font-size: 20px;
    font-weight: 700;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.result-correct {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4CAF50;
}

.result-wrong {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #F44336;
}

.correct-answer-display {
    padding: 16px;
    background: #fff3e0;
    border-left: 4px solid #FF6B35;
    border-radius: 8px;
    font-size: 16px;
}

.correct-answer-display strong {
    color: #FF6B35;
    margin-right: 8px;
}

#correct-answer-text {
    font-size: 20px;
    font-weight: 700;
    color: #FF6B35;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .question-detail {
        margin: 12px;
        padding: 16px;
    }
    
    .question-detail-title {
        font-size: 20px;
    }
    
    .content-text,
    .answer-text,
    .explanation-text {
        font-size: 14px;
        padding: 12px;
    }
    
    .option-item {
        padding: 12px;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .result-message {
        font-size: 18px;
        padding: 12px;
    }
}

