/* GLOBAL  */

* {box-sizing: border-box;}
html {scroll-behavior: smooth;}
body {
    margin: 0;
    padding: 0;
    background: #f2f4f7;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}
a {text-decoration: none;}
a:hover {text-decoration: none;}

.forum-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;
}

/* == WARNING ==== */

.mobilenutext {
    background: #173f8a;
    color: #fff;
    border: 3px solid #f000a8;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-style: italic;
    padding: 10px 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.mobilenutext span { margin-right: 5px; }

.mobilenutext {
    font-size: 15px;
}

.topbottombtn {
    background: #B71C1C;
    color: #fff;
    border-color: #B71C1C;
}

.quotebtn {
    background: #B71C1C;
    color: #fff;
    border-color: #B71C1C;
}

/* === NAVIGATION === */

.forum-nav {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.forum-nav .row {
    margin: 0;
}

.nav-item {
    padding: 0;
    border-right: 1px solid #ddd;
}

.nav-item:last-child {
    border-right: 0;
}

.nav-item a {
    display: block;
    text-align: center;
    padding: 13px 5px;
    color: #173f8a;
    font-weight: bold;
    font-size: 15px;
    transition: 0.2s;
}

.nav-item a:hover {
    background: #173f8a;
    color: #fff;
}

.nav-item span {
    font-size: 16px;
    margin-right: 3px;
}

/* == ACTIONS === */

.forum-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.profile-upload-btn {
    display: inline-block;
    background: #fff;
    color: #173f8a;
    border: 1px solid #173f8a;
    border-radius: 5px;
    padding: 9px 15px;
    font-weight: bold;
}

.profile-upload-btn:hover {
    background: #173f8a;
    color: #fff;
}

.deleteallbtn {
    margin: 0;
}

/* === PAGE TITLE === */

.forum-title {
    background: linear-gradient(135deg, #173f8a, #2864c7);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 20px 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.forum-title h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 7px;
}

.forum-title p {
    margin: 0;
    opacity: 0.9;
}

/* === PAGE NAVIGATION === */

.page-navigation {
    text-align: center;
    margin: 15px 0;
}

.page-navigation a {
    display: inline-block;
    background: #fff;
    color: #173f8a;
    border: 1px solid #173f8a;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: bold;
}

.page-navigation a:hover {
    background: #173f8a;
    color: #fff;
}

.bottom-navigation {
    margin-top: 25px;
}

/* === POST FORM === */

.post-form-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.post-form-header {
    background: #500000;
    color: #fff;
    padding: 13px 18px;
    font-size: 17px;
    font-weight: bold;
}

.post-form-header span {
    margin-right: 5px;
}

.post-form-card form {
    padding: 20px;
}

.post-form-card label {
    font-weight: bold;
    margin-bottom: 7px;
}

.post-form-card textarea {
    min-height: 120px;
    resize: vertical;
    border-radius: 5px;
}

.form-submit {
    text-align: right;
    margin-top: 12px;
}

.submit-post-btn {
    min-width: 120px;
    font-weight: bold;
}


/* == FORUM POST == */

.forum-post {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border: 3px solid #3F51B5;
}

/* === POST HEADER === */

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #500000;
    color: #fff;
    padding: 12px 15px;
}

.user-info {
    display: flex;
    align-items: center;
}

.profile-image {
    width: 55px;
    height: 55px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: 10px;
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
}

.post-date {
    font-size: 12px;
    margin-top: 3px;
    opacity: 0.85;
}

.user-status {
    font-size: 12px;
    white-space: nowrap;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #aaa;
    border-radius: 50%;
    margin-right: 4px;
}


/* == POST CONTENT == */

.post-content {
    padding: 20px;
    text-align: center;
    background: #fff;
}

.showguesingtext {
    color: #0645d8;
    font-size: 25px;
    line-height: 1.6;
    font-weight: bold;
    word-break: break-word;
}

.quoted-text {
    background: #f1f3f5;
    border-left: 4px solid #173f8a;
    color: #555;
    text-align: left;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.post-pass {
    margin-top: 15px;
    color: #555;
    font-size: 14px;
    font-weight: bold;
}

/* == POST NAVIGATION === */

.post-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 38%;
    /*background: #f8f9fa;*/
    /*border-top: 1px solid #ddd;*/
    /*border-bottom: 1px solid #ddd;*/
    padding: 10px;
}

.post-navigation a {
    /*background: #fff;*/
    border: 1px solid #ccc;
    /*color: #333;*/
    border-radius: 4px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: bold;
}

.post-navigation a:hover {
    background: #173f8a;
    color: #fff;
    border-color: #173f8a;
}

/* == POST ACTIONS == */

.post-actions {
    text-align: right;
    padding: 12px;
}

.post-actions .btn {
    margin: 3px;
}

/* === NO POSTS === */

.no-posts {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 50px 20px;
    margin-bottom: 20px;
}

.no-post-icon {
    font-size: 40px;
}

.no-posts h3 {
    margin: 10px 0;
}

.no-posts p {
    color: #777;
}


/* == PAGINATION === */

.forum-pagination {
    text-align: center;
    margin: 20px 0;
}

.forum-pagination .pagination {
    margin: 0;
}

.forum-pagination .pagination > li > a,
.forum-pagination .pagination > li > span {
    color: #173f8a;
}


/* == FOOTER === */

.forum-footer {
    background: #1c1c1c;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 22px 15px;
    margin-top: 25px;
}

.online-users {
    font-size: 14px;
    margin-bottom: 18px;
}

.online-users a {
    color: #72a7ff;
}

.online-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 4px;
}

.separator {
    margin: 0 5px;
    opacity: 0.5;
}

.powered-by {
    color: #aaa;
    font-size: 13px;
}

.brand-name {
    display: inline-block;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-top: 3px;
}

.brand-name:hover {
    color: #72a7ff;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #72a7ff;
    font-weight: bold;
}

/* == DAILY TITLE === */

.daily-title {
    text-align: center;
    padding: 20px 10px 10px;
}

.daily-title h2 {
    color: #500000;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.daily-title p {
    color: #777;
    margin: 5px 0 0;
    font-weight: bold;
}

/* == TABLET === */

@media (max-width: 767px) {

    .forum-page {
        padding: 7px;
    }

    .mobilenutext {
        font-size: 13px;
        padding: 8px 5px;
    }

    .nav-item a {
        min-height: 52px;
        padding: 9px 2px;
        font-size: 12px;
    }

    .nav-item span {
        display: block;
        font-size: 15px;
        margin-bottom: 2px;
    }

    .forum-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-upload-btn,
    .deleteallbtn {
        width: 100%;
        text-align: center;
    }

    .forum-title {
        padding: 15px 10px;
    }

    .forum-title h1 {
        font-size: 19px;
    }

    .forum-title p {
        font-size: 12px;
    }

    .post-header {
        padding: 10px;
    }

    .profile-image {
        width: 45px;
        height: 45px;
    }

    .user-name {
        font-size: 14px;
    }

    .post-date {
        font-size: 10px;
    }

    .user-status {
        font-size: 10px;
    }

    .post-content {
        padding: 15px 10px;
    }

    .showguesingtext {
        font-size: 25px;
    }

    .post-form-card form {
        padding: 15px;
    }

    .form-submit {
        text-align: center;
    }

    .submit-post-btn {
        width: 100%;
    }

    .daily-title h2 {
        font-size: 16px;
    }

}

/* == SMALL MOBILE == */

@media (max-width: 400px) {

    .nav-item a {
        font-size: 12px;
    }

    .forum-title h1 {
        font-size: 17px;
    }

    .post-header {
        align-items: flex-start;
    }

    .user-status {
        padding-top: 5px;
    }

    .showguesingtext {
        font-size: 20px;
    }

    .post-navigation a {
        padding: 5px 9px;
        font-size: 11px;
    }

    .brand-name {
        font-size: 20px;
    }
    
    .post-navigation {
        gap: 21%;
    }

}

/* == PROFILE UPLOAD PAGE == */

.profile-page {
    margin: 0;
    padding: 40px 15px;
    min-height: 100vh;
    background: #f4f6f9;
    font-family: Arial, Helvetica, sans-serif;
}

.profile-upload-wrapper {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

/* Header */

.profile-header {
    text-align: center;
    margin-bottom: 25px;
}

.profile-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #337ab7;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 20px rgba(51, 122, 183, 0.20);
}

.profile-header h2 {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
    color: #222;
}

.profile-header p {
    margin: 8px 0 0;
    color: #777;
    font-size: 14px;
}

/* Main Card */

.profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

/* User Info */

.profile-user-info {
    display: flex;
    align-items: center;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eeeeee;
}

.user-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    background: #f0f6fc;
    color: #337ab7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.user-details {
    margin-left: 15px;
}

.user-label {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-details h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* Upload */

.upload-group {
    margin-bottom: 20px;
}

.upload-group > label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.upload-group > label .glyphicon {
    color: #337ab7;
    margin-right: 5px;
}

.upload-box {
    position: relative;
    min-height: 130px;
    padding: 25px 20px;
    border: 2px dashed #cfd8e3;
    border-radius: 10px;
    background: #fafcff;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-box:hover {
    border-color: #337ab7;
    background: #f5faff;
}

.upload-icon {
    display: block;
    font-size: 34px;
    color: #337ab7;
    margin-bottom: 10px;
}

.upload-text {
    display: block;
}

.upload-text strong {
    display: block;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

.upload-text span {
    display: block;
    color: #999;
    font-size: 12px;
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Error */

.profile-error {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 5px;
    background: #fff2f2;
    border: 1px solid #f3c2c2;
    color: #d9534f;
    font-size: 13px;
}

.profile-error .glyphicon {
    margin-right: 5px;
}

/* Preview */

.profile-preview-wrapper {
    margin: 20px 0;
    text-align: center;
}

.preview-title {
    display: block;
    margin-bottom: 10px;
    color: #777;
    font-size: 13px;
    font-weight: 600;
}

.profile-preview {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0f3f7;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.10);
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Submit Button */

.btn-upload {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 7px;
    background: #337ab7;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-upload:hover,
.btn-upload:focus {
    background: #286090;
    color: #fff;
    outline: none;
}

.btn-upload .glyphicon {
    margin-right: 6px;
}

/* Footer */

.profile-footer {
    text-align: center;
    margin-top: 18px;
    color: #999;
    font-size: 12px;
}

.profile-footer .glyphicon {
    margin-right: 4px;
}

/* = MOBILE == */

@media (max-width: 767px) {

    .profile-page {
        padding: 25px 12px;
    }

    .profile-header {
        margin-bottom: 20px;
    }

    .profile-icon {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }

    .profile-header h2 {
        font-size: 23px;
    }

    .profile-card {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .profile-user-info {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .user-avatar {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        font-size: 21px;
    }

    .user-details {
        margin-left: 12px;
    }

    .user-details h4 {
        font-size: 16px;
    }

    .upload-box {
        min-height: 120px;
        padding: 22px 12px;
    }

    .upload-icon {
        font-size: 30px;
    }
    
    .post-navigation {
        gap: 21%;
    }
}


