/* =====================================================
   My Forum - Professional phpBB Style
   Namespace: mf-
===================================================== */

/* Reset container */
.mf-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: Arial, Helvetica, sans-serif;
}

/* =====================================================
   Header
===================================================== */

.mf-header {
    background: linear-gradient(to bottom, #5f7f9f, #4c6a86);
    color: #fff;
    padding: 14px 20px;
    border-radius: 6px 6px 0 0;
}

.mf-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

/* =====================================================
   Navigation
===================================================== */

.mf-nav {
    background: #e9edf2;
    padding: 10px 15px;
    border: 1px solid #cfd6dc;
    border-top: none;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.mf-nav a {
    text-decoration: none;
    font-weight: 600;
    color: #2f6da3;
    font-size: 14px;
}

.mf-nav a:hover {
    text-decoration: underline;
}

.mf-nav .mf-active {
    color: #000;
}

.mf-nav .mf-logout {
    margin-left: auto;
    color: #c0392b;
}

/* =====================================================
   Forum Box
===================================================== */

.mf-box {
    border: 1px solid #cfd6dc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    background: #fff;
}

/* =====================================================
   Topic Table
===================================================== */

.mf-table {
    width: 100%;
    border-collapse: collapse;
}

.mf-table thead {
    background: #dfe6ee;
}

.mf-table th {
    text-align: left;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #cfd6dc;
}

.mf-table td {
    padding: 12px;
    border-bottom: 1px solid #ececec;
    vertical-align: middle;
    font-size: 14px;
}

.mf-table tr:nth-child(even) {
    background: #f8fafc;
}

/* Topic title */
.mf-topic-title {
    font-weight: bold;
    color: #2f6da3;
    text-decoration: none;
}

.mf-topic-title:hover {
    text-decoration: underline;
}

.mf-topic-meta {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

/* Replies column */
.mf-replies-count {
    text-align: center;
    font-weight: bold;
}

/* =====================================================
   Single Topic View
===================================================== */

.mf-topic-wrapper {
    border: 1px solid #cfd6dc;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 30px;
}

.mf-topic-header {
    background: #dfe6ee;
    padding: 12px 20px;
    font-weight: 600;
}

.mf-topic-content {
    padding: 20px;
    line-height: 1.6;
}

.mf-topic-author {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

/* =====================================================
   Reply Section
===================================================== */

.mf-replies {
    margin-top: 30px;
}

.mf-reply-item {
    border: 1px solid #e1e6eb;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.mf-reply-header {
    background: #f3f6f9;
    padding: 10px 15px;
    font-size: 13px;
    color: #555;
}

.mf-reply-content {
    padding: 15px;
    font-size: 14px;
}

/* =====================================================
   Forms
===================================================== */

.mf-form {
    margin-top: 20px;
}

.mf-form-group {
    margin-bottom: 15px;
}

.mf-form input,
.mf-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd6dc;
    border-radius: 5px;
    font-size: 14px;
}

.mf-form textarea {
    resize: vertical;
}

/* Buttons */

.mf-btn {
    background: #2f6da3;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.mf-btn:hover {
    background: #255b87;
}

/* Secondary button */
.mf-btn-secondary {
    background: #95a5a6;
}

.mf-btn-secondary:hover {
    background: #7f8c8d;
}

/* =====================================================
   Members List
===================================================== */

.mf-members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mf-member-card {
    border: 1px solid #e1e6eb;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    background: #fff;
}

.mf-member-card img {
    border-radius: 50%;
    margin-bottom: 10px;
}

.mf-member-name {
    font-weight: 600;
    font-size: 14px;
}

/* =====================================================
   Pagination
===================================================== */

.mf-pagination {
    margin-top: 20px;
}

.mf-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 5px;
    border: 1px solid #cfd6dc;
    border-radius: 4px;
    text-decoration: none;
    color: #2f6da3;
}

.mf-pagination .current {
    background: #2f6da3;
    color: #fff;
}

/* =====================================================
   Alerts
===================================================== */

.mf-alert {
    background: #fdecea;
    color: #c0392b;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Success */
.mf-success {
    background: #e8f5e9;
    color: #2e7d32;
}

/* =====================================================
   Responsive
===================================================== */

@media (max-width: 768px) {

    .mf-table thead {
        display: none;
    }

    .mf-table tr {
        display: block;
        margin-bottom: 15px;
        border-bottom: 2px solid #ddd;
    }

    .mf-table td {
        display: block;
        text-align: left;
        padding: 8px 12px;
    }

    .mf-replies-count {
        text-align: left;
    }

    .mf-nav {
        flex-direction: column;
        gap: 10px;
    }

    .mf-nav .mf-logout {
        margin-left: 0;
    }
}