/* =========================================================
   YTThumbnailHD
   Navigation
   ========================================================= */

/* ---------------------------------------------------------
   Navbar
   --------------------------------------------------------- */

.site-navbar {
    width: 100%;
    background: #111111;
    border-bottom: 1px solid #222222;
    position: relative;
    z-index: 1000;
}

.navbar-inner {
    max-width: 1180px;
    min-height: 64px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* ---------------------------------------------------------
   Logo
   --------------------------------------------------------- */

.navbar-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;

    text-decoration: none;
}

.navbar-logo img {
    display: block;
    width: auto;
    max-width: 175px;
    height: 38px;
    object-fit: contain;
}


/* ---------------------------------------------------------
   Desktop Navigation
   --------------------------------------------------------- */

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.navbar-menu a {
    display: inline-flex;
    align-items: center;

    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;

    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.navbar-menu a:hover {
    color: #fc5531;
}


/* ---------------------------------------------------------
   Hamburger
   --------------------------------------------------------- */

.navbar-toggle {
    display: none;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 1px solid #333333;
    border-radius: 6px;

    background: transparent;
    cursor: pointer;

    align-items: center;
    justify-content: center;

    flex-direction: column;
    gap: 5px;
}

.navbar-toggle span {
    display: block;

    width: 20px;
    height: 2px;

    background: #ffffff;
    border-radius: 2px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* ---------------------------------------------------------
   Mobile Menu
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .navbar-inner {
        min-height: 60px;
        padding: 0 16px;
    }

    .navbar-logo img {
        max-width: 150px;
        height: 34px;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        width: 100%;

        padding: 10px 16px 14px;

        background: #111111;
        border-top: 1px solid #222222;
        border-bottom: 1px solid #222222;

        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        gap: 0;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu a {
        width: 100%;
        min-height: 44px;
        padding: 10px 4px;

        font-size: 14px;

        border-bottom: 1px solid #222222;
    }

    .navbar-menu a:last-child {
        border-bottom: none;
    }

    .navbar-menu a:hover {
        color: #fc5531;
    }
}


/* ---------------------------------------------------------
   Small Mobile
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .navbar-inner {
        min-height: 56px;
        padding: 0 14px;
    }

    .navbar-logo img {
        max-width: 135px;
        height: 32px;
    }

    .navbar-toggle {
        width: 40px;
        height: 40px;
    }

    .navbar-menu {
        padding-left: 14px;
        padding-right: 14px;
    }
}