/* WRAPPER */
.ys-menu-wrapper {
    width: 100%;
    background: #ec550e;
    padding: 0 22px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.ys-position{
    position: relative;
  
}

/* MENU UL */
.ys-menu {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
    padding: 9px 13px;
    background: #ff6218;
    border-radius: 20px 20px 0px 0px;
    border-top: 1px solid #d94702;
    border-left: 1px solid #d94702;
    border-right: 1px solid #d94702;
   
}

/* LI */
.ys-item {
    display: flex;
    align-items: center;
}

/* LINK */
.ys-link {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: 0.25s ease-in-out;
}

/* ICON HOME */
.ys-icon-home {
    filter: brightness(10);
}

/* UNDERLINE ANIMATION */
.ys-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 0%;
    background: #fff;
    transition: 0.25s ease-in-out;
}

.ys-link:hover::after {
    width: 100%;
}

/* MOBILE */
@media (max-width: 900px) {
    .ys-menu-wrapper {
        overflow-x: auto;
        scrollbar-width: none;
    }
    .ys-menu-wrapper::-webkit-scrollbar {
        display: none;
    }
    .ys-menu {
        gap: 18px;
        padding: 10px 12px;
    }
}


.cool-search {
    position: relative;
    display: flex;
    align-items: center;
}

/* Tombol icon */
.search-icon {
    background: #0f0f0f;
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .4s ease;
    position: relative;
    overflow: hidden;
}

.icon-search,
.icon-close {
    position: absolute;
    transition: opacity .3s, transform .3s;
    width: 30px;
    height: 30px;
    background-position: 7px 7px;
}

/* icon close disembunyikan */
.icon-close {
    opacity: 0;
    transform: rotate(-90deg);
    background-position: 5px 5px;
}

/* Search input */
.search-input {
    width: 0;
    opacity: 0;
    padding: 0px;
    margin-left: 10px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 16px;
    outline: none;

    transition:
        width .5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity .35s ease;
}
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7); /* putih transparan */
}
/* Saat aktif */
.cool-search.active .search-input {
    width: 240px;
    opacity: 1;
     padding: 9px 15px;
}

/* Animasi tombol berubah menjadi close */
.cool-search.active .icon-search {
    opacity: 0;
    transform: rotate(90deg);
}

.cool-search.active .icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

.cool-search.active {
    padding: 0px 12px;
}
