/* Question Page Specific Styles */

.search-bar {
    padding: 16px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 8px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0 12px;
}

.search-icon {
    color: #999;
    margin-right: 8px;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 0;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.clear-search {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.clear-search:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Question List */
.question-list {
    padding: 0 16px;
}

.question-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
}

.question-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-item:active {
    transform: translateY(0);
}

.question-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.question-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    flex: 1;
    margin-right: 12px;
}

.question-item-arrow {
    color: #999;
    flex-shrink: 0;
    margin-top: 2px;
}

.question-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.question-item-category {
    background: #f0f8ff;
    color: #4A90E2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.question-item-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.question-item-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Question Modal */
.question-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.question-modal.show {
    display: flex;
}

.question-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.question-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    margin-right: 16px;
    line-height: 1.4;
}

.question-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #999;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.question-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.question-modal-body {
    padding: 20px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.question-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
}

.question-content h1,
.question-content h2,
.question-content h3 {
    margin: 20px 0 12px 0;
    color: #333;
}

.question-content h1 {
    font-size: 20px;
}

.question-content h2 {
    font-size: 18px;
}

.question-content h3 {
    font-size: 16px;
}

.question-content p {
    margin-bottom: 12px;
}

.question-content ul,
.question-content ol {
    margin: 12px 0;
    padding-left: 20px;
}

.question-content li {
    margin-bottom: 6px;
}

.question-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}

.question-content pre {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 12px 0;
}

.question-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
}

/* Question Actions */
.question-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.helpful-btn,
.not-helpful-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.helpful-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
}

.not-helpful-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.helpful-btn.active {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.not-helpful-btn.active {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

/* Empty States */
.empty-icon {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-subtitle {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .question-modal {
        padding: 10px;
    }
    
    .question-modal-content {
        max-height: 90vh;
    }
    
    .question-modal-header,
    .question-modal-body {
        padding: 16px;
    }
    
    .question-modal-title {
        font-size: 16px;
    }
    
    .question-item-title {
        font-size: 15px;
    }
    
    .question-actions {
        flex-direction: column;
    }
    
    .helpful-btn,
    .not-helpful-btn {
        justify-content: center;
    }
}

