
/* =====================================================
   VEYNA HOME
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 45% 0%,
            rgba(102, 51, 204, 0.07),
            transparent 35%
        ),
        #070910;

    color: #f5f5f7;

    font-family:
        Inter,
        Arial,
        sans-serif;
}


/* =====================================================
   HEADER
===================================================== */

header {
    height: 80px;

    position: sticky;
    top: 0;

    z-index: 100;

    display: flex;
    align-items: center;

    padding: 0 52px;

    border-bottom: 1px solid #1c2130;

    background: rgba(7, 9, 16, 0.88);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


/* =====================================================
   VEYNA LOGO
===================================================== */

.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: 475px;
    height: 44px;

    display: flex;
    align-items: center;

    background: #111522;

    border: 1px solid #1d2434;

    border-radius: 24px;

    transition: 0.2s;
}

#search:focus-within {
    border-color: #8b5cf6;

    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.08);
}

#search button {
    width: 48px;
    height: 100%;

    border: 0;

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

#search-logo {
    width: 19px;
    height: 19px;

    opacity: 0.7;
}

#search-bar {
    flex: 1;

    height: 100%;

    padding: 0 10px 0 0;

    border: 0;
    outline: 0;

    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: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #dce1ef;

    border: 1px solid #202737;

    border-radius: 50%;

    text-decoration: none;

    font-size: 21px;

    transition: 0.2s;
}

.header-icon:hover {
    color: #a855f7;

    border-color: #8b5cf6;

    background: #111522;
}

.header-profile {
    display: flex;

    margin-left: 8px;
}

.header-profile #icon {
    width: 44px;
    height: 44px;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid #a855f7;

    padding: 2px;

    transition: 0.2s;
}

.header-profile #icon:hover {
    transform: scale(1.06);

    box-shadow:
        0 0 25px rgba(168, 85, 247, 0.4);
}

.header-login {
    padding: 9px 17px;

    color: white;

    text-decoration: none;

    border: 1px solid #292f42;

    border-radius: 9px;
}


/* =====================================================
   MAIN
===================================================== */

#main {
    width: min(1470px, 100%);

    margin: 0 auto;

    padding: 25px 25px 60px;

    display: grid;

    grid-template-columns:
        270px
        minmax(450px, 710px)
        330px;

    gap: 18px;

    align-items: start;
}


/* =====================================================
   SIDEBAR
===================================================== */

aside {
    position: sticky;

    top: 105px;

    min-height: calc(100vh - 130px);

    padding: 10px 8px;
}

.sidebar-nav {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.sidebar-item {
    position: relative;

    min-height: 52px;

    display: flex;
    align-items: center;

    gap: 18px;

    padding: 0 17px;

    color: #d9deeb;

    text-decoration: none;

    font-size: 15px;

    border-radius: 12px;

    transition:
        background 0.2s,
        color 0.2s,
        transform 0.2s;
}

.sidebar-item:hover {
    color: white;

    background: #111522;

    transform: translateX(2px);
}

.sidebar-item.active {
    color: #c084fc;

    background:
        linear-gradient(
            100deg,
            rgba(139, 92, 246, 0.25),
            rgba(139, 92, 246, 0.08)
        );

    box-shadow:
        inset 0 0 0 1px rgba(139, 92, 246, 0.08);
}

.sidebar-icon {
    width: 28px;

    display: flex;
    justify-content: center;

    font-size: 25px;

    line-height: 1;
}

.notification-dot {
    width: 7px;
    height: 7px;

    margin-left: auto;

    border-radius: 50%;

    background: #a855f7;

    box-shadow:
        0 0 10px rgba(168, 85, 247, 0.7);
}


/* =====================================================
   SIDEBAR FOLLOWING
===================================================== */

.sidebar-following {
    margin-top: 35px;

    padding-top: 20px;

    border-top: 1px solid #1c2130;
}

.sidebar-section-title {
    padding: 0 14px 14px;

    color: #777f92;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.follower {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 9px 12px;

    color: white;

    text-decoration: none;

    border-radius: 10px;

    transition: 0.2s;
}

.follower:hover {
    background: #111522;
}

.follower .logo {
    width: 36px;
    height: 36px;

    object-fit: cover;

    border-radius: 50%;
}

.follower h3 {
    margin: 0 0 2px;

    font-size: 12px;

    font-weight: 600;
}

.follower span {
    color: #6f7688;

    font-size: 10px;
}


/* =====================================================
   CENTER
===================================================== */

main {
    min-width: 0;
}


/* =====================================================
   STORIES
===================================================== */

.stories_s {
    padding: 20px;

    margin-bottom: 18px;

    background: #0c101a;

    border: 1px solid #1c2332;

    border-radius: 15px;
}

.section-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;

    font-size: 18px;
}

.section-header a {
    color: #b56cff;

    font-size: 12px;

    text-decoration: none;
}

.stories-list {
    display: flex;

    gap: 17px;

    overflow-x: auto;

    scrollbar-width: none;
}

.stories-list::-webkit-scrollbar {
    display: none;
}

.story {
    min-width: 70px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    color: #dce1eb;

    text-decoration: none;
}

.story-image {
    position: relative;

    width: 64px;
    height: 64px;

    padding: 3px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #c026ff,
            #6366f1
        );
}

.story-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid #0c101a;
}

.story > span {
    max-width: 70px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 10px;
}

.story-plus {
    position: absolute;

    right: -2px;
    bottom: -1px;

    width: 21px;
    height: 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #8b5cf6;

    border: 2px solid #0c101a;

    font-size: 16px;
}


/* =====================================================
   POSTS
===================================================== */

article {
    margin-bottom: 20px;

    overflow: hidden;

    background: #0c101a;

    border: 1px solid #1c2332;

    border-radius: 15px;
}


/* =====================================================
   POST HEADER
===================================================== */

.post-header {
    height: 67px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 10px 15px;
}

.UN-art {
    display: flex;

    align-items: center;

    gap: 10px;

    color: white;

    text-decoration: none;
}

.UN-art .icon-btn {
    width: 38px;
    height: 38px;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid #9b5cff;
}

.UN-art h2 {
    margin: 0 0 3px;

    font-size: 13px;
}

.UN-art span {
    display: block;

    color: #72798a;

    font-size: 10px;
}

.post-menu {
    border: 0;

    background: transparent;

    color: #8b92a2;

    font-size: 16px;

    cursor: pointer;
}


/* =====================================================
   POST IMAGE
===================================================== */

article > #article {
    display: block;

    width: 100%;

    max-height: 680px;

    object-fit: cover;

    background: #080b12;
}


/* =====================================================
   ACTIONS
===================================================== */

.post-actions,
#likers {
    display: flex;

    align-items: center;

    gap: 2px;

    padding: 11px 13px 3px;
}

.post-actions button,
#likers button {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    background: transparent;

    color: #e7ebf4;

    border-radius: 50%;

    cursor: pointer;

    transition: 0.2s;
}

.post-actions button:hover,
#likers button:hover {
    background: #151b29;

    transform: scale(1.06);
}

.post-actions .icon-btn,
#likers .icon-btn {
    width: 21px;
    height: 21px;

    object-fit: contain;
}

.share-icon {
    font-size: 25px;
}

.save-button {
    margin-left: auto;
}


/* =====================================================
   POST CONTENT
===================================================== */

.post-content {
    padding: 3px 17px 18px;
}

.post-content strong {
    display: block;

    margin-bottom: 10px;

    font-size: 12px;
}

.post-content p {
    margin: 0;

    color: #b8becb;

    font-size: 12px;

    line-height: 1.8;
}

.post-content p b {
    margin-right: 5px;

    color: white;
}

.comments {
    display: block;

    margin-top: 9px;

    color: #697184;

    text-decoration: none;

    font-size: 11px;
}

.comments:hover {
    color: #a855f7;
}


/* =====================================================
   SUGGESTED
===================================================== */

.suggested {
    position: sticky;

    top: 105px;

    padding: 20px;

    min-height: 350px;

    background: #0c101a;

    border: 1px solid #1c2332;

    border-radius: 15px;
}

.suggested-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;
}

.suggested-header h2 {
    margin: 0;

    font-size: 16px;
}

.suggested-header a {
    color: #b56cff;

    font-size: 11px;

    text-decoration: none;
}

.suggested-list {
    display: flex;

    flex-direction: column;

    gap: 17px;
}

.suggested-user {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}

.suggested-profile {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 10px;

    color: white;

    text-decoration: none;
}

.suggested-profile img {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 50%;
}

.suggested-profile div {
    min-width: 0;
}

.suggested-profile strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 12px;
}

.suggested-profile span {
    display: block;

    margin-top: 4px;

    color: #697184;

    font-size: 9px;
}

.suggest-button {
    flex-shrink: 0;

    padding: 7px 13px;

    color: #b56cff;

    background: transparent;

    border: 1px solid #934cff;

    border-radius: 7px;

    font-size: 10px;

    cursor: pointer;

    transition: 0.2s;
}

.suggest-button:hover {
    color: white;

    background: #7c3aed;

    border-color: #7c3aed;

    box-shadow:
        0 0 15px rgba(124, 58, 237, 0.25);
}


/* =====================================================
   MOBILE FOOTER
===================================================== */

footer {
    display: none;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1150px) {

    #main {
        grid-template-columns:
            220px
            minmax(420px, 680px);
    }

    .suggested {
        display: none;
    }
}


/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 1000px) {
    #search{
        width: 35vw;
    }
}
@media (max-width: 800px) {

    header {
        height: 65px;

        padding: 0 18px;
    }

    .veyna-logo {
        font-size: 22px;
    }

    #search {
        width: 50%;

        min-width: 150px;
    }

    .header-icon {
        display: none;
    }

    .header-profile #icon {
        width: 37px;
        height: 37px;
    }


    #main {
        display: block;

        width: 100%;

        padding: 12px 0 80px;
    }

    aside {
        display: none;
    }

    main {
        width: 100%;
    }

    .stories_s {
        margin: 0 10px 12px;

        padding: 17px;

        border-radius: 13px;
    }

    article {
        border-radius: 0;

        border-left: 0;
        border-right: 0;
    }


    /* Mobile navigation */

    footer {
        position: fixed;

        display: block;

        left: 0;
        right: 0;
        bottom: 0;

        height: 66px;

        z-index: 500;

        background: rgba(8, 10, 17, 0.94);

        backdrop-filter: blur(20px);
        -webkit-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: 48px;
        height: 48px;

        display: flex;

        align-items: center;
        justify-content: center;
    }

    footer nav #icon {
        width: 21px;
        height: 21px;

        object-fit: contain;

        opacity: 0.75;
    }

    .mobile-nav-active #icon {
        opacity: 1 !important;

        filter:
            drop-shadow(
                0 0 8px rgba(168, 85, 247, 0.7)
            );
    }

    .mobile-create {
        width: 34px;
        height: 34px;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 10px;

        background:
            linear-gradient(
                135deg,
                #7c3aed,
                #a855f7
            );

        color: white;

        font-size: 24px;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 500px) {

    .veyna-logo {
        display: none;
    }

    #search {
        left: 18px;

        transform: none;

        width: calc(100% - 120px);

        height: 38px;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-profile {
        margin-left: 5px;
    }

    .stories-list {
        gap: 14px;
    }

    .story-image {
        width: 59px;
        height: 59px;
    }

    .story > span {
        font-size: 9px;
    }

    article > #article {
        max-height: 600px;
    }

    .post-content {
        padding-left: 14px;
        padding-right: 14px;
    }
}

#activity-dropdown {
    position: fixed;
    top: 70px;
    right: 25px;

    width: 360px;
    max-height: 500px;

    background: #0d0e16;
    border: 1px solid #252631;
    border-radius: 14px;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s;
    
    z-index: 9999;
}

#activity-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Header */

.activity-header {
    height: 55px;

    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #242530;
}

.activity-header span {
    font-size: 18px;
    font-weight: 700;
}

#activity-close {
    border: none;
    background: transparent;
    color: #aaa;

    font-size: 25px;
    cursor: pointer;
}

#activity-close:hover {
    color: white;
}


/* List */

.activity-list {
    max-height: 380px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px 16px;

    border-bottom: 1px solid #191a22;

    transition: background 0.15s;
}

.activity-item:hover {
    background: #151620;
}

.activity-item img {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    object-fit: cover;
}

.activity-item div {
    display: flex;
    flex-direction: column;

    font-size: 14px;
    line-height: 1.4;
}

.activity-item b {
    display: inline;
    color: white;
}

.activity-item small {
    margin-top: 3px;

    color: #777;
    font-size: 11px;
}

/* View all */

.activity-all {
    display: block;

    padding: 14px;

    text-align: center;

    color: #b400ff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    border-top: 1px solid #242530;
}

.activity-all:hover {
    background: #151620;
}
/* Story items */

.story {
    cursor: pointer;
}

.story img {
    transition: transform 0.2s ease;
}

.story:hover img {
    transform: scale(1.05);
}


/* Overlay */

#story-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.88);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    z-index: 10000;
}


/* وقتی باز است */

#story-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Story */

#story-viewer {
    position: relative;

    width: min(430px, 90vw);
    height: min(760px, 90vh);

    background: #090a10;

    border: 1px solid #292a35;
    border-radius: 16px;

    overflow: hidden;

    transform: scale(0.92) translateY(20px);

    transition: transform 0.25s ease;
}

#story-overlay.active #story-viewer {
    transform: scale(1) translateY(0);
}


/* Story image */

#story-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* User */

.story-user {
    position: absolute;

    top: 15px;
    left: 15px;
    right: 15px;

    display: flex;
    align-items: center;

    gap: 10px;

    z-index: 2;

    color: white;

    text-shadow: 0 1px 5px black;
}

.story-user img {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid white;
}

.story-user span {
    font-weight: 600;
}


/* Close */

#story-close {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.55);

    color: white;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    z-index: 5;
}

#story-close:hover {
    background: rgba(0, 0, 0, 0.8);
}