/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

/* Header Section */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    z-index: 10;
}

.header {
    color: black;
    font-size: 18px;
    line-height: 25px;
}

.website-name {
    font-family: 'Pacifico', cursive;
    font-size: 36px;
    font-weight: bold;
    color: #7b3fe4;
}

.header a {
    color: black;
    padding: 12px;
    height: 100px;
    font-size: 34px;
    line-height: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.header img {
    margin-right: 10px;
}

/* Responsive Header */
.header-responsive {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
}

.header-responsive .header-right a {
    color: black;
    font-size: 18px;
    padding-right: 12px;
}

.header-responsive a:hover {
    color: #7b3fe4;
}

.header-responsive .logo {
    font-size: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
}

.bar {
    width: 100%;
    height: 5px;
    background-color: black;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 10px 0;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 20px;
    z-index: 1;
}

.mobile-menu a {
    padding: 12px 20px;
    font-size: 18px;
    color: black;
    display: block;
}

.mobile-menu a:hover {
    background-color: #f1f1f1;
}

/* Menu Toggle for Mobile */
#menu-toggle:checked~.mobile-menu {
    display: block;
}

#menu-toggle:checked~.menu-icon .bar1 {
    transform: rotate(45deg);
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
}

#menu-toggle:checked~.menu-icon .bar2 {
    opacity: 0;
}

#menu-toggle:checked~.menu-icon .bar3 {
    transform: rotate(-45deg);
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
}

.login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-container {
    display: flex;
    align-items: center;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    background: linear-gradient(135deg, #6A11CB, #2575FC);
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.profile-link:hover {
    opacity: 0.85;
}

.profile-pic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
}

.user-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon {
    width: 45px;
    height: 45px;
    transition: 0.3s;
}

.user-icon:hover {
    transform: scale(1.1);
}


.mobile-menu a.logout-link,
.mobile-menu a.user-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    background: linear-gradient(135deg, #6A11CB, #2575FC);
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    margin: 10px auto;
    width: 80%;
    text-align: center;
}

.mobile-menu a.logout-link:hover,
.mobile-menu a.user-link:hover {
    opacity: 0.85;
}

/* Tablet and Below */
@media only screen and (max-width: 768px) {
    .header a {
        font-size: 28px;
    }

    .header-right {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .mobile-menu {
        display: none;
        top: 100px;
    }

    .mobile-menu a {
        font-size: 18px;
    }

    #menu-toggle:checked~.mobile-menu {
        display: block;
    }

    #menu-toggle:checked~.menu-icon .bar1 {
        transform: rotate(45deg);
    }

    #menu-toggle:checked~.menu-icon .bar3 {
        transform: rotate(-45deg);
    }

    .login {
        display: none;
    }
}

/* Small Screen (Mobile) */
@media screen and (max-width: 480px) {
    .website-name {
        font-family: 'Pacifico', cursive;
        font-size: 30px;
        font-weight: bold;
        color: #7b3fe4;
    }

    .login {
        display: none;
    }
}
