/* =========================================================
   REGENESIS
   Main Stylesheet
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #070708;
    --bg-soft: #0c0c0f;
    --card: #101013;
    --card-hover: #151519;

    --border: #202024;
    --border-light: #2b2b30;

    --white: #ffffff;
    --text: #eeeeF2;
    --muted: #85858d;
    --muted-2: #5e5e66;

    --pink: #ff087f;
    --pink-light: #ff3d9b;

    --purple: #8b5cf6;
    --blue: #14d9ff;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    --transition: 0.25s ease;
}


/* =========================================================
   GLOBAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(139, 92, 246, 0.08),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    font-family: "Inter", sans-serif;

    min-height: 100vh;

    overflow-x: hidden;

    padding-bottom: 90px;
}

body::before {
    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            rgba(255,255,255,0.008) 1px,
            transparent 1px
        );

    background-size: 100% 4px;

    opacity: 0.25;

    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   TOP HEADER
   ========================================================= */

.topbar {
    height: 70px;

    width: 100%;

    position: sticky;

    top: 0;

    z-index: 1000;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 18px;

    background:
        rgba(7, 7, 8, 0.90);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


/* =========================================================
   MENU BUTTON
   ========================================================= */

.menu-btn {
    width: 38px;
    height: 38px;

    border: none;

    background: transparent;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 5px;

    cursor: pointer;

    padding: 6px;
}

.menu-btn span {
    display: block;

    width: 22px;
    height: 2px;

    background: var(--white);

    border-radius: 20px;

    transition: var(--transition);
}

.menu-btn:hover span:nth-child(1) {
    width: 15px;
}

.menu-btn:hover span:nth-child(3) {
    width: 18px;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: flex;

    align-items: center;

    gap: 9px;

    position: absolute;

    left: 50%;

    transform: translateX(-50%);
}

.brand-logo {
    width: 36px;
    height: 36px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    font-family: "Orbitron", sans-serif;

    font-weight: 900;

    font-size: 17px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--pink),
            var(--purple)
        );

    box-shadow:
        0 0 20px rgba(255, 8, 127, 0.25);

    transform: skew(-7deg);

    position: relative;

    overflow: hidden;
}

.brand-logo::after {
    content: "";

    position: absolute;

    width: 70px;
    height: 10px;

    background: rgba(255,255,255,0.2);

    transform: rotate(-45deg);

    top: -20px;

    left: -30px;

    animation: logoShine 4s infinite;
}

.brand-name {
    font-family: "Orbitron", sans-serif;

    font-size: 16px;

    font-weight: 900;

    letter-spacing: 1px;

    color: white;
}


/* =========================================================
   SEARCH BUTTON
   ========================================================= */

.search-btn {
    width: 40px;
    height: 40px;

    border: none;

    background: transparent;

    color: white;

    font-size: 29px;

    line-height: 1;

    cursor: pointer;

    transition: var(--transition);
}

.search-btn:hover {
    color: var(--pink);

    transform: scale(1.08);
}


/* =========================================================
   SEARCH BOX
   ========================================================= */

.search-box {
    display: none;

    padding: 12px 18px;

    background:
        rgba(7,7,8,0.95);

    border-bottom: 1px solid var(--border);

    position: sticky;

    top: 70px;

    z-index: 999;

    backdrop-filter: blur(20px);
}

.search-box.show {
    display: block;

    animation: searchOpen 0.25s ease;
}

.search-box input {
    width: 100%;

    height: 48px;

    padding: 0 16px;

    border-radius: 14px;

    border: 1px solid var(--border-light);

    outline: none;

    background: var(--card);

    color: white;

    font-size: 14px;

    transition: var(--transition);
}

.search-box input::placeholder {
    color: var(--muted-2);
}

.search-box input:focus {
    border-color: rgba(255, 8, 127, 0.6);

    box-shadow:
        0 0 0 3px rgba(255, 8, 127, 0.08);
}


/* =========================================================
   PAGE
   ========================================================= */

.page {
    width: 100%;

    max-width: 850px;

    margin: auto;
}


/* =========================================================
   FILTER BAR
   ========================================================= */

.filters {
    display: flex;

    gap: 9px;

    padding: 20px 18px 16px;

    overflow-x: auto;

    scrollbar-width: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter {
    flex-shrink: 0;

    border: none;

    background:
        #19191c;

    color: #99999f;

    padding: 11px 19px;

    border-radius: 50px;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);
}

.filter:hover {
    background: #242428;

    color: white;
}

.filter.active {
    background: white;

    color: #080808;

    box-shadow:
        0 4px 15px rgba(255,255,255,0.08);
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.section-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 10px 18px 14px;
}

.section-header h2 {
    font-family: "Orbitron", sans-serif;

    font-size: 11px;

    letter-spacing: 3px;

    color: #727278;

    font-weight: 700;
}

.section-header a {
    color: var(--pink);

    font-size: 11px;

    font-weight: 700;

    transition: var(--transition);
}

.section-header a:hover {
    color: var(--pink-light);

    letter-spacing: 0.5px;
}


/* =========================================================
   COMMUNITY SECTION
   ========================================================= */

.community-section {
    width: 100%;
}

.community-scroll {
    display: flex;

    gap: 13px;

    overflow-x: auto;

    padding: 0 18px 25px;

    scrollbar-width: none;

    scroll-snap-type: x mandatory;
}

.community-scroll::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   COMMUNITY CARD
   ========================================================= */

.community-card {
    flex: 0 0 245px;

    height: 228px;

    border-radius: 20px;

    overflow: hidden;

    background: var(--card);

    border: 1px solid var(--border);

    scroll-snap-align: start;

    position: relative;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.community-card:hover {
    transform: translateY(-4px);

    border-color: var(--border-light);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.35);
}


/* =========================================================
   COMMUNITY COVER
   ========================================================= */

.community-cover {
    height: 150px;

    position: relative;

    display: grid;

    place-items: center;

    overflow: hidden;
}

.community-cover::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 45%,
            rgba(0,0,0,0.65)
        );

    z-index: 2;
}

.community-cover::after {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    filter: blur(35px);
}


/* =========================================================
   COVER VARIANTS
   ========================================================= */

.cover-one {
    background:
        radial-gradient(
            circle at 50% 40%,
            #ff278e 0%,
            #8b216a 25%,
            #341333 55%,
            #0c0c0f 100%
        );
}

.cover-two {
    background:
        radial-gradient(
            circle at 50% 40%,
            #ff7a18 0%,
            #a53c19 30%,
            #34151a 60%,
            #09090b 100%
        );
}

.cover-three {
    background:
        radial-gradient(
            circle at 50% 40%,
            #8b5cf6 0%,
            #4c267e 30%,
            #20122f 60%,
            #08080b 100%
        );
}

.cover-four {
    background:
        radial-gradient(
            circle at 50% 40%,
            #13cfff 0%,
            #17699a 30%,
            #102738 60%,
            #07090c 100%
        );
}


/* =========================================================
   COMMUNITY SYMBOL
   ========================================================= */

.community-symbol {
    position: relative;

    z-index: 5;

    font-size: 53px;

    filter:
        drop-shadow(
            0 0 16px rgba(255,255,255,0.65)
        );

    animation:
        symbolFloat 4s ease-in-out infinite;
}


/* =========================================================
   COMMUNITY INFO
   ========================================================= */

.community-info {
    height: 78px;

    padding: 12px 14px;

    position: relative;
}

.community-info h3 {
    max-width: 175px;

    font-size: 16px;

    font-weight: 800;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.community-info p {
    color: #77777e;

    font-size: 12px;

    margin-top: 5px;
}

.join-small {
    position: absolute;

    right: 13px;

    bottom: 17px;

    width: 36px;
    height: 36px;

    border: none;

    border-radius: 50%;

    background: #29292d;

    color: white;

    font-size: 25px;

    display: grid;

    place-items: center;

    cursor: pointer;

    transition: var(--transition);
}

.join-small:hover {
    background: var(--pink);

    transform: rotate(90deg);
}


/* =========================================================
   FEED
   ========================================================= */

.feed {
    border-top: 1px solid var(--border);
}


/* =========================================================
   POST
   ========================================================= */

.post {
    padding: 23px 18px 20px;

    border-bottom: 1px solid var(--border);

    transition: background 0.2s ease;
}

.post:hover {
    background: rgba(255,255,255,0.008);
}


/* =========================================================
   POST USER
   ========================================================= */

.post-user {
    display: flex;

    align-items: center;

    gap: 11px;
}

.avatar {
    width: 48px;
    height: 48px;

    border-radius: 14px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    font-family: "Orbitron", sans-serif;

    font-size: 17px;

    font-weight: 900;

    color: white;

    border: 1px solid rgba(255,255,255,0.1);
}

.avatar-blue {
    background:
        radial-gradient(
            circle at 30% 20%,
            #52e9ff,
            #1769a7 45%,
            #10264b
        );
}

.avatar-purple {
    background:
        radial-gradient(
            circle at 30% 20%,
            #df8cff,
            #7430bd 45%,
            #25114b
        );
}

.avatar-red {
    background:
        radial-gradient(
            circle at 30% 20%,
            #ff6b83,
            #ad1838 45%,
            #4a0b20
        );
}

.avatar-green {
    background:
        radial-gradient(
            circle at 30% 20%,
            #75ffb3,
            #198e62 45%,
            #083c2b
        );
}


/* =========================================================
   USER INFORMATION
   ========================================================= */

.user-info {
    flex: 1;

    min-width: 0;
}

.username-row {
    display: flex;

    align-items: center;

    gap: 6px;

    min-width: 0;
}

.username-row strong {
    font-size: 14px;

    font-weight: 750;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.verified {
    width: 15px;
    height: 15px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--pink);

    color: white;

    font-size: 9px;

    font-weight: 900;
}

.time {
    color: #66666e;

    font-size: 11px;

    white-space: nowrap;
}

.community-name {
    display: block;

    color: #77777e;

    font-size: 11px;

    margin-top: 4px;
}

.more {
    border: none;

    background: transparent;

    color: #66666d;

    font-size: 21px;

    padding: 5px;

    cursor: pointer;
}


/* =========================================================
   POST CONTENT
   ========================================================= */

.post-content {
    margin-left: 59px;

    margin-top: 13px;
}

.post-content h3 {
    color: var(--white);

    font-size: 20px;

    line-height: 1.3;

    font-weight: 750;

    margin-bottom: 9px;
}

.post-content p {
    color: #c0c0c6;

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   POST TAGS
   ========================================================= */

.post-tags {
    margin-left: 59px;

    margin-top: 13px;

    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.post-tags span {
    color: var(--blue);

    font-size: 12px;

    font-weight: 500;
}


/* =========================================================
   RATING
   ========================================================= */

.rating {
    margin-left: 59px;

    margin-top: 17px;

    display: flex;

    gap: 4px;
}

.rating span {
    color: var(--blue);

    font-size: 20px;

    filter:
        drop-shadow(
            0 0 5px rgba(20,217,255,0.25)
        );
}


/* =========================================================
   ANIME MINI CARD
   ========================================================= */

.anime-mini-card {
    margin-left: 59px;

    margin-top: 16px;

    padding: 10px;

    display: flex;

    align-items: center;

    gap: 11px;

    background:
        linear-gradient(
            135deg,
            #19191d,
            #121215
        );

    border: 1px solid #28282d;

    border-radius: 15px;

    transition: var(--transition);
}

.anime-mini-card:hover {
    border-color: #38383f;

    transform: translateX(3px);
}

.anime-mini-logo {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #7542e8,
            #241348
        );

    font-family: "Orbitron", sans-serif;

    font-size: 10px;

    font-weight: 900;

    color: white;
}

.anime-mini-card div:nth-child(2) {
    flex: 1;

    min-width: 0;
}

.anime-mini-card strong {
    display: block;

    font-size: 13px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.anime-mini-card div:nth-child(2) span {
    display: block;

    color: #717178;

    font-size: 10px;

    margin-top: 4px;
}

.anime-mini-card .arrow {
    color: #aaa;

    font-size: 18px;

    transition: var(--transition);
}

.anime-mini-card:hover .arrow {
    color: var(--pink);

    transform: translateX(3px);
}


/* =========================================================
   POLL
   ========================================================= */

.poll {
    margin-left: 59px;

    margin-top: 16px;

    display: grid;

    gap: 7px;
}

.poll-option {
    width: 100%;

    min-height: 44px;

    padding: 11px 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border: 1px solid #252529;

    border-radius: 12px;

    background: #141417;

    color: #ddd;

    font-size: 13px;

    cursor: pointer;

    transition: var(--transition);
}

.poll-option:hover {
    border-color: rgba(255,8,127,0.4);

    background: #19191d;
}

.poll-option b {
    color: var(--pink);

    font-size: 12px;
}


/* =========================================================
   POST ACTIONS
   ========================================================= */

.post-actions {
    margin-left: 59px;

    margin-top: 18px;

    display: flex;

    align-items: center;

    gap: 24px;
}

.action {
    display: flex;

    align-items: center;

    gap: 6px;

    border: none;

    background: transparent;

    color: #73737b;

    font-size: 21px;

    cursor: pointer;

    transition: var(--transition);
}

.action:hover {
    color: white;

    transform: translateY(-1px);
}

.action span {
    font-size: 12px;
}

.action.like.liked {
    color: var(--pink);

    animation: heartPop 0.3s ease;
}

.share {
    margin-left: auto;
}


/* =========================================================
   CREATE BUTTON
   ========================================================= */

.create-btn {
    position: fixed;

    right: 20px;

    bottom: 87px;

    z-index: 900;

    width: 58px;
    height: 58px;

    border: none;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--pink),
            #ff0066
        );

    color: white;

    font-size: 34px;

    line-height: 1;

    display: grid;

    place-items: center;

    cursor: pointer;

    box-shadow:
        0 10px 35px rgba(255,8,127,0.35);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.create-btn:hover {
    transform: translateY(-4px) rotate(90deg);

    box-shadow:
        0 15px 45px rgba(255,8,127,0.5);
}

.create-btn:active {
    transform: scale(0.9);
}


/* =========================================================
   BOTTOM NAVIGATION
   ========================================================= */

.bottom-nav {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 1000;

    height: 73px;

    display: flex;

    align-items: stretch;

    justify-content: space-around;

    background:
        rgba(7,7,8,0.96);

    border-top: 1px solid var(--border);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bottom-item {
    flex: 1;

    max-width: 120px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;

    color: #66666d;

    transition: var(--transition);

    position: relative;
}

.bottom-item span {
    font-size: 23px;

    line-height: 1;

    transition: var(--transition);
}

.bottom-item small {
    font-size: 9px;

    font-weight: 500;

    letter-spacing: 0.2px;
}

.bottom-item:hover {
    color: #aaa;
}

.bottom-item.active {
    color: white;
}

.bottom-item.active span {
    color: var(--pink);

    filter:
        drop-shadow(
            0 0 9px rgba(255,8,127,0.55)
        );
}

.bottom-item.active::before {
    content: "";

    position: absolute;

    top: 0;

    width: 26px;
    height: 2px;

    border-radius: 0 0 10px 10px;

    background: var(--pink);

    box-shadow:
        0 0 10px var(--pink);
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 768px) {

    body {
        padding-bottom: 85px;
    }

    .topbar {
        padding-left: 35px;
        padding-right: 35px;
    }

    .page {
        max-width: 850px;
    }

    .community-card {
        flex-basis: 265px;
    }

    .bottom-nav {
        left: 50%;
        right: auto;

        transform: translateX(-50%);

        width: 700px;

        border-radius: 20px 20px 0 0;
    }

    .create-btn {
        right: calc(50% - 400px);
    }
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1100px) {

    .page {
        max-width: 900px;
    }

    .post {
        padding-left: 25px;
        padding-right: 25px;
    }

    .community-scroll {
        padding-left: 25px;
        padding-right: 25px;
    }

    .filters {
        padding-left: 25px;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .brand-name {
        font-size: 14px;
    }

    .brand-logo {
        width: 33px;
        height: 33px;
    }

    .filter {
        padding: 10px 15px;
    }

    .community-card {
        flex-basis: 225px;
    }

    .post-content h3 {
        font-size: 18px;
    }

    .post-content p {
        font-size: 13px;
    }

    .post-actions {
        gap: 18px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--pink);

    outline-offset: 3px;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes logoShine {

    0% {
        transform: translateX(-80px) rotate(-45deg);
    }

    30%,
    100% {
        transform: translateX(130px) rotate(-45deg);
    }

}

@keyframes symbolFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }

}

@keyframes searchOpen {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes heartPop {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.35);
    }

    100% {
        transform: scale(1);
    }

}