@media (min-width: 1025px) {
    .login-form {
        width: 600px;
    }
    .header {
         border-bottom-right-radius: 1.5rem;
    }
    .appear-768px {
        display: none;
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .main-content {
        border-radius: 0;
        box-shadow: none;
        grid-column: 1/1;
    }

    .main-content.profile {
        padding: 0.875rem;
        grid-column: 1;
    }
    
    .header-text {
        display: none;
    }

    .grid-container {
        display: grid;
        grid-template-columns: 1fr !important;  
        grid-template-rows: 1fr;
        position: absolute;
    }    
    .appear-768px {
        display: none;
    }
    .pup-wrapper {
        display: none;
    }
    .profile-content-wrapper {
        padding: 1.2rem;
    }
}

@media (max-width: 868px) {
    .header-nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        align-items: center;
        padding-top: 0.2rem; padding-bottom: 0.2rem;
    }

    .main-content {
        border-radius: 0;
        padding: 1rem;
        padding-top: 1.1rem;
        padding-bottom: 2rem;
    }

    .main-content.profile {
        padding: 0.785rem;
        padding-top: 1.1rem;
        padding-bottom: 2rem;
        padding-right: 0.785rem;
        grid-column: 1;
    }

    .container {
        padding: 0;
        border-radius: 0;
    }

    .recent-discussion {
        padding: 1rem;
    }

    .header-nav-links {
        display: none;
    }

    .post-interactions {
        flex-direction: column;
        gap: 1rem;
        align-items: start;
    }

    .latest-post {
        width: calc(50% - 1rem); 
    }

    .link-wrapper {
        padding: 0;
    }

    .acc-info {
        flex-direction: column;
        gap: 0.4rem;
        border: 0;
    }

    .grid-container {
        display: grid;
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr;
        place-self: center;
        top: 4.4rem;
    }

    .item2 {
        display: none;
    }

    .post-title {
        white-space: wrap;
    }

    .min-post-container {
        width: 100%;
    }

    .min-title {
        max-width: 100%;
    }

    .renderPost-content {
        flex-direction: column;
    }

    .renderPost-metadata {
        width: 100%;
    }

    .header-search-input {
        width: 100%;
    }
    .users-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .profile-details {
        flex-direction: column;
    }

    .profile-info-container {
        height: 70px;
        justify-content: center;
    }

    .tags-grid {
        grid-template-columns: none;
    }

    .profile-name {
        font-size: 1.425rem; 
        line-height: calc(1.75 / 1.125); 
    }

    .profile-username {
        font-size: 0.875rem; 
        line-height: calc(1.25 / 0.875); 
    }

    .profile-picture {
        width: 140px;
        height: 140px;
    }

    ::-webkit-scrollbar {
        display: none;
    }
    html, body {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .interaction {
        padding: 0.4rem;
        padding-left: 0.55rem; padding-right: 0.55rem;
    }

    .profile-content-wrapper {
        flex-direction: column;
        padding: 0;
    }

    .profile-level-container {
        width: calc(100% - 2rem);
    }

    /* UTIL */
    .disappear-768px {
        display: none;
    }
    .appear-768px {
        display: flex;
    }

    .branding {
        display: none;
    }

    .user-table {
        display: flex;
        width: 100%;
    }

    .user-table thead {
        display: none; 
    }

    .user-table,
    .user-table tbody,
    .user-table tr,
    .user-table td {
        display: block;
        width: 100%;
    }

    .user-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-main-dark);
        border-radius: 0.5rem;
        background: var(--base-bg-one);
    }

    .user-table td {
        position: relative;
        border-bottom: none; 
    }

    .user-table td::before {
        content: attr(data-label);
        font-weight: 700; 
        display: block;
        margin-bottom: 0.25rem;
        color: var(--text-light);
        text-transform: uppercase;
        font-size: 0.875rem; 
    }

    .user-table td[data-label="Actions"] {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: flex-start;
        align-items: center;
    }

    .user-table td[data-label="Actions"]::before {
        display: none; 
    }

    .user-table td[data-label="Actions"] .action-button {
        flex: 1; 
        text-align: center;
    }
    .post-content-container img {
        width: 100%; 
        height: auto;
    }
    .groups-grid {
        grid-template-columns: 1fr;
    }
    .bottom-nav {
        display: block;
    }

    input, textarea, select, #submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-links a, .forum-links a {
        padding: 8px;
        font-size: 14px;
    }

    .post {
        padding: 15px;
    }

    .latest-post {
        width: 100%; 
    }
}