/* Mobile-friendly forum styles */
@media (max-width: 768px) {
    /* General body adjustments - Respetando la navegación móvil */
    body {
        padding-top: 70px !important; /* Respeta la navegación móvil */
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
        margin: 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Container adjustments */
    .container, .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
        max-width: 100%;
    }

    /* Main content area */
    .main-content {
        padding: 10px;
        margin: 0;
        width: 100%;
    }

    /* Category list */
    .categories-list {
        flex-direction: column;
        width: 100%;
    }

    .category-card {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Posts list */
    .post-card {
        width: 100%;
        margin-bottom: 15px;
    }

    /* Header and nav */
    .forum-header {
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .forum-nav {
        width: 100%;
        margin-top: 10px;
    }

    /* Search bar */
    .search-container {
        width: 100%;
        margin: 10px 0;
    }

    /* Forum actions */
    .forum-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    /* Sort dropdown */
    .sort-dropdown {
        width: 100%;
    }

    /* FAB button */
    #fabButton {
        bottom: 70px;
        right: 15px;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        max-width: 95%;
    }

    /* CNSC Chat Widget */
    .cnsc-chat-widget {
        bottom: 10px;
        right: 10px;
        z-index: 9999;
    }

    .cnsc-chat-container {
        width: 90%;
        height: 80vh;
        bottom: 70px;
        right: 5%;
    }
}

/* Additional mobile improvements */
@media (max-width: 480px) {
    /* Even smaller screens */
    .category-tab {
        padding: 8px 12px;
        font-size: 14px;
    }

    .forum-header h1 {
        font-size: 20px;
    }

    .post-title {
        font-size: 16px;
    }

    .post-content {
        font-size: 14px;
    }

    /* Make sure buttons are easy to tap */
    button, .btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Ensure the chat button is visible but not intrusive */
    .cnsc-chat-toggle {
        width: 50px;
        height: 50px;
    }
}
