/* =========================================================
   INSTAGRAMDOWNLOADER.ID HEADER
========================================================= */

.site-header,
.site-header *,
.mobile-menu,
.mobile-menu * {
    box-sizing: border-box;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;

    z-index: 1000;

    width: 100%;

    background:
        rgba(255, 255, 255, .97);

    border-bottom:
        1px solid #edf1f6;

    backdrop-filter: blur(12px);

    transition:
        box-shadow .2s ease,
        background .2s ease;
}


.site-header.is-scrolled {
    background:
        rgba(255, 255, 255, .99);

    box-shadow:
        0 8px 28px
        rgba(10, 35, 75, .07);
}


/* CONTAINER */

.header-container {
    width:
        min(
            1260px,
            calc(100% - 40px)
        );

    min-height: 74px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 24px;
}


/* BRAND */

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

    gap: 9px;

    flex-shrink: 0;

    text-decoration: none;
}


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

    display: grid;
    place-items: center;

    flex:
        0
        0
        38px;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #ff8a00,
            #ff2d76 38%,
            #a22cff 68%,
            #2d6cff
        );

    box-shadow:
        0 6px 17px
        rgba(126, 57, 245, .18);
}


.brand-mark svg {
    width: 27px !important;
    height: 27px !important;

    fill: none;

    stroke: #ffffff;
    stroke-width: 2;
}


.brand-mark .brand-dot {
    fill: #ffffff;
    stroke: none;
}


.brand-name {
    color: #091633;

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

    letter-spacing: -.55px;

    white-space: nowrap;
}


.brand-name span {
    color: #1265ed;
}


.brand-name small {
    font-size: .72em;
}


/* NAVIGATION CAPSULE */

.desktop-nav-shell {
    margin:
        0
        auto;

    padding: 4px;

    background: #f7f9fc;

    border:
        1px solid #e5ebf3;

    border-radius: 999px;
}


.desktop-nav {
    display: flex;
    align-items: center;

    gap: 2px;
}


.desktop-nav a {
    min-height: 41px;

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

    gap: 7px;

    padding:
        0
        14px;

    color: #14213a;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 720;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}


.desktop-nav a i {
    color: #18355f;

    font-size: 12px;
}


.desktop-nav a:hover,
.desktop-nav a.active {
    color: #075dcc;

    background: #ffffff;

    box-shadow:
        0 3px 11px
        rgba(30, 61, 105, .08);
}


.desktop-nav a:hover i,
.desktop-nav a.active i {
    color: #075dcc;
}


/* HEADER ACTIONS */

.header-actions {
    display: flex;
    align-items: center;

    gap: 9px;

    flex-shrink: 0;
}


/* LANGUAGE */

.language-selector {
    position: relative;
}


.language-toggle {
    height: 42px;

    min-width: 75px;

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

    gap: 7px;

    padding:
        0
        13px;

    color: #0b1830;
    background: #ffffff;

    border:
        1px solid #dce4ee;

    border-radius: 999px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}


.language-toggle:hover,
.language-selector.open .language-toggle {
    background: #f8fbff;

    border-color: #b7cce9;

    box-shadow:
        0 4px 13px
        rgba(20, 55, 100, .07);
}


.language-toggle .fa-globe {
    color: #0b2d59;

    font-size: 14px;
}


.language-chevron {
    color: #627087;

    font-size: 8px;

    transition:
        transform .18s ease;
}


.language-selector.open
.language-chevron {
    transform:
        rotate(180deg);
}


/* LANGUAGE MENU */

.language-menu {
    position: absolute;

    top:
        calc(
            100% + 9px
        );

    right: 0;

    z-index: 1500;

    width: 188px;

    padding: 7px;

    background: #ffffff;

    border:
        1px solid #e0e7f0;

    border-radius: 15px;

    box-shadow:
        0 16px 42px
        rgba(14, 38, 74, .14);
}


.language-menu[hidden] {
    display: none;
}


.language-option {
    min-height: 46px;

    display: grid;

    grid-template-columns:
        34px
        1fr
        16px;

    align-items: center;

    gap: 8px;

    padding:
        0
        10px;

    color: #23344e;
    background: transparent;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 680;

    text-decoration: none;
}


.language-option:hover {
    background: #f5f8fc;
}


.language-option.active {
    color: #075dcc;

    background: #f2f7ff;
}


.language-code {
    width: 30px;
    height: 27px;

    display: grid;
    place-items: center;

    color: #075dcc;
    background: #eaf3ff;

    border-radius: 7px;

    font-size: 11px;
    font-weight: 850;
}


.language-option
.fa-check {
    color: #00a96d;

    font-size: 12px;
}


/* CTA */

.header-cta {
    min-height: 44px;

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

    gap: 8px;

    padding:
        0
        18px;

    color: #ffffff;
    background: #1265ed;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 750;

    text-decoration: none;

    box-shadow:
        0 7px 18px
        rgba(18, 101, 237, .18);

    transition:
        background .18s ease,
        transform .18s ease;
}


.header-cta:hover {
    background: #0756d8;

    transform:
        translateY(-1px);
}


/* HAMBURGER */

.menu-toggle {
    width: 42px;
    height: 42px;

    display: none;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    padding: 0;

    background: #f7f9fc;

    border:
        1px solid #e3e9f1;

    border-radius: 50%;

    cursor: pointer;
}


.menu-toggle span {
    width: 19px;
    height: 2px;

    display: block;

    background: #0e1c36;

    border-radius: 999px;
}


/* OVERLAY */

.menu-overlay {
    position: fixed;

    inset: 0;

    z-index: 1100;

    background:
        rgba(7, 16, 34, .45);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .22s ease,
        visibility .22s ease;
}


.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* MOBILE MENU */

.mobile-menu {
    position: fixed;

    top: 0;
    right: 0;

    z-index: 1200;

    width:
        min(
            380px,
            90vw
        );

    height: 100dvh;

    padding: 20px;

    overflow-y: auto;

    background: #ffffff;

    box-shadow:
        -15px 0 45px
        rgba(10, 25, 55, .18);

    transform:
        translateX(105%);

    transition:
        transform .27s ease;
}


.mobile-menu.active {
    transform:
        translateX(0);
}


/* MOBILE HEAD */

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding-bottom: 18px;

    border-bottom:
        1px solid #edf1f6;
}


.mobile-brand
.brand-mark {
    width: 33px;
    height: 33px;

    flex-basis: 33px;
}


.mobile-brand
.brand-mark svg {
    width: 23px !important;
    height: 23px !important;
}


.mobile-brand
.brand-name {
    font-size: 16px;
}


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

    display: grid;
    place-items: center;

    padding: 0;

    color: #10203a;
    background: #f4f7fb;

    border: 0;
    border-radius: 50%;

    cursor: pointer;
}


/* MOBILE NAV */

.mobile-nav {
    display: flex;
    flex-direction: column;

    gap: 7px;

    margin-top: 18px;
}


.mobile-nav a {
    min-height: 54px;

    display: grid;

    grid-template-columns:
        34px
        1fr
        auto;

    align-items: center;

    gap: 10px;

    padding:
        0
        14px;

    color: #13203a;
    background: #f8fafc;

    border:
        1px solid #edf1f5;

    border-radius: 14px;

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

    text-decoration: none;
}


.mobile-nav-icon {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    color: #075dcc;
    background: #eaf3ff;

    border-radius: 9px;

    font-size: 13px;
}


.mobile-nav >
a >
.fa-chevron-right {
    color: #8290a5;

    font-size: 9px;
}


/* MOBILE LANGUAGE */

.mobile-language-box {
    margin-top: 18px;

    padding: 14px;

    background: #f8fafc;

    border:
        1px solid #e7edf4;

    border-radius: 15px;
}


.mobile-language-title {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 11px;

    color: #253650;

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


.mobile-language-options {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 8px;
}


.mobile-language-option {
    min-height: 40px;

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

    color: #46546a;
    background: #ffffff;

    border:
        1px solid #dfe6ef;

    border-radius: 999px;

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

    text-decoration: none;
}


.mobile-language-option.active {
    color: #ffffff;
    background: #1265ed;

    border-color: #1265ed;
}


/* MOBILE CTA */

.mobile-download-cta {
    min-height: 50px;

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

    gap: 8px;

    margin-top: 15px;

    color: #ffffff;
    background: #1265ed;

    border-radius: 999px;

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

    text-decoration: none;
}


/* TABLET */

@media (max-width: 1120px) {

    .desktop-nav a {
        padding:
            0
            10px;

        font-size: 12.5px;
    }

    .desktop-nav a i {
        display: none;
    }

}


/* MOBILE SWITCH */

@media (max-width: 940px) {

    .header-container {
        width:
            calc(
                100% - 28px
            );

        min-height: 68px;
    }

    .desktop-nav-shell,
    .header-cta {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .menu-toggle {
        display: flex;
    }

}


/* SMALL MOBILE */

@media (max-width: 560px) {

    .header-container {
        width:
            calc(
                100% - 22px
            );

        min-height: 64px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;

        flex-basis: 32px;
    }

    .brand-mark svg {
        width: 22px !important;
        height: 22px !important;
    }

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

    .language-toggle {
        min-width: 65px;
        height: 39px;

        padding:
            0
            10px;
    }

    .language-chevron {
        display: none;
    }

    .menu-toggle {
        width: 39px;
        height: 39px;
    }

}


/* VERY SMALL */

@media (max-width: 390px) {

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

    .language-toggle {
        min-width: 55px;

        gap: 5px;

        padding:
            0
            8px;
    }

}