@import url('https://fonts.googleapis.com/css2?family=Afacad:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: var(--body-bg);
    color: var(--text-dark);
    font-family: 'Afacad', 'ABeeZee', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 240px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    padding: 24px;
    color: var(--white);
    font-size: 32px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.sidebar .nav {
    padding: 8px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 16px;
    color: var(--white);
    text-decoration: none;
    border-radius: 28px;
    transition: background .18s;
    width: 100%;
    font-size: 18px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

.sidebar .profile-mini {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.profile-mini-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.profile-mini img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-mini-name {
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
}

.profile-mini-handle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.main {
    margin-left: 240px;
    width: calc(100vw - 240px);
    min-height: 100vh;
    position: relative;
    background: var(--body-bg);
}

.cover {
    position: relative;
    height: 320px;
    width: 100%;
    overflow: hidden;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.profile-content {
    position: relative;
    width: 960px;
    margin: 0 auto;
    padding-top: 158px;
}

.profile-avatar {
    position: absolute;
    left: 0;
    top: -100px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid rgba(142, 223, 241, 0.45);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
}

.profile-info {
    position: absolute;
    margin-top: 0.5rem;
    left: 210px;
    top: 0;
}

.profile-info .name {
    font-family: 'Afacad', sans-serif;
    font-size: 28px;
    color: var(--text-dark);
    line-height: 32px;
}

.profile-info .handle {
    font-family: 'Afacad', sans-serif;
    font-size: 1.3rem;
    color: #506592;
    line-height: 36px;
}

/* PROFILE ACTION BUTTONS */
.profile-actions {
    position: absolute;
    right: 0;
    top: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 0.2rem;
}

/* FOLLOW BUTTON */
.btn-primary {
    background: linear-gradient(90deg, #FDBB22 0%, #D63F04 100%);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-family: 'Afacad', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* MESSAGE BUTTON */
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0faff;
    padding: 12px 20px;
    height: 45px;
    border-radius: 8px;
    border: 1.5px solid var(--main-hex);
    color: var(--text-dark);
    font-family: 'Afacad', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    gap: 8px;

    &:hover {
        color: var(--text-dark);
    }
}

.bio {
    position: absolute;
    left: 10px;
    top: 115px;
    width: 423px;
    font-size: 1.25rem;
    color: var(--text-dark);
    line-height: 23px;
}

.stats {
    position: absolute;
    left: 675px;
    top: 100px;
    display: flex;
    gap: 30px;
    width: fit-content;
}

.stats .item {
    text-align: center;
}

.stats .item .num {
    font-family: 'Afacad', sans-serif;
    font-size: 20px;
    line-height: 28px;
    color: var(--text-dark);
}

.stats .item .label {
    font-family: 'Afacad', sans-serif;
    font-size: 1.3rem;
    line-height: 20px;
    color: #506592;
    margin-top: 0;
}

.tabs {
    margin-top: 40px;
    width: 100%;
    position: relative;
}

.tabs .tab-list {
    position: relative;
    display: flex;
    gap: 24px;
    background: var(--sidebar-bg);
    border-radius: 46.245px;
    padding: 4.14px;
    width: 960px;
    height: 38.273px;
}

.tab {
    position: relative;
    padding: 8px 24px;
    border-radius: 46.245px;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Chillax', 'Afacad', sans-serif;
    color: var(--white);
    flex: 1;
    text-align: center;
    transition: color 0.2s;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.tab.active {
    color: var(--text-dark);
    z-index: 1;
}

.tabs::after {
    content: '';
    position: absolute;
    left: 4.14px;
    top: 4.14px;
    width: var(--pill-width);
    height: 29.997px;
    background: var(--body-bg);
    border-radius: 46.245px;
    transition: transform 0.3s ease;
    transform: var(--pill-transform);
}

.content-area {
    position: relative;
    margin-top: 32px;
    width: 100%;
    padding: 0 2px 24px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.7px;
    padding-bottom: 32px;
    padding: 0;
    position: relative;
}

.image-card {
    position: relative;
    height: 238.35px;
    border-radius: 3.712px;
    overflow: hidden;
    border: 3px solid #fff;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-card .more-options {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2.8px 2.8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    border: none;
    padding: 0;
}

.image-card .more-options svg {
    width: 14px;
    height: 14px;
    fill: #393843;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hidden {
    display: none;
}

/* Posts content wrapper */
.posts-content {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Empty State Styles */
.posts-grid .empty-state-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0px 20px;
    width: 960px;
    max-width: 100%;
    display: block;
    border-radius: 24px;
    margin: 0 auto;
    box-sizing: border-box;
}

.empty-state-title {
    font-size: 1.5rem!important;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    margin-top: 0;
}

.empty-state-text {
    font-size: 1rem;
    color: #0a0f65;
    margin: 0;
}

@media (max-width:1000px) {
    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
    }

    .profile-avatar {
        left: 50px;
        top: 200px;
    }

    .profile-info {
        left: 230px;
    }

    .content-area {
        left: 20px;
        width: calc(100% - 40px);
    }
}