
:root {
    /* Base font size for rem calculations */
    font-size: 16px;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #6A5AF9, #8E2DE2);
    --secondary-gradient: linear-gradient(135deg, #FF6B6B, #FF8E53);
    --background-gradient: linear-gradient(135deg, #F5F7FA, #E6E9F0);
    
    /* Colors */
    --text-dark: #1A202C;
    --text-medium: #4A5568;
    --text-light: #718096;
    --white: #FFFFFF;
    
    /* Shadows */
    --shadow-subtle: 0 0.625rem 1.5625rem rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 0.9375rem 2.1875rem rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --border-radius: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    ::-webkit-scrollbar {
        display: none;
    }
    
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

html, body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: none;
    font-size: 16px; /* Consistent base font size */
}

body {
    background: var(--background-gradient);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-dark); /* 50px */
}

    .pc-layout {
        display: grid;
        grid-template-columns: 17.5rem 20rem 1fr; /* 280px, 320px */
        grid-template-areas: "sidebar profile content";
        min-height: 100vh;
        max-width: 96.875rem; /* 1550px */
        margin: 0 auto;
        /* background: var(--white); */
        border-radius: 1.5rem; /* 24px */
        overflow: hidden;
        /* box-shadow: var(--shadow-medium); */
        position: relative;
    }

    .pc-sidebar {
        grid-area: sidebar;
        background: var(--white);
        padding: 1.875rem; /* 30px */
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
    }

    .logo-container {
        display: flex;
        align-items: center;
        gap: 0.9375rem; /* 15px */
        margin-bottom: 2.5rem; /* 40px */
        position: relative;
    }

    .logo {
        width: 3.125rem; /* 50px */
        height: 3.125rem; /* 50px */
        background: var(--primary-gradient);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-subtle);
        position: relative;
        overflow: hidden;
    }

    .logo-text {
        font-family: 'Unica One', sans-serif;
        font-size: 2rem;
        font-weight: 500;
        color: var(--text-dark);
        letter-spacing: -0.0225rem; /* -1px */
    }

    .sidebar-menu {
        max-height: calc(100vh - 10rem); /* Adjust based on header and other elements */
        overflow-y: auto;
        padding-right: 0.625rem; /* Space for scrollbar */
        display: flex;
        flex-direction: column;
        gap: 1.25rem; /* 20px */
    }

    /* Webkit (Chrome, Safari, newer versions of Opera) */
    .sidebar-menu::-webkit-scrollbar {
        width: 0.5rem; /* Thin scrollbar */
    }

    .sidebar-menu::-webkit-scrollbar-track {
        background: rgba(106, 90, 249, 0.05); /* Light background */
        border-radius: 0.625rem;
    }

    .sidebar-menu::-webkit-scrollbar-thumb {
        background: rgba(106, 90, 249, 0.3); /* Subtle scrollbar color */
        border-radius: 0.625rem;
        transition: background 0.3s ease;
    }

    .sidebar-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(106, 90, 249, 0.5); /* Slightly darker on hover */
    }

    /* Firefox scrollbar */
    .sidebar-menu {
        scrollbar-width: thin; /* For Firefox */
        scrollbar-color: rgba(106, 90, 249, 0.3) rgba(106, 90, 249, 0.05);
    }

    .menu-section {
        display: flex;
        flex-direction: column;
        gap: 0.625rem; /* 10px */
    }

    .menu-section-title {
        font-size: 0.875rem; /* 14px */
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.0625rem; /* 1px */
        margin-bottom: 0.3125rem; /* 5px */
        padding: 0 0.9375rem; /* 15px */
    }

    .menu-item {
        display: flex;
        align-items: center;
        gap: 0.9375rem; /* 15px */
        padding: 0.75rem 0.9375rem; /* 12px 15px */
        border-radius: 0.75rem; /* 12px */
        color: var(--text-medium);
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }

    .menu-item svg {
        stroke-width: 1.5;
        opacity: 0.6;
        transition: all 0.3s ease;
        width: 1.5rem;
        height: 1.5rem;
    }

    .menu-item:hover, .menu-item.active {
        background: rgba(106, 90, 249, 0.05);
        color: #6A5AF9;
        transform: translateX(0.625rem); /* 10px */
    }

    .menu-item.logout {
        color: #FF6B6B;
        transition: all 0.3s ease;
    }

    .menu-item.logout:hover {
        background: rgba(255, 107, 107, 0.1);
        color: #FF4757;
    }

    .menu-item.logout svg {
        stroke: #FF6B6B;
    }

    .menu-item.logout:hover svg {
        stroke: #FF4757;
    }

    .menu-item span {
        font-weight: 600;
        font-size: 0.9375rem; /* 15px */
    }

    .sidebar-divider {
        width: 100%;
        height: 1px;
        background: rgba(106, 90, 249, 0.1);
        margin: 0.9375rem 0; /* 15px */
    }

    /* Profile Styles */
    .pc-profile {
        grid-area: profile;
        background: var(--white);
        padding: 1.875rem; /* 30px */
        text-align: center;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        transition: all 0.5s ease;
        opacity: 0;
        visibility: hidden;
        transform: translateX(3.125rem); /* 50px */
    }

    .pc-profile.show {
        display: flex;
        grid-area: profile;
        flex-direction: column;
        align-items: center;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        animation: slideInFromRight 0.5s ease-out, fadeIn 0.5s ease-out;
    }

    .profile-image {
        width: 8.75rem; /* 140px */
        height: 8.75rem; /* 140px */
        border-radius: 15%;
        background: var(--secondary-gradient);
        margin-bottom: 1.25rem; /* 20px */
        box-shadow: var(--shadow-medium);
        position: relative;
        overflow: hidden;
    }

    .profile-image::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(45deg);
        transition: all 0.4s ease;
    }

    .profile-image:hover {
        transform: scale(1.05) rotate(3deg);
    }

    .profile-image:hover::before {
        transform: translate(25%, 25%);
    }

    .profile-name {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0.3125rem; /* 5px */
        letter-spacing: -0.5px;
    }

    .profile-handle {
        color: var(--text-light);
        font-size: 0.95rem;
        margin-bottom: 1.25rem; /* 20px */
    }

    .stats {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 1.25rem; /* 20px */
        /* background: rgba(106, 90, 249, 0.04); */
        padding: 0.9375rem 0.625rem; /* 15px 10px */
        border-radius: 0.75rem; /* 12px */
        position: relative;
    }

    .stat-item {
        text-align: center;
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 0.625rem; /* 10px */
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .stat-item:hover {
        transform: scale(1.05);
    }

    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 45%;
        width: 1px;
        background: rgba(106, 90, 249, 0.15);
    }

    .stat-value {
        font-size: 1.5rem; /* 24px */
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0.3125rem; /* 5px */
    }

    .stat-label {
        font-size: 0.875rem; /* 14px */
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.0625rem; /* 1px */
    }

    .follow-button {
        width: 100%;
        padding: 0.875rem; /* 14px */
        background: var(--primary-gradient);
        color: var(--white);
        border: none;
        border-radius: var(--border-radius);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
        letter-spacing: 0.5px;
    }

    .follow-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: all 0.4s ease;
    }

    .follow-button:hover::before {
        left: 100%;
    }

    .follow-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(106, 90, 249, 0.2);
    }

    /* Content Styles */
    .pc-content {
        grid-area: content;
        background: var(--background-gradient);
        padding: 1.875rem; /* 30px */
        transition: all 0.5s ease;
        opacity: 0;
        visibility: hidden;
        transform: translateX(3.125rem); /* 50px */
    }

    .pc-content.show {
        display: block;
        grid-area: content;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        animation: slideInFromRight 0.5s ease-out, fadeIn 0.5s ease-out;
    }

    .tabs {
        display: flex;
        gap: 1.5625rem; /* 25px */
        border-bottom: 2px solid rgba(0, 0, 0, 0.05);
        margin-bottom: 1.875rem; /* 30px */
    }

    .tab {
        padding: 0.9375rem 0; /* 15px 0 */
        color: var(--text-light);
        cursor: pointer;
        position: relative;
        transition: color 0.3s ease;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    .tab:hover {
        color: var(--text-dark);
    }

    .tab.active {
        color: #6A5AF9;
        font-weight: 600;
    }

    .tab.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--primary-gradient);
    }

    .gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.85rem; /* 20px */
    }

    .gallery-item {
        aspect-ratio: 1;
        border-radius: var(--border-radius);
        background: var(--secondary-gradient);
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
    }

    .gallery-item::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(45deg);
        transition: all 0.4s ease;
    }

    .gallery-item:hover {
        transform: scale(1.05) rotate(2deg);
        box-shadow: var(--shadow-medium);
    }

    .gallery-item:hover::before {
        transform: translate(25%, 25%);
    }

/* Animation for Profile and Content Sections */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(3.125rem); /* 50px */
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Users Modal Styles */
.users-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.users-modal.show {
    display: flex;
    opacity: 1;
}

.users-modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 31.25rem; /* 500px */
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.25rem; /* 20px */
    box-shadow: var(--shadow-medium);
    position: relative;
    animation: slideInFromTop 0.4s ease-out;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-3.125rem); /* -50px */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.users-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.9375rem; /* 15px */
    margin-bottom: 0.9375rem; /* 15px */
}

.users-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.users-modal-close:hover {
    color: var(--text-dark);
}

.users-list {
    display: grid;
    gap: 0.9375rem; /* 15px */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: rgba(106, 90, 249, 0.5) rgba(106, 90, 249, 0.05);
}

.users-list::-webkit-scrollbar {
    width: 0.5rem; /* 8px */
    background: transparent; /* Optional: make scrollbar background transparent */
}

.users-list::-webkit-scrollbar-track {
    background: rgba(106, 90, 249, 0.1); /* Light purple track */
    border-radius: 0.625rem; /* 10px */
}

.users-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6A5AF9, #8E2DE2); /* Gradient scrollbar */
    border-radius: 0.625rem; /* 10px */
    transition: background 0.3s ease;
}

.users-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8E2DE2, #6A5AF9); /* Slightly different gradient on hover */
}

.user-item {
    display: flex;
    align-items: center;
    gap: 0.9375rem; /* 15px */
    padding: 0.625rem; /* 10px */
    border-radius: 0.75rem; /* 12px */
    background: rgba(106, 90, 249, 0.02);
    transition: background 0.3s ease;
}

.user-item:hover {
    background: rgba(106, 90, 249, 0.1);
}

.user-avatar {
    width: 3.125rem; /* 50px */
    height: 3.125rem; /* 50px */
    border-radius: 50%;
    background: var(--secondary-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: bold;
}

.user-details {
    flex-grow: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
}

.user-handle {
    color: var(--text-light);
    font-size: 0.875rem; /* 14px */
}

.user-follow-btn {
    padding: 0.5rem 0.9375rem; /* 8px 15px */
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 1.25rem; /* 20px */
    font-size: 0.875rem; /* 14px */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.user-follow-btn:hover {
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .pc-layout {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "sidebar"
            "profile"
            "content";
        max-width: 100%;
        border-radius: 0;
    }

    .pc-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 320px;
        height: 100%;
        background-color: var(--white);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        overflow-y: auto;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    /* Ensure sidebar is fully visible when opened */
    .pc-sidebar.mobile-menu-open {
        display: block !important;
        transform: translateX(0) !important;
    }

    .mobile-menu-overlay.show {
        display: block !important;
        opacity: 1;
    }
}
@media screen and (max-width: 500px) {
    .profile-image{
        left: -7.5rem !important;
    }
}
/* Very Small Mobile Devices */
@media screen and (max-width: 400px) {
    .pc-sidebar {
        padding: 0.5rem;
    }

    .sidebar-menu-item {
        font-size: 0.8rem;
    }
    .profile-image{
        left: -6rem !important;
    }
    .profile-name {
        font-size: 1.5rem;
    }

    .profile-handle {
        font-size: 0.9rem;
    }

    .stats {
        font-size: 0.9rem;
    }

    .users-modal-content {
        width: 95%;
        margin: 5% auto;
    }
}

/* Mobile Header and Footer Styles */
.mobile-header {
    display: none;
}

@media screen and (max-width: 900px) {
    .mobile-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--white);
        z-index: 100;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    body {
        padding-top: 4.5rem;
    }
}

@media screen and (min-width: 769px) {
    .mobile-header {
        display: none;
    }

    body {
        padding-top: 0;
    }
}

.mobile-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.mobile-header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-header-logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    overflow: hidden;
}

.mobile-header-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-header-logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-header-search-btn,
.mobile-header-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    padding: 0;
}

.mobile-header-search-btn:hover,
.mobile-header-menu-btn:hover {
    background-color: rgba(106, 90, 249, 0.1);
}

.mobile-header-search-btn svg,
.mobile-header-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--text-medium);
    transition: stroke 0.3s ease;
}

.mobile-header-search-btn:hover svg,
.mobile-header-menu-btn:hover svg {
    stroke: var(--primary-color);
}

.mobile-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 0.5rem 1rem;
    justify-content: space-around;
    align-items: center;
}

.mobile-footer-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.mobile-footer-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--text-medium);
    transition: stroke 0.3s ease;
}

.mobile-footer-icon.active svg {
    stroke: var(--primary-gradient-color, #6A5AF9);
}

.mobile-footer-icon.active {
    color: var(--primary-gradient-color, #6A5AF9);
}

.mobile-footer-icon img {
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.6;
}

.mobile-footer-icon.active img {
    opacity: 1;
}

/* Adjust mobile layout to accommodate header and footer */
@media screen and (max-width: 900px) {
    .mobile-header {
        display: block;
    }

    body {
        padding-top: 4.5rem; /* Adjust for fixed mobile header */
    }
}

@media screen and (min-width: 769px) {
    .mobile-footer {
        display: none !important;
    }
}

/* Hide PC layout Selffo elements in mobile view */
@media screen and (max-width: 900px) {
    .logo-container {
        display: none !important;
    }
}

@media screen and (max-width: 900px) {
    .mobile-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--white);
        z-index: 100;
        box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
    }

    body {
        padding-bottom: 4.5rem; /* Adjust for fixed mobile footer */
    }
}

@media screen and (min-width: 769px) {
    .mobile-footer {
        display: none; /* Hide in PC layout */
    }

    body {
        padding-bottom: 0; /* Remove bottom padding in PC layout */
    }
}

/* Default state: Hide mobile elements */
.mobile-header,
.mobile-header-container,
.mobile-header-right,
.mobile-header-search-btn,
.mobile-header-menu-btn,
.mobile-sidebar-header,
.mobile-sidebar-close-btn,
.mobile-menu-overlay {
    display: none !important;
}

/* Mobile Layout Styles */
@media screen and (max-width: 900px) {
    /* Mobile Header */
    .mobile-header {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 56px;
        background-color: var(--white);
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .mobile-header-container {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 0 1rem;
    }

    .mobile-header-right {
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
    }

    .mobile-header-search-btn,
    .mobile-header-menu-btn {
        display: flex !important;
        background: none;
        border: none;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

    .mobile-header-search-btn:hover,
    .mobile-header-menu-btn:hover {
        background-color: rgba(106, 90, 249, 0.1);
    }

    .mobile-header-search-btn svg,
    .mobile-header-menu-btn svg {
        width: 24px;
        height: 24px;
        stroke: var(--text-medium);
        transition: stroke 0.3s ease;
    }

    .mobile-header-search-btn:hover svg,
    .mobile-header-menu-btn:hover svg {
        stroke: var(--primary-color);
    }

    /* Mobile Sidebar */
    .mobile-sidebar-header {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .mobile-sidebar-close-btn {
        display: flex !important;
        background: none;
        border: none;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

    .mobile-sidebar-close-btn:hover {
        background-color: rgba(106, 90, 249, 0.1);
    }

    .mobile-sidebar-close-btn svg {
        width: 24px;
        height: 24px;
        stroke: var(--text-medium);
        transition: stroke 0.3s ease;
    }

    .mobile-sidebar-close-btn:hover svg {
        stroke: var(--primary-color);
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .mobile-menu-overlay.show {
        display: block !important;
        opacity: 1;
    }

    /* Adjust body for fixed mobile header */
    body {
        padding-top: 56px;
    }

    .pc-layout{
        min-height: 70vh;
    }
    .pc-content {
        padding-top: 0;
    }

    
    .gallery {
        gap: 1.25rem !important; /* 20px */
    }
    
    .profile-image{
        left: -40%;
        width: 6.75rem;
        height: 6.75rem;
    }
    .profile-name {
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: -0.5px;
        margin-left: 5rem;
        margin-top: -8rem;
        margin-bottom: 0rem;
    }
    .profile-handle{
        font-size: 0.8rem;
        margin-left:3.125rem;
        margin-bottom: 0.8rem;
    }
    .stats{
        width: 70%;
        margin-top: -1.3rem;
        margin-left: 8rem;
    }
    .stat-item {
        padding: 0 0.3rem;
    }
    .stat-value {
        font-size: 1rem;
        font-weight: 500;
        margin-bottom: 0.2rem;
    }
    .stat-label {
        font-size: 0.6rem;
    }
}

@media screen and (max-width: 370px) {
    .pc-content {
        padding: 1.5rem;
    }
    .profile-image{
        /* left: -40%; */
        width: 5.75rem;
        height: 5.75rem;
    }
    .profile-name {
        font-size: 1rem;
        margin-left:2.8rem;
        margin-top: -7rem;
    }
    .profile-handle{
        font-size: 0.8rem;
        margin-left:2rem;
        margin-bottom: 0.8rem;
    }
    .stats{
        width: 70%;
        margin-top: -1.3rem;
        margin-left: 6rem;
    }
    .stat-item {
        padding: 0 0.3rem;
    }
    .stat-value {
        font-size: 1rem;
        font-weight: 500;
        margin-bottom: 0.2rem;
    }
    .stat-label {
        font-size: 0.6rem;
    }
}

/* PC Layout: Ensure mobile elements are completely hidden */
@media screen and (min-width: 901px) {
    .mobile-header,
    .mobile-header-container,
    .mobile-header-right,
    .mobile-header-search-btn,
    .mobile-header-menu-btn,
    .mobile-sidebar-header,
    .mobile-sidebar-close-btn,
    .mobile-menu-overlay {
        display: none !important;
    }

    body {
        padding-top: 0;
    }
}

/* Menu Toggle Button Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    width: 40px;
    height: 30px;
    align-items: center;
    justify-content: center;
}

/* .menu-toggle .hamburger-icon,
.menu-toggle .cross-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    stroke: var(--text-medium);
    transition: opacity 0.3s ease;
} */

/* .menu-toggle .cross-icon {
    opacity: 0;
    display: none;
} */

/* .menu-toggle.active .hamburger-icon {
    opacity: 0;
    display: none;
} */

.menu-toggle.active:before {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle:before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 2px;
    top: 7px;
    right: 0;
    position: absolute;
    border-radius: 1px;
    background: #1b1d21;
    -webkit-transition: all .25s;
    -o-transition: all .25s;
    transition: all .25s;
    padding: 0 2px 0 0 ;
}
.menu-toggle.active:after {
    transform: translateY(-8px) rotate(-45deg);
    top: 22px;
    width: 30px;
}
.menu-toggle:after {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    top: 18px;
    right: 0;
    position: absolute;
    border-radius: 1px;
    background: #1b1d21;
    -webkit-transition: all .25s;
    -o-transition: all .25s;
    transition: all .25s;
}

.menu-toggle.active .cross-icon {
    opacity: 1;
    display: block;
}



@media screen and (max-width: 900px) {
    .menu-toggle {
        display: flex !important;
    }
}

/* Mobile Header SVG Icon Visibility */
.mobile-header-search-btn svg,
.mobile-header-menu-btn svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 24px !important;
    height: 24px !important;
    stroke: var(--text-medium) !important;
    transition: stroke 0.3s ease !important;
    pointer-events: none !important;
}

/* Prevent SVG from being hidden */
.mobile-header-search-btn svg.hidden,
.mobile-header-menu-btn svg.hidden {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hover state for SVG icons */
.mobile-header-search-btn:hover svg,
.mobile-header-menu-btn:hover svg {
    stroke: var(--primary-color) !important;
}

/* Mobile Layout Specific SVG Handling */
@media screen and (max-width: 900px) {
    .mobile-header-search-btn svg,
    .mobile-header-menu-btn svg {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Sliding Menu Styles */
@media screen and (max-width: 900px) {
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .pc-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100%;
        background: var(--white);
        z-index: 1000;
        transition: left 0.3s ease;

        padding-top: 60px;
    }

    .pc-sidebar.active {
        left: 0;
    }

    .menu-toggle {
        position: relative;
        z-index: 1001;
    }

    .menu-toggle .hamburger-icon,
    .menu-toggle .cross-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 24px;
        height: 24px;
        stroke: var(--text-medium);
        transition: all 0.3s ease;
    }

    .menu-toggle .cross-icon {
        opacity: 0;
        visibility: hidden;
    }

    .menu-toggle.active .hamburger-icon {
        opacity: 0;
        visibility: hidden;
    }

    .menu-toggle.active .cross-icon {
        opacity: 1;
        visibility: visible;
    }
}

/* Update mobile sidebar styles */
@media screen and (max-width: 900px) {
    .pc-sidebar {
        position: fixed;
        top: 0;
        left: -280px; /* Start offscreen */
        width: 280px;
        height: 100vh;
        background: var(--white);
        z-index: 1001;
        transition: transform 0.3s ease;
        padding-top: 60px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        transform: translateX(-100%);
        display: block !important; /* Force display */
    }   

    .pc-sidebar.active {
        transform: translateX(0);
        left: 0;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Add these new styles */
.no-more-posts {
    grid-column: 1 / -1;
    text-align: center;
    /* padding: 2rem; */
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    /* background: rgba(106, 90, 249, 0.05); */
    border-radius: var(--border-radius);
    /* margin-top: 1rem; */
}

.no-more-posts span {
    display: inline-block;
    position: relative;
}

.no-more-posts span::before,
.no-more-posts span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 3rem;
    height: 1px;
    background: rgba(106, 90, 249, 0.2);
}

.no-more-posts span::before {
    right: calc(100% + 1rem);
}

.no-more-posts span::after {
    left: calc(100% + 1rem);
}

@media screen and (max-width: 768px) {
    .no-more-posts span::before,
    .no-more-posts span::after {
        width: 2rem;
    }
}