
/* =================================
   PEKANBARUTV HEADER
   DESKTOP + MOBILE
================================= */

/* RESET GLOBAL */

*,
*:before,
*:after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 15px;
}


/* =================================
   HEADER DESKTOP
================================= */

.header {
    width: 100%;
    height: 120px;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #020024 0, #3333a6 49%, #2a2a42 100%);
    position: relative;
}

.header_inner {
    width: 1080px;
    max-width: 100%;
    height: 110px;
    margin: 0 auto;
    padding: 0;

    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: center;
}


/* =================================
   KOLOM LOGO
================================= */

.logo_area {
    width: 320px;
    height: 110px;
    display: flex;
    align-items: center;
}

.logo_left {
    width: 100%;
    display: flex;
    align-items: center;
}

.logo_left img {
    display: block;
    width: 320px;
    max-width: 100%;
    height: auto;
    max-height: 105px;
    object-fit: contain;
}


/* =================================
   KOLOM SEARCH
================================= */

.header_search {
    width: 100%;
    align-self: center;
    transform: translateY(8px);
}

.header_search form {
    width: 100%;
    height: 38px;

    display: flex;
    align-items: center;
    border: 1px solid #dddddd;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
}

.header_search input {
    flex: 1;
    min-width: 0;
    height: 38px;

    border: none;
    outline: none;
    padding: 0 14px;

    font-size: 14px;
    color: #333333;
    background: transparent;
}

.header_search input::placeholder {
    color: #999999;
}

.header_search button {
    width: 50px;
    height: 38px;
    flex-shrink: 0;

    border: none;
    background: #ffffff;
    color: #333333;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header_search button i {
    font-size: 18px;
    padding: 0;
    position: relative;
    top: 10px;
}


/* =================================
   KOLOM KANAN
================================= */

.header_right {
    width: 330px;
    height: 110px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 17px;
}


/* SOCIAL MEDIA */

.social_media {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    white-space: nowrap;
}

.social_media a {
    width: 24px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    font-size: 16px;
    border-radius: 50%;

    text-decoration: none;
    transition: background 0.2s ease;
}

.social_media a:hover {
    background: rgba(255, 255, 255, 0.18);
}


/* =================================
   LIVE BUTTON
================================= */

.live_button {
    display: block;
    flex-shrink: 0;
}

.live_button a {
    height: 34px;
    padding: 0 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    background: #c51d2a;
    color: #ffffff;

    font-size: 12px;
    font-weight: bold;
    text-decoration: none;

    border-radius: 20px;
    white-space: nowrap;

    animation: liveBlink 1.5s infinite;
}

.live_dot {
    width: 8px;
    height: 8px;
    display: inline-block;

    background: #ffffff;
    border-radius: 50%;

    animation: livePulse 1s infinite;
}


/* ANIMASI LIVE */

@keyframes liveBlink {
    0%, 100% {
        background: #c51d2a;
    }

    50% {
        background: #ff3545;
    }
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
        box-shadow: 0 0 0 5px rgba(255,255,255,0);
    }
}


/* =================================
   MOBILE
   TERMASUK TABLET
================================= */

@media (max-width: 768px) {

    .header {
        height: auto;
    }

    .header_inner {
        width: 100%;
        height: auto;
        min-height: 0;

        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;

        padding: 12px 15px;
    }


    /* LOGO */

    .logo_area {
        width: 100%;
        height: 55px;
    }

    .logo_left img {
        width: auto;
        max-width: clamp(120px, 42vw, 170px);
        max-height: 55px;
    }


    /* SEARCH */

    .header_search {
        width: 100%;
        grid-column: 1 / -1;
        transform: none;
    }

    .header_search form,
    .header_search input,
    .header_search button {
        height: 42px;
    }

 

/* SOCIAL MEDIA DAN LIVE */

.header_right {
    width: 100%;
    height: 55px;
    justify-content: flex-end;
    gap: 4px;
}

.social_media {
    gap: 1px;
}

.social_media a {
    width: 15px;
    height: 30px;
    font-size: 13px;
}

    /* LIVE BUTTON */

    .live_button a {
        height: 30px;
        padding: 0 8px;
        gap: 5px;
        font-size: 10px;
    }

    .live_dot {
        width: 6px;
        height: 6px;
    }

}


/* =================================
   MENU DESKTOP
================================= */

.mainmenus {
    background: #ffffff;
    border-bottom: 2px solid #dddddd;
    margin-bottom: 20px;
}

.menus {
    display: flex;
    align-items: center;
    max-width: 1080px;
    height: 38px;
    margin: 0 auto;
    color: #ffffff;
}

.main-menus {
    background: #ffffff;
    width: 100%;
}

.menus-container {
    max-width: 1080px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-menus ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.main-menus ul li {
    position: relative;
}

.main-menus ul li a {
    display: block;
    padding: 4px 16px;

    color: #333333;
    text-decoration: none;

    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;

    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-menus ul li a:hover {
    color: #ffffff;
    background-color: #b80000;
}


/* =================================
   MENU MOBILE
================================= */

@media (max-width: 768px) {

    .main-menus {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .main-menus ul {
        flex-wrap: nowrap;
    }

    .main-menus ul li {
        display: inline-block;
        flex-shrink: 0;
    }

    .main-menus ul li a {
        display: block;
        padding: 5px 10px;

        color: #333333;
        text-decoration: none;

        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;

        transition: 0.3s;
    }

}
