/* ============================================
   QUESTION PAGE STYLES
   ============================================ */

/* ============ QUESTION CARD ============ */
.question-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
}

.question-date {
    color: #10b981;
    font-weight: 600;
}

.question-badge {
    background: linear-gradient(135deg, #1e3a8a, #10b981);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.question-text {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid #10b981;
    border-radius: 8px;
    line-height: 1.6;
}

/* ============ ANSWER SECTION ============ */
.answer-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.answer-section h3 {
    color: #10b981;
    margin-bottom: 1.5rem;
}

.answer-form {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(30, 58, 138, 0.3);
    border-radius: 8px;
}

.answer-form .form-group:last-child {
    margin-bottom: 0;
}

.answer-form textarea {
    min-height: 120px;
    resize: vertical;
}

.answer-section button {
    background: linear-gradient(135deg, #1e3a8a 0%, #10b981 100%);
    color: #fff;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
}

.answer-section button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* ============ ANSWERS DISPLAY ============ */
.answers-display {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.answers-display h3 {
    color: #10b981;
    margin-bottom: 1.5rem;
}

.answer-card {
    background: rgba(30, 58, 138, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #10b981;
}

.answer-card:last-child {
    margin-bottom: 0;
}

.answer-author {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.answer-text {
    color: #e0e0e0;
    line-height: 1.6;
}

.btn-edit {
    background: transparent;
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 0.6rem 1.2rem;
    margin-top: 1rem;
}

.btn-edit:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

/* ============ HISTORY SECTION ============ */
.history-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
    margin-top: 2rem;
}

.history-card h2 {
    color: #10b981;
}

.history-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: linear-gradient(135deg, #1e3a8a, #10b981);
    color: #fff;
    border-color: #10b981;
}

.filter-btn:hover {
    border-color: #10b981;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: rgba(30, 58, 138, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateX(5px);
    background: rgba(30, 58, 138, 0.7);
}

.history-date {
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.history-question {
    color: #e0e0e0;
    line-height: 1.5;
}

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(16, 185, 129, 0.05);
    border: 2px dashed rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    margin: 2rem 0;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #10b981;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .question-text {
        font-size: 1.1rem;
    }

    .answer-form {
        padding: 0.75rem;
    }

    .history-filter {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}

