﻿/* Enhanced Question Cards and Display Styling */
/* This stylesheet complements the main Live.cshtml styling and provides additional question-specific enhancements */

:root {
    --question-primary: #667eea;
    --question-light: #f0f4ff;
    --question-border: #e9ecef;
    --question-text-dark: #2c3e50;
    --question-text-light: #95a5a6;
}

/* Question Card Container */
.question-item {
    position: relative;
}

/* Question with Divider */
.question-card + .question-card {
    margin-top: 0.5rem;
}

/* Question Card Hover Effects */
.question-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-card:active {
    transform: translateY(-2px) !important;
}

/* Question Avatar Variations */
.question-avatar.avatar-my-question {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.question-avatar.avatar-member-question {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

/* Question Badge Variations */
.asker-badge.badge-owner {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.asker-badge.badge-member {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.asker-badge.badge-guest {
    background: #6c757d;
}

/* Question Status Indicators */
.question-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-answered {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.status-answered i::before {
    content: '✓';
    margin-right: 0.35rem;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.status-pending i::before {
    content: '⏱';
    margin-right: 0.35rem;
}

.status-approved {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 3px solid #17a2b8;
}

.status-approved i::before {
    content: '✓';
    margin-right: 0.35rem;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.status-rejected i::before {
    content: '✗';
    margin-right: 0.35rem;
}

/* Question Action Buttons */
.question-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-question-action {
    background: transparent;
    border: 1px solid #e9ecef;
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-question-action:hover {
    background: #f0f4ff;
    border-color: #667eea;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-question-action.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-question-like {
    color: #e74c3c;
}

.btn-question-reply {
    color: #3498db;
}

.btn-question-share {
    color: #2ecc71;
}

/* Question Reply/Response Section */
.question-replies {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.question-reply {
    background: #f8f9fa;
    border-left: 3px solid var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #2c3e50;
}

.reply-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.reply-timestamp {
    font-size: 0.75rem;
    color: #95a5a6;
    margin-left: 0.5rem;
}

/* Question Attachment Styling */
.question-attachments {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.attachment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f4ff;
    border: 1px solid #667eea;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.attachment-badge:hover {
    background: #667eea;
    color: white;
}

.attachment-badge i {
    font-size: 1rem;
}

/* Question Search/Filter Results Highlighting */
.question-card.highlight {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.question-card.highlight .question-body {
    background: linear-gradient(120deg, transparent, rgba(255, 193, 7, 0.3), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Questions List Statistics */
.questions-stats {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: #95a5a6;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Pagination for Questions */
.questions-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-link {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-link.disabled {
    color: #bdc3c7;
    cursor: not-allowed;
}

/* No Questions State */
.questions-no-results {
    text-align: center;
    padding: 3rem 2rem;
}

.questions-no-results i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
    display: block;
}

.questions-no-results h5 {
    color: var(--question-text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.questions-no-results p {
    color: var(--question-text-light);
    font-size: 0.95rem;
}

/* Mobile Responsive for Question Cards */
@@media (max-width: 768px) {
    .questions-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        flex: 1;
        justify-content: space-between;
    }

    .question-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .question-actions {
        justify-content: space-between;
    }
}

@@media (max-width: 576px) {
    .question-card {
        padding: 0.75rem;
    }

    .question-header {
        gap: 0.5rem;
    }

    .question-asker {
        flex-wrap: wrap;
    }

    .question-topic {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .attachment-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    .questions-pagination {
        gap: 0.3rem;
    }

    .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* Print Friendly Styles */
@media print {
    .question-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e9ecef;
    }

    .question-action-btn,
    .btn-question-action {
        display: none;
    }

    .question-footer {
        border-top: 2px solid #e9ecef;
        padding-top: 0.75rem;
    }
}
