/* =============================================================================
   Mentor Feedback System — mfs-styles.css
   Loaded on the front end by assets.php via wp_enqueue_style.
   ============================================================================= */

/* ── Wrapper ── */
.mfs-wrap {
    max-width: 800px;
    margin: 2rem auto;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #1a1a2e;
}

.mfs-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 3px solid #005a87;
    color: #1a1a2e;
}

/* ── Tabs ── */
.mfs-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e0e0f0;
}

.mfs-tab {
    padding: .6rem 1.4rem;
    border: none;
    background: none;
    font-size: .95rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}

.mfs-tab:hover             { color: #005a87; }
.mfs-tab--active           { color: #005a87; border-bottom-color: #005a87; }
.mfs-tab-panel--hidden     { display: none; }

/* ── Grade card (ACF records) ── */
.mfs-grade-card {
    border: 1px solid #005a87;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.mfs-grade-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    background: #005a87;
    color: #fff;
    padding: .75rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.mfs-grade-meta      { font-weight: 400; font-size: .9rem; opacity: .9; }

.mfs-section-heading {
    background: #005a87;
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    margin: 1.25rem 0 .5rem;
}

.mfs-feedback-notes {
    background: #f7f7f7;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-top: 1.25rem;
}

.mfs-rating-key {
    font-size: .82rem;
    font-style: italic;
    color: #6b7280;
    margin-top: 1rem;
}

/* ── Form ── */
.mfs-form {
    background: #f9f9ff;
    border: 1px solid #e0e0f0;
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mfs-field   { display: flex; flex-direction: column; gap: .4rem; }
.mfs-label   { font-size: .9rem; font-weight: 600; color: #374151; }
.mfs-required { color: #ef4444; margin-left: 2px; }

.mfs-input {
    padding: .65rem .9rem;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: .95rem;
    background: #fff;
    transition: border-color .2s;
    width: 100%;
    box-sizing: border-box;
}

.mfs-input:focus {
    outline: none;
    border-color: #005a87;
    box-shadow: 0 0 0 3px rgba(0, 90, 135, .12);
}

.mfs-input-disabled { background: #f3f4f6 !important; color: #6b7280; cursor: not-allowed; }

.mfs-file-wrapper { display: flex; flex-direction: column; gap: .3rem; }

.mfs-file-input {
    padding: .5rem;
    border: 1.5px dashed #a5b4fc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: .9rem;
}

.mfs-file-hint { font-size: .78rem; color: #6b7280; }

/* ── Buttons ── */
.mfs-btn {
    align-self: flex-start;
    background: #005a87;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .7rem 1.6rem;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.mfs-btn:hover  { background: #004a70; transform: translateY(-1px); }
.mfs-btn:active { transform: translateY(0); }

.mfs-btn-secondary {
    background: #fff;
    color: #005a87;
    border: 1.5px solid #005a87 !important;
    align-self: flex-end;
}

.mfs-btn-secondary:hover { background: #e8f4fb; }

/* ── Filters ── */
.mfs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    background: #f9f9ff;
    border: 1px solid #e0e0f0;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.mfs-filter-group  { display: flex; flex-direction: column; gap: .35rem; flex: 1; min-width: 180px; }
.mfs-filter-label  { font-size: .82rem; font-weight: 600; color: #374151; }

.mfs-filter-select {
    padding: .6rem .85rem;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: .9rem;
    background: #fff;
}

.mfs-filter-select:focus {
    outline: none;
    border-color: #005a87;
    box-shadow: 0 0 0 3px rgba(0, 90, 135, .12);
}

.mfs-summary      { font-size: .85rem; color: #6b7280; margin-bottom: .75rem; }
.mfs-table-scroll { overflow-x: auto; }

/* ── Table ── */
.mfs-table                          { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mfs-table thead tr                 { background: #005a87; color: #fff; }
.mfs-table th,
.mfs-table td                       { padding: .7rem 1rem; text-align: left; }
.mfs-table tbody tr:nth-child(even) { background: #f3f4f6; }
.mfs-table tbody tr:hover           { background: #e8f4fb; }

/* ── Links ── */
.mfs-download-link {
    color: #005a87;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.mfs-download-link:hover { text-decoration: underline; }
.mfs-dl-icon             { font-size: 1rem; }

/* ── Notices ── */
.mfs-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: .75rem 1rem;
    margin-bottom: .5rem;
}

.mfs-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: .75rem 1rem;
    margin-bottom: .5rem;
}

.mfs-empty { color: #6b7280; font-style: italic; padding: 1rem 0; }

/* ── Mobile ── */
@media (max-width: 600px) {
    .mfs-grade-header { flex-direction: column; }

    .mfs-table thead                            { display: none; }
    .mfs-table,
    .mfs-table tbody,
    .mfs-table tr,
    .mfs-table td                               { display: block; width: 100%; }
    .mfs-table td                               { padding: .4rem .6rem; }
    .mfs-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        color: #6b7280;
        font-size: .78rem;
    }
}
