* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(111, 55, 190, 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);
    -webkit-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: 475px;
    height: 44px;

    display: flex;
    align-items: center;

    background: #111522;

    border: 1px solid #1d2434;

    border-radius: 24px;
}

#search button {
    width: 48px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    background: transparent;

    cursor: pointer;
}

#search-logo {
    width: 19px;
    height: 19px;

    opacity: 0.7;
}

#search-bar {
    flex: 1;

    height: 100%;

    padding-right: 12px;

    border: 0;
    outline: 0;

    background: transparent;

    color: white;

    font-size: 14px;
}

#search-bar::placeholder {
    color: #6e7485;
}

#search:focus-within {
    border-color: #8b5cf6;

    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.08);
}


/* =========================================
   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: 20px;
}

.header-icon:hover {
    color: #a855f7;

    border-color: #8b5cf6;
}

.header-profile #icon {
    width: 44px;
    height: 44px;

    object-fit: cover;

    padding: 2px;

    border: 2px solid #a855f7;

    border-radius: 50%;
}

.header-login {
    color: white;

    padding: 9px 17px;

    border: 1px solid #292f42;

    border-radius: 9px;

    text-decoration: none;
}


/* =========================================
   MAIN
========================================= */

#main {
    width: min(1470px, 100%);

    margin: auto;

    padding: 25px;

    display: grid;

    grid-template-columns:
        270px
        minmax(500px, 1fr);

    gap: 25px;
}


/* =========================================
   SIDEBAR
========================================= */

aside {
    position: sticky;

    top: 105px;

    height: calc(100vh - 130px);
}

.sidebar-nav {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.sidebar-item {
    min-height: 52px;

    display: flex;
    align-items: center;

    gap: 18px;

    padding: 0 17px;

    color: #d9deeb;

    text-decoration: none;

    border-radius: 12px;

    transition: 0.2s;
}

.sidebar-item:hover {
    background: #111522;
}

.sidebar-item.active {
    color: #c084fc;

    background:
        linear-gradient(
            100deg,
            rgba(139, 92, 246, 0.25),
            rgba(139, 92, 246, 0.07)
        );
}

.sidebar-icon {
    width: 28px;

    display: flex;
    justify-content: center;

    font-size: 24px;
}

.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);
}


/* =========================================
   EXPLORE HEADER
========================================= */

.explore-header {
    margin-bottom: 25px;

    display: flex;

    align-items: center;
    justify-content: space-between;
}

.explore-header h1 {
    margin: 0 0 7px;

    font-size: 27px;
}

.explore-header p {
    margin: 0;

    color: #737b8d;

    font-size: 13px;
}


/* =========================================
   CATEGORIES
========================================= */

.categories {
    display: flex;

    gap: 8px;

    margin-bottom: 28px;

    overflow-x: auto;

    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category {
    padding: 9px 18px;

    color: #9299aa;

    border: 1px solid #22293a;

    border-radius: 20px;

    text-decoration: none;

    font-size: 12px;

    white-space: nowrap;

    transition: 0.2s;
}

.category:hover {
    color: white;

    border-color: #7c3aed;
}

.category.active {
    color: white;

    background: #7c3aed;

    border-color: #7c3aed;

    box-shadow:
        0 5px 20px rgba(124, 58, 237, 0.2);
}


/* =========================================
   TRENDING
========================================= */

.trending {
    margin-bottom: 28px;
}

.section-title {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 13px;
}

.section-title h2 {
    margin: 0;

    font-size: 17px;
}

.section-title a {
    color: #a855f7;

    font-size: 11px;

    text-decoration: none;
}

.trending-list {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;
}

.trend {
    padding: 14px;

    background: #0c101a;

    border: 1px solid #1c2332;

    border-radius: 11px;

    text-decoration: none;

    transition: 0.2s;
}

.trend:hover {
    border-color: #7c3aed;

    transform: translateY(-2px);
}

.trend span {
    display: block;

    margin-bottom: 5px;

    color: #c084fc;

    font-size: 12px;
}

.trend small {
    color: #626b7e;

    font-size: 9px;
}


/* =========================================
   EXPLORE GRID
========================================= */

.explore-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    grid-auto-rows: 220px;

    gap: 7px;
}

.explore-card {
    position: relative;

    overflow: hidden;

    background: #101522;

    border-radius: 5px;

    text-decoration: none;
}

.explore-card.large {
    grid-column: span 2;

    grid-row: span 2;
}

.explore-card.tall {
    grid-row: span 2;
}

.explore-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}

.explore-card:hover img {
    transform: scale(1.06);

    filter: brightness(0.7);
}


/* =========================================
   CARD OVERLAY
========================================= */

.card-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 30px 14px 13px;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    opacity: 0;

    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.85)
        );

    transition: 0.25s;
}

.explore-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay strong {
    display: block;

    color: white;

    font-size: 12px;
}

.card-overlay span {
    display: block;

    margin-top: 4px;

    color: #c5cad4;

    font-size: 10px;
}

.card-overlay .card-icon {
    color: white;

    font-size: 22px;
}


/* =========================================
   MOBILE FOOTER
========================================= */

footer {
    display: none;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    #main {
        grid-template-columns: 220px 1fr;
    }

    #search {
        width: 400px;
    }

    .trending-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 800px) {

    header {
        height: 65px;

        padding: 0 18px;
    }

    .veyna-logo {
        display: none;
    }

    #search {
        left: 18px;

        transform: none;

        width: calc(100% - 80px);

        height: 38px;
    }

    .header-icon {
        display: none;
    }

    .header-profile #icon {
        width: 36px;
        height: 36px;
    }


    #main {
        display: block;

        padding: 18px 12px 85px;
    }

    aside {
        display: none;
    }


    .explore-header h1 {
        font-size: 23px;
    }


    .trending-list {
        grid-template-columns: repeat(2, 1fr);
    }


    .explore-grid {
        grid-template-columns: repeat(2, 1fr);

        grid-auto-rows: 180px;

        gap: 4px;
    }

    .explore-card.large {
        grid-column: span 2;

        grid-row: span 2;
    }


    /* Bottom nav */

    footer {
        position: fixed;

        display: block;

        left: 0;
        right: 0;
        bottom: 0;

        height: 66px;

        z-index: 500;

        background: rgba(8, 10, 17, 0.95);

        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.7;
    }

    .mobile-nav-active #icon {
        opacity: 1;

        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;

        color: white;

        background:
            linear-gradient(
                135deg,
                #7c3aed,
                #a855f7
            );

        border-radius: 10px;

        font-size: 24px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 500px) {

    .categories {
        margin-right: -12px;
        margin-left: -12px;

        padding: 0 12px;
    }

    .trending-list {
        gap: 6px;
    }

    .trend {
        padding: 11px;
    }

    .explore-grid {
        grid-auto-rows: 145px;
    }

    .card-overlay {
        opacity: 1;
    }
}