/* =============================================================
   local_helpcircle - Help Zone Plugin Styles
   Follows Moodle's Bootstrap base; prefixed with .helpcircle-
   ============================================================= */

/* ---- Container ---- */
.helpcircle-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
}

/* ---- Page toolbar ---- */
.helpcircle-page-title {
    color: #1a6e3c;
    font-weight: 700;
}

.helpcircle-ask-btn {
    background-color: #1a6e3c;
    border-color: #1a6e3c;
}

.helpcircle-ask-btn:hover {
    background-color: #145730;
    border-color: #145730;
}

/* ---- Filters ---- */
.helpcircle-filters {
    border-radius: 8px;
    border: 1px solid #d0e8d9;
    background-color: #f3faf6;
}

/* ---- Discussion cards ---- */
.helpcircle-discussion-card {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.15s ease-in-out;
}

.helpcircle-discussion-card:hover {
    box-shadow: 0 2px 8px rgba(26, 110, 60, 0.15);
    border-color: #1a6e3c;
}

.helpcircle-discussion-card.has-verified {
    border-left: 4px solid #28a745;
}

.helpcircle-title-link {
    color: #1a6e3c;
    font-weight: 600;
    text-decoration: none;
}

.helpcircle-title-link:hover {
    text-decoration: underline;
    color: #145730;
}

/* ---- Badges ---- */
.helpcircle-verified-badge {
    font-size: 0.78rem;
}

.helpcircle-subject-badge {
    font-size: 0.75rem;
    background-color: #17a2b8;
}

.helpcircle-grade-badge {
    font-size: 0.75rem;
}

/* ---- Author profile link ---- */
.helpcircle-author-link {
    color: inherit;
    text-decoration: none;
}

.helpcircle-author-link:hover {
    color: #1a6e3c;
    text-decoration: underline;
}

/* ---- Excerpt ---- */
.helpcircle-discussion-excerpt {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Stats ---- */
.helpcircle-stat {
    font-size: 0.82rem;
    color: #6c757d;
}

.helpcircle-stat i {
    margin-right: 3px;
}

/* ---- Question view ---- */
.helpcircle-question-card .card-header {
    background-color: #f3faf6;
    border-bottom: 1px solid #d0e8d9;
}

.helpcircle-question-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #212529;
}

.helpcircle-question-content img {
    max-width: 100%;
    height: auto;
}

/* ---- Answer cards ---- */
.helpcircle-answer-card {
    border-radius: 0.80rem;
}

.helpcircle-answer-card.border-success {
    border-color: #28a745 !important;
}

.helpcircle-answer-content {
    font-size: 0.97rem;
    line-height: 1.6;
}

.helpcircle-answer-author {
    font-size: 0.82rem;
}

/* ---- Answer form ---- */
.helpcircle-answer-form .card-header {
    background-color: #f3faf6;
    border-bottom: 1px solid #d0e8d9;
    color: #1a6e3c;
    font-weight: 600;
}

/* ---- Search form ---- */
.helpcircle-search-form .input-group {
    max-width: 600px;
}

/* ---- Pagination ---- */
.helpcircle-pagination .page-link {
    color: #1a6e3c;
}

.helpcircle-pagination .page-item.active .page-link {
    background-color: #1a6e3c;
    border-color: #1a6e3c;
}

/* ---- Empty state ---- */
.helpcircle-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6c757d;
    border-radius: 8px;
}

/* ---- Post form ---- */
.helpcircle-post-form-wrap {
    max-width: 720px;
    margin: 0 auto;
}

/* ---- Responsive adjustments ---- */
@media (max-width: 576px) {
    .helpcircle-discussion-header {
        flex-direction: column;
    }

    .helpcircle-badges {
        margin-top: 0.5rem;
    }

    .helpcircle-question-actions {
        margin-top: 0.5rem;
    }
}