* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(124, 58, 237, 0.08),
            transparent 35%
        ),
        #070910;

    color: #f5f5f7;

    font-family: Arial, sans-serif;
}


/* =========================================
   HEADER
========================================= */

header {
    height: 80px;

    position: sticky;
    top: 0;

    z-index: 100;

    display: flex;
    align-items: center;

    padding: 0 52px;

    background: rgba(7, 9, 16, 0.9);

    border-bottom: 1px solid #1c2130;

    backdrop-filter: blur(20px);
}

.veyna-logo {
    color: #a855f7;

    font-size: 28px;
    font-weight: 900;

    letter-spacing: 1px;

    text-decoration: none;

    text-shadow:
        0 0 25px rgba(168, 85, 247, 0.35);
}


/* =========================================
   SEARCH
========================================= */

#search {
    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    width: 450px;
    height: 43px;

    display: flex;

    background: #111522;

    border: 1px solid #1d2434;

    border-radius: 24px;
}

#search button {
    width: 48px;

    border: none;

    background: transparent;

    cursor: pointer;
}

#search-logo {
    width: 18px;
    height: 18px;

    opacity: .7;
}

#search-bar {
    flex: 1;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    font-size: 14px;
}

#search-bar::placeholder {
    color: #6e7485;
}


/* =========================================
   HEADER ACTIONS
========================================= */

.header-actions {
    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 12px;
}

.header-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #dce1ef;

    text-decoration: none;

    border: 1px solid #202737;

    border-radius: 50%;

    font-size: 20px;
}

.header-profile #icon {
    width: 43px;
    height: 43px;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid #a855f7;

    padding: 2px;
}


/* =========================================
   MAIN
========================================= */

main {
    width: min(1050px, 100%);

    margin: auto;

    padding: 55px 25px 100px;
}


/* =========================================
   PROFILE HEADER
========================================= */

.profile-header {
    display: flex;

    align-items: flex-start;

    gap: 70px;

    padding-bottom: 45px;
}


/* =========================================
   PROFILE IMAGE
========================================= */

.profile-image-container {
    flex-shrink: 0;

    width: 180px;
    height: 180px;

    padding: 5px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #c026ff,
            #6366f1
        );
}

.profile-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #070910;
}


/* =========================================
   PROFILE INFO
========================================= */

.profile-info {
    flex: 1;

    padding-top: 5px;
}

.profile-name-row {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 30px;
}

.profile-name-row h1 {
    margin: 0;

    font-size: 25px;

    font-weight: 600;
}


/* =========================================
   FOLLOW
========================================= */

.follow-btn {
    padding: 9px 25px;

    border: none;

    border-radius: 8px;

    background:
        linear-gradient(
            100deg,
            #7c3aed,
            #a855f7
        );

    color: white;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

.follow-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(124, 58, 237, .3);
}


/* =========================================
   MORE
========================================= */

.more-button {
    margin-left: auto;

    border: none;

    background: transparent;

    color: #858c9c;

    font-size: 18px;

    cursor: pointer;
}


/* =========================================
   STATS
========================================= */

.profile-stats {
    display: flex;

    gap: 45px;

    margin-bottom: 25px;
}

.profile-stats div {
    display: flex;

    align-items: center;

    gap: 7px;
}

.profile-stats strong {
    font-size: 15px;
}

.profile-stats span {
    color: #8a91a0;

    font-size: 13px;
}


/* =========================================
   DESCRIPTION
========================================= */

.profile-description {
    max-width: 520px;
}

.profile-description p {
    margin: 0;

    color: #b9bfcc;

    font-size: 14px;

    line-height: 1.9;
}

.empty-description {
    color: #606777 !important;
}


/* =========================================
   TABS
========================================= */

.profile-tabs {
    height: 55px;

    display: flex;

    justify-content: center;

    gap: 70px;

    border-top: 1px solid #1c2332;

    border-bottom: 1px solid #1c2332;
}

.profile-tabs a {
    position: relative;

    display: flex;

    align-items: center;

    padding: 0 10px;

    color: #71798b;

    text-decoration: none;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: .8px;
}

.profile-tabs a.active {
    color: #ffffff;
}

.profile-tabs a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    height: 2px;

    background: #a855f7;

    box-shadow:
        0 0 12px rgba(168, 85, 247, .6);
}


/* =========================================
   POSTS GRID
========================================= */

.posts-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 4px;

    padding-top: 20px;
}

.post {
    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #10141e;

    text-decoration: none;
}

.post img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}

.post:hover img {
    transform: scale(1.04);
}


/* =========================================
   POST OVERLAY
========================================= */

.post-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 25px;

    background: rgba(0, 0, 0, .55);

    color: white;

    opacity: 0;

    transition: opacity .2s;
}

.post:hover .post-overlay {
    opacity: 1;
}

.post-overlay span {
    font-size: 13px;

    font-weight: 600;
}


/* =========================================
   NO POSTS
========================================= */

.no-posts {
    grid-column: 1 / -1;

    min-height: 300px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    color: #737b8c;
}

.no-posts-icon {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border: 1px solid #30384b;

    border-radius: 50%;

    font-size: 28px;
}

.no-posts h2 {
    margin: 0 0 8px;

    color: #d9deeb;

    font-size: 18px;
}

.no-posts p {
    margin: 0;

    font-size: 12px;
}


/* =========================================
   MOBILE NAV
========================================= */

footer {
    display: none;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 800px) {

    header {
        height: 65px;

        padding: 0 18px;
    }

    .veyna-logo {
        font-size: 22px;
    }

    #search {
        width: 40vw;
    }

    .header-icon {
        display: none;
    }


    main {
        padding: 35px 15px 90px;
    }


    .profile-header {
        gap: 30px;
    }

    .profile-image-container {
        width: 140px;
        height: 140px;
    }


    footer {
        position: fixed;

        display: block;

        bottom: 0;
        left: 0;
        right: 0;

        height: 65px;

        z-index: 200;

        background: rgba(8, 10, 17, .94);

        backdrop-filter: blur(20px);

        border-top: 1px solid #1c2332;
    }

    footer nav {
        height: 100%;

        display: flex;

        align-items: center;

        justify-content: space-around;
    }

    footer nav a {
        width: 45px;
        height: 45px;

        display: flex;

        align-items: center;
        justify-content: center;
    }

    footer img {
        width: 21px;
        height: 21px;

        object-fit: contain;

        border-radius: 50%;
    }

    .mobile-create {
        color: white;

        font-size: 25px;

        text-decoration: none;

        background: #7c3aed;

        border-radius: 10px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 550px) {

    .veyna-logo {
        display: none;
    }

    #search {
        left: 15px;

        transform: none;

        width: calc(100% - 75px);
    }


    main {
        padding: 25px 10px 85px;
    }


    .profile-header {
        gap: 20px;

        padding-bottom: 30px;
    }

    .profile-image-container {
        width: 90px;
        height: 90px;

        padding: 3px;
    }

    .profile-image {
        border-width: 3px;
    }


    .profile-name-row {
        flex-wrap: wrap;

        gap: 8px;

        margin-bottom: 18px;
    }

    .profile-name-row h1 {
        width: 100%;

        font-size: 20px;
    }

    .follow-button {
        padding: 7px 18px;
    }


    .profile-stats {
        gap: 15px;

        margin-bottom: 15px;
    }

    .profile-stats div {
        flex-direction: column;

        gap: 3px;
    }

    .profile-stats strong {
        font-size: 13px;
    }

    .profile-stats span {
        font-size: 10px;
    }


    .profile-description p {
        font-size: 11px;

        line-height: 1.7;
    }


    .profile-tabs {
        gap: 35px;
    }


    .posts-grid {
        gap: 2px;

        padding-top: 10px;
    }

    .post-overlay {
        display: none;
    }
}