/* =========================================================
   MAKDRIX — PUBLIC NAVBAR
========================================================= */

.public-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

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

    border-bottom:
        1px solid #eeeeF3;

    backdrop-filter:
        blur(14px);
}


/* =========================================================
   NAVBAR
========================================================= */

.public-navbar {
    width: min(
        1180px,
        calc(100% - 40px)
    );

    min-height: 72px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


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

.public-brand {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #17171c;

    text-decoration: none;
}


.public-brand-mark {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #6f36d8;

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;
}


.public-brand strong {
    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.02em;
}


/* =========================================================
   LINKS
========================================================= */

.public-nav-links {
    display: flex;
    align-items: center;

    gap: 27px;

    margin-left: auto;
}


.public-nav-link {
    position: relative;

    padding: 25px 0;

    color: #55555f;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s;
}


.public-nav-link:hover {
    color: #6f36d8;
}


.public-nav-link.active {
    color: #6f36d8;
}


.public-nav-link.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 17px;

    height: 2px;

    border-radius: 20px;

    background: #6f36d8;
}


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

.public-nav-actions {
    display: flex;
    align-items: center;

    gap: 11px;
}


/* =========================================================
   LOGIN DROPDOWN
========================================================= */

.login-dropdown {
    position: relative;
}


.login-dropdown-button {
    min-height: 42px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 0 16px;

    border:
        1px solid #dedee6;

    border-radius: 10px;

    background: #ffffff;

    color: #28282e;

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;
}


.login-dropdown-button:hover {
    border-color: #bda5e8;

    color: #6f36d8;
}


.login-dropdown-arrow {
    font-size: 11px;

    transition:
        transform 0.2s;
}


.login-dropdown.open
.login-dropdown-arrow {
    transform:
        rotate(180deg);
}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.login-dropdown-menu {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 300px;

    padding: 9px;

    border:
        1px solid #e7e7ed;

    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 18px 45px
        rgba(28, 24, 38, 0.13);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-5px);

    transition:
        opacity 0.18s,
        transform 0.18s,
        visibility 0.18s;
}


.login-dropdown.open
.login-dropdown-menu {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


/* =========================================================
   SPACE
========================================================= */

.login-space-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px;

    border-radius: 11px;

    color: #29292f;

    text-decoration: none;
}


.login-space-item:hover {
    background: #f7f4fc;
}


.login-space-icon {
    width: 37px;
    height: 37px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f0e9fb;

    color: #6f36d8;

    font-size: 17px;
}


.login-space-item strong,
.login-space-item small {
    display: block;
}


.login-space-item strong {
    margin-bottom: 3px;

    font-size: 13px;
}


.login-space-item small {
    color: #8b8b94;

    font-size: 11px;
}


.login-space-divider {
    height: 1px;

    margin: 6px 8px;

    background: #eeeeF3;
}


/* =========================================================
   DOWNLOAD
========================================================= */

.public-download-button {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border-radius: 10px;

    background: #6f36d8;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}


.public-download-button:hover {
    background: #5e2abb;
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

.public-mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border:
        1px solid #e4e4ea;

    border-radius: 10px;

    background: #ffffff;

    cursor: pointer;

    font-size: 19px;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.public-mobile-menu {
    display: none;

    padding:
        8px 20px 24px;

    border-top:
        1px solid #eeeeF3;

    background: #ffffff;
}


.public-mobile-menu.open {
    display: block;
}


.public-mobile-menu nav {
    display: flex;
    flex-direction: column;
}


.public-mobile-menu nav a {
    padding: 13px 4px;

    border-bottom:
        1px solid #f1f1f4;

    color: #33333a;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}


.mobile-space-title {
    margin:
        20px 0 10px;

    color: #8a8a94;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}


.mobile-space-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 9px;
}


.mobile-space-grid a {
    padding: 13px;

    border-radius: 10px;

    background: #f7f4fc;

    color: #5e2abb;

    text-align: center;
    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}


.mobile-download-button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 45px;

    margin-top: 15px;

    border-radius: 10px;

    background: #6f36d8;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (
    max-width: 980px
) {

    .public-nav-links {
        display: none;
    }


    .login-dropdown {
        display: none;
    }


    .public-mobile-menu-button {
        display: block;
    }
}


@media (
    max-width: 600px
) {

    .public-navbar {
        width:
            calc(100% - 28px);

        min-height: 65px;
    }


    .public-brand-mark {
        width: 35px;
        height: 35px;
    }


    .public-brand strong {
        font-size: 18px;
    }


    .public-download-button {
        display: none;
    }
}