﻿/* ================= GLOBAL ================= */

* {
    box-sizing: border-box;
}

.custom-header {
    position: relative;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* ================= TOP BAR ================= */

.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px 20px;
    font-size: 12px;
    background: #361A33;
}

.top-left,
.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-item {
    margin: 0;
    display: flex;
    align-items: center;
}

.top-item {
    margin-right: 25px;
    display: inline-block;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

    .top-bar a:hover {
        text-decoration: underline;
        color: #c02080;
    }

/* ================= MAIN NAV ================= */

.main-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0px 8px 0;
    flex-wrap: wrap;
}

.logo img {
    width: auto;
    height: 70px;
    max-width: 100%;
}

/* ================= Announcement ================= */

.batch-info,
.course-info {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
}

.batch-info {
    color: #361A33;
    flex: 1;
    min-width: 280px;
    position: relative;
    padding-left: 24px;
}

    .batch-info::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 12px;
        height: 12px;
        background: #28a745;
        border-radius: 50%;
        transform: translateY(-50%);
        animation: pulseDot 1.5s infinite;
    }

.course-info {
    white-space: nowrap;
}

/* ================= JOIN BUTTON ================= */

.join-btn {
    border: none;
    padding: 4px 8px;
    border-radius: 50px;
    color: #f1ff00;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    background: linear-gradient(45deg,#c02080,#0d6efd,#198754,#dc3545,#c02080);
    background-size: 400% 400%;
    animation: gradientMove 5s ease infinite;
}

/* ================= THEME SWITCHER ================= */

.theme-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
}

/* ================= MOBILE MENU MODAL - HAMBURGER ================= */
/* hamburger */

.menu-toggle {
    display: none;
    background: #361A33;
    color: white;
    padding: 10px 20px;
    font-size: 24px;
    cursor: pointer;
}



/* modal */

.mobile-menu-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    background: #361A33;
    border-radius: 15px;
    z-index: 99999;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
}



    .mobile-menu-modal.active {
        display: block;
    }



/* modal header */

.mobile-menu-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    color: #361A33;
    font-size: 20px;
    font-weight: bold;
}



/* close button */

.mobile-menu-close {
    margin-left: auto;
    border: none;
    background: none;
    font-size: 25px;
    cursor: pointer;
    color: #361A33;
}



/* scroll area */

.mobile-menu-content {
    max-height: 65vh;
    overflow-y: auto;
}



    /* menu */

    .mobile-menu-content .menu-list {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }



        .mobile-menu-content .menu-list li {
            width: 100%;
            border-bottom: 1px solid rgba(255,255,255,.15);
        }



        .mobile-menu-content .menu-list a {
            display: block;
            color: white;
            text-align: center;
            padding: 14px;
            text-decoration: none;
        }

/* mobile */

@media(max-width:768px) {

    .menu-toggle {
        display: none;
    }


    .menu-bar {
        display: block;
    }
}



/* desktop */

@media(min-width:769px) {

    .mobile-menu-modal {
        display: none !important;
    }
}

/* ================= MENU BAR ================= */

.menu-bar {
    background: #361A33;
    position: sticky;
    top: 0;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 15px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .menu-list::-webkit-scrollbar {
        display: none;
    }

    .menu-list li a {
        display: block;
        padding: 0 12px;
        color: white;
        text-decoration: none;
        font-weight: 500;
        white-space: nowrap;
    }

    .menu-list a.active {
        color: var(--accent-color);
        font-weight: 700;
        border-bottom: 3px solid var(--accent-color);
    }

    .menu-list li a:hover {
        color: var(--accent-color);
    }

/* ================= HAMBURGER ================= */

.menu-toggle {
    display: none;
    color: white;
    font-size: 25px;
    padding: 10px 20px;
    cursor: pointer;
}

/* ================= COLORS ================= */

.purple {
    background: #c02080;
}

.blue {
    background: #0d6efd;
}

.green {
    background: #198754;
}

.red {
    background: #dc3545;
}

.yellow {
    background: #f1ff00;
}

/* ================= ANIMATIONS ================= */

@keyframes pulseDot {

    0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(40,167,69,.7);
    }

    70% {
        transform: translateY(-50%) scale(1.2);
        box-shadow: 0 0 0 8px rgba(40,167,69,0);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ================= TABLET ================= */

@media(max-width:992px) {

    .main-navbar {
        justify-content: center;
        text-align: center;
    }

    .batch-info {
        order: 3;
        width: 100%;
    }

    .course-info {
        order: 4;
    }

    .theme-switcher {
        order: 5;
    }

    .menu-list {
        justify-content: flex-start;
    }
}

.course-theme-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* ================= MOBILE ================= */

@media(max-width:768px) {

    .top-bar {
        flex-direction: column;
        gap: 6px;
    }

    .main-navbar {
        flex-direction: column;
        padding: 0;
    }

    /* logo */

    .logo {
        order: 1;
    }

        .logo img {
            height: 70px;
            padding-bottom: 0;
        }

    .batch-info {
        order: 2;
        width: 100%;
        text-align: center;
        padding-left: 35px;
        padding-right: 15px;
        margin: 5px auto;
    }


        .batch-info::before {
            left: 15px;
        }

    .join-btn {
        order: 3;
        width: auto;
        min-width: 160px;
        padding: 8px 30px;
        font-size: 13px;
        margin: auto;
    }

    /* course + theme together */

    .course-theme-wrap {
        order: 4;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding-bottom: 5px;
    }



    .course-info {
        font-size: 13px;
        margin: 0;
    }



    .theme-switcher {
        gap: 6px;
        margin-left: 0;
    }



    .color-dot {
        width: 20px;
        height: 20px;
    }



    /* hamburger */

    .menu-toggle {
        order: 5;
        display: block;
    }
}
