/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Poppins, sans-serif;
    background: #f6f7fb;
    color: #111827;
}

body.menu-open {
    overflow: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.top-header {
    width: 100%;
    height: 76px;

    position: sticky;
    top: 0;
    z-index: 9999;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #edf0f4;

    box-shadow:
        0 4px 20px rgba(15, 23, 42, 0.05);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}


.container-top {
    width: 100%;
    max-width: 1380px;
    height: 100%;

    margin: auto;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    text-decoration: none;
}

.logo img {
    width: 150px;
    height: auto;

    display: block;
}


/* =========================================================
   DESKTOP NAV
========================================================= */

.desktop-nav {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 4px;

    margin-left: auto;
}


.nav-link {
    height: 100%;

    position: relative;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 0 15px;

    color: #5b6472;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    white-space: nowrap;

    transition: .2s ease;
}


.nav-link i {
    font-size: 14px;
}


.nav-link:hover {
    color: #f63b54;
}


.nav-link.active {
    color: #111827;
    font-weight: 600;
}


.nav-link.active::after {
    content: "";

    position: absolute;

    left: 15px;
    right: 15px;
    bottom: 0;

    height: 3px;

    background: #f63b54;

    border-radius: 4px 4px 0 0;
}


/* =========================================================
   RIGHT MENU
========================================================= */

.right-menu {
    display: flex;
    align-items: center;

    gap: 5px;

    flex-shrink: 0;
}


/* =========================================================
   İŞLETME EKLE
========================================================= */

.business-add {
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 16px;

    margin-right: 8px;

    color: #f63b54;

    border: 1px solid rgba(246, 59, 84, .35);

    background: #fff;

    border-radius: 9px;

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    transition: .2s ease;
}


.business-add i {
    font-size: 12px;
}


.business-add:hover {
    color: #fff;
    background: #f63b54;

    border-color: #f63b54;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(246, 59, 84, .20);
}


/* =========================================================
   HEADER ICON
========================================================= */

.header-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    border-radius: 10px;

    color: #303846;

    text-decoration: none;

    font-size: 18px;

    transition: .2s ease;
}


.header-icon:hover {
    color: #f63b54;
    background: #f8f9fb;
}


.notification-dot {
    position: absolute;

    width: 7px;
    height: 7px;

    top: 8px;
    right: 8px;

    background: #f63b54;

    border: 2px solid #fff;

    border-radius: 50%;
}


/* =========================================================
   PROFILE
========================================================= */

.profile-button {
    min-width: 175px;

    height: 52px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 5px 9px;

    border-radius: 11px;

    color: #111827;

    text-decoration: none;

    transition: .2s ease;
}


.profile-button:hover {
    background: #f6f7f9;
}


.profile-icon {
    width: 39px;
    height: 39px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f3f6;

    color: #374151;

    border-radius: 50%;

    font-size: 15px;
}


.profile-text {
    min-width: 0;

    display: flex;
    flex-direction: column;

    line-height: 1.2;
}


.profile-title {
    color: #7a8290;

    font-size: 10px;
    font-weight: 400;

    margin-bottom: 3px;
}


.profile-text strong {
    max-width: 110px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #1c2430;

    font-size: 12px;
    font-weight: 600;
}


.profile-arrow {
    margin-left: auto;

    color: #9aa1ac;

    font-size: 10px;
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

.mobile-menu-button {
    display: none;

    width: 43px;
    height: 43px;

    padding: 0;

    border: 0;

    background: #f5f6f8;

    border-radius: 11px;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    transition: .25s ease;
}


.mobile-menu-button:hover {
    background: #eceef2;
}


.mobile-menu-button span {
    width: 20px;
    height: 2px;

    background: #1f2937;

    border-radius: 5px;

    transition: .25s ease;
}


/* =========================================================
   MOBILE OVERLAY
========================================================= */

.mobile-menu-overlay {
    position: fixed;

    inset: 0;

    z-index: 10000;

    visibility: hidden;
    opacity: 0;

    background: rgba(10, 16, 25, .62);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    transition:
        opacity .3s ease,
        visibility .3s ease;
}


.mobile-menu-overlay.open {
    visibility: visible;
    opacity: 1;
}


/* =========================================================
   MOBILE PANEL
========================================================= */

.mobile-menu-panel {
    width: min(430px, 100%);

    height: 100%;

    margin-left: auto;

    padding:
        22px
        20px
        24px;

    overflow-y: auto;

    background: #fff;

    transform: translateX(100%);

    transition:
        transform .35s cubic-bezier(.22,.61,.36,1);

    display: flex;
    flex-direction: column;
}


.mobile-menu-overlay.open .mobile-menu-panel {
    transform: translateX(0);
}


/* =========================================================
   MOBILE HEADER
========================================================= */

.mobile-menu-header {
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}


.mobile-logo img {
    width: 155px;
    height: auto;

    display: block;
}


.mobile-menu-close {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 11px;

    background: #f3f4f6;

    color: #1f2937;

    font-size: 19px;

    cursor: pointer;

    transition: .2s ease;
}


.mobile-menu-close:hover {
    color: #fff;
    background: #f63b54;
}


/* =========================================================
   MOBILE PROFILE
========================================================= */

.mobile-profile-card {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 15px;

    margin-bottom: 28px;

    border: 1px solid #edf0f3;

    background:
        linear-gradient(
            135deg,
            #fafbfc,
            #f5f7f9
        );

    border-radius: 15px;

    text-decoration: none;

    color: #111827;

    transition: .2s ease;
}


.mobile-profile-card:hover {
    border-color: #e2e5e9;
}


.mobile-profile-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 3px 10px rgba(0,0,0,.05);

    color: #374151;

    font-size: 17px;
}


.mobile-profile-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    flex: 1;
}


.mobile-profile-info span {
    color: #8a919d;
    font-size: 13px;
    margin-bottom: 3px;
}


.mobile-profile-info strong {
    overflow: hidden;
    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 14px;

    font-weight: 600;
}


.mobile-profile-card > i {
    color: #a1a7b0;

    font-size: 12px;
}


/* =========================================================
   MOBILE NAV TITLE
========================================================= */

.mobile-nav-title {
    color: #222;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .9px;

    margin-bottom: 9px;

    padding-left: 4px;
}


/* =========================================================
   MOBILE NAV
========================================================= */

.mobile-nav {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.mobile-nav-link {
    min-height: 58px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 7px 11px;

    border-radius: 12px;

    color: #313946;

    text-decoration: none;

    transition: .2s ease;
}


.mobile-nav-link:hover {
    background: #f7f8fa;
}


.mobile-nav-link.active {
    color: #f63b54;

    background: rgba(246,59,84,.07);
}


.mobile-nav-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f5f6f8;

    color: #4b5563;

    font-size: 15px;
}


.mobile-nav-link.active .mobile-nav-icon {
    background: #f63b54;
    color: #fff;
}


.mobile-nav-text {
    flex: 1;

    font-size: 13px;

    font-weight: 600;
}


.mobile-nav-link > i {
    color: #a4aab3;

    font-size: 10px;
}


/* =========================================================
   MOBILE ACTIONS
========================================================= */

.mobile-actions {
    margin-top: 28px;
}


.mobile-business-add {
    min-height: 75px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px;

    margin-bottom: 10px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #f63b54,
            #e82d48
        );

    color: #fff;

    text-decoration: none;

    box-shadow:
        0 10px 25px rgba(246,59,84,.18);
}


.mobile-business-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.16);

    border-radius: 11px;

    font-size: 17px;
}


.mobile-business-add > div:nth-child(2) {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}


.mobile-business-add strong {
    font-size: 13px;

    margin-bottom: 3px;
}


.mobile-business-add span {
    font-size: 11px;

    opacity: .85;

    line-height: 1.4;
}


.mobile-business-add > i {
    font-size: 12px;

    margin-right: 3px;
}


/* =========================================================
   MOBILE SMALL ACTIONS
========================================================= */

.mobile-action-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;
}


.mobile-small-action {
    min-height: 78px;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    gap: 7px;

    padding: 12px;

    border: 1px solid #edf0f3;

    border-radius: 13px;

    background: #fff;

    color: #27303d;

    text-decoration: none;

    transition: .2s ease;
}


.mobile-small-action:hover {
    background: #f8f9fa;
}


.mobile-small-action span {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f6f8;

    border-radius: 9px;

    font-size: 14px;
}


.mobile-small-action strong {
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   MOBILE BOTTOM
========================================================= */

.mobile-menu-bottom {
    margin-top: auto;

    padding-top: 30px;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.mobile-menu-bottom span {
    color: #263140;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .4px;
}


.mobile-menu-bottom small {
    color: #9ba2ad;

    font-size: 9px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .container-top {
        padding: 0 20px;
    }

    .desktop-nav {
        gap: 0;
    }

    .nav-link {
        padding: 0 10px;

        font-size: 12px;
    }

    .nav-link.active::after {
        left: 10px;
        right: 10px;
    }

    .profile-button {
        min-width: 150px;
    }

    .profile-arrow {
        display: none;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .top-header {
        height: 66px;
    }


    .container-top {
        padding: 0 14px;

        gap: 10px;
    }


    .logo img {
        width: 120px;
    }


    .desktop-nav {
        display: none;
    }


    .desktop-business-add {
        display: none;
    }


    .favorite-button {
        display: none;
    }


    .notification-button {
        width: 40px;
        height: 40px;

        font-size: 18px;
    }


    .profile-button {
        min-width: auto;

        width: 40px;
        height: 40px;

        padding: 0;

        justify-content: center;

        background: #f5f6f8;

        border-radius: 10px;
    }


    .profile-button:hover {
        background: #eceef2;
    }


    .profile-icon {
        width: 40px;
        height: 40px;

        background: transparent;
    }


    .profile-text,
    .profile-arrow {
        display: none;
    }


    .mobile-menu-button {
        display: flex;
    }


    .mobile-menu-panel {
        width: min(430px, 100%);
    }

}


/* =========================================================
   KÜÇÜK TELEFON
========================================================= */

@media (max-width: 380px) {

    .container-top {
        padding: 0 11px;
    }


    .logo img {
        width: 120px;
    }


    .right-menu {
        gap: 1px;
    }


    .notification-button {
        width: 37px;
        height: 37px;
    }


    .profile-button {
        width: 37px;
        height: 37px;
    }


    .mobile-menu-button {
        width: 39px;
        height: 39px;
    }


    .mobile-menu-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}