/* ===================================================================
   MODERN FORUM STYLES - CHÚ BÉ RỒNG ONLINE
   Updated: 2026 - Clean, Modern, Bug-Free, Responsive
   =================================================================== */

#box_forums {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background-color: transparent;
}

/* Modern Auth Buttons */
.auth-btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px auto 14px;
    padding: 4px;
    width: 100%;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 160px;
    padding: 11px 26px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 30px;
    text-decoration: none !important;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    outline: none;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.5s ease;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn-login {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(255, 75, 43, 0.45);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.auth-btn-login:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 7px 24px rgba(255, 75, 43, 0.65);
    filter: brightness(1.08);
}

.auth-btn-register {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 180, 219, 0.45);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.auth-btn-register:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 7px 24px rgba(0, 180, 219, 0.65);
    filter: brightness(1.08);
}

.auth-btn:active {
    transform: translateY(1px) scale(0.98);
}

.auth-btn i {
    font-size: 17px;
}

/* ===================================================================
   COMPACT MODERN USER INFO BOX (LOGGED IN) - GỌN GÀNG, TINH TẾ
   =================================================================== */
#user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 100%;
    width: 100%;
    margin: 8px auto 14px;
    padding: 10px 14px;
    background: rgba(30, 12, 4, 0.88);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
    text-align: left;
    overflow: hidden;
}

.user-left-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

#user-info .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fbbf24;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    object-fit: cover;
    margin: 0;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

#user-info .user-avatar:hover {
    transform: scale(1.08);
}

.user-text-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.user-greeting {
    font-size: 13.5px;
    color: #fff;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.user-greeting strong {
    color: #fbbf24;
}

.user-balance-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fde68a !important;
    font-weight: 800;
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
}

.user-right-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

#user-info .account-actions {
    display: flex;
    gap: 5px;
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#user-info .account-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #fff !important;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#user-info .recharge-actions a {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

#user-info .btn-recharge-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4) !important;
}

#user-info .btn-recharge-card:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.6) !important;
}

#user-info .btn-recharge-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4) !important;
}

#user-info .btn-recharge-gold:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.6) !important;
}

#user-info .secondary-actions a {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fde68a !important;
}

#user-info .btn-history {
    background: rgba(2, 132, 199, 0.25) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #7dd3fc !important;
}
#user-info .btn-history:hover {
    background: #0284c7 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

#user-info .account-actions a.btn-logout {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
}
#user-info .account-actions a.btn-logout:hover {
    background: #ef4444 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    #user-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 12px;
    }
    .user-left-profile {
        flex-direction: column;
        gap: 6px;
    }
    .user-text-info {
        text-align: center;
        align-items: center;
    }
    .user-right-actions {
        align-items: center;
        width: 100%;
    }
    #user-info .account-actions {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
}


.auth-btn-recharge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.auth-btn-recharge:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 7px 24px rgba(16, 185, 129, 0.65) !important;
    filter: brightness(1.08);
}

#user-info .account-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#user-info .account-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(232, 74, 53, 0.6);
    filter: brightness(1.12);
}

#user-info .account-actions a.btn-logout {
    background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
}

#user-info .account-actions a.btn-logout:hover {
    box-shadow: 0 5px 14px rgba(45, 52, 54, 0.6);
}

#user-info .secondary-actions a {
    background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
}

#user-info .secondary-actions a:hover {
    box-shadow: 0 5px 14px rgba(243, 156, 18, 0.6);
}

.box_inputboxx {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    clear: both;
}

/* Forum Category Box */
.box_list_chuyenmuc {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(130, 52, 20, 0.25);
    border-radius: 14px;
    padding: 14px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Forum Post Items */
.forum-post-item {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    margin-bottom: 9px;
    background: #ffffff;
    border: 1.5px solid rgba(175, 75, 25, 0.22);
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.forum-post-item:hover {
    transform: translateX(4px);
    background: #fffdf9;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
    border-color: #f38500;
}

/* Pinned Posts (Ghim) */
#stick {
    margin-bottom: 12px;
}

#stick .forum-post-item {
    background: linear-gradient(135deg, #fff7eb 0%, #ffe9d1 100%);
    border: 1.5px solid #e07000;
    box-shadow: 0 4px 12px rgba(224, 112, 0, 0.2);
    position: relative;
}

#stick .forum-post-item::before {
    content: 'GHIM';
    position: absolute;
    top: 6px;
    right: 8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.4);
}

#stick .forum-post-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(224, 112, 0, 0.32);
}

/* Post Avatar */
.post-avatar-wrapper {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffd700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    background: #fff;
}

.post-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Content */
.post-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    padding-right: 35px;
}

.post-title-link {
    color: #a82303;
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    transition: color 0.2s ease;
}

.forum-post-item:hover .post-title-link {
    color: #d81b3a;
}

.hot-icon {
    vertical-align: middle;
    margin-left: 5px;
    height: 13px;
    width: auto;
}

.post-meta-info {
    font-size: 11.5px;
    color: #7d5236;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.post-meta-info a {
    color: #8f2905;
    text-decoration: none;
    font-weight: 700;
}

.post-meta-info a:hover {
    text-decoration: underline;
}

.post-meta-info i {
    color: #946342;
    margin-left: 6px;
    font-style: normal;
    font-size: 10.5px;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    padding: 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-item {
    padding: 6px 14px;
    border: 1.5px solid #8f3d10;
    background: linear-gradient(180deg, #b65d2f 0%, #944015 100%);
    color: #fff !important;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.22s ease;
}

.pagination-item.active,
.pagination-item:hover {
    background: linear-gradient(180deg, #ff9900 0%, #d35400 100%);
    border-color: #ffd700;
    box-shadow: 0 4px 10px rgba(255, 153, 0, 0.45);
    transform: translateY(-2px);
}
