/* ============================================
   Shared Styles for Navbar & Footer Includes
   ============================================ */

/* NAVBAR STYLES */
#navbar {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #0b0b2e, #0e0e3a);
    padding: 15px 25px;
    border-radius: 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    color: white;
    opacity: 0;
    transition: top 0.6s ease, opacity 0.6s ease;
    z-index: 999;
}

#navbar.show {
    top: 20px;
    opacity: 1;
}

.logo, .usericon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    background: transparent !important;
}

.logo:hover,
.usericon:hover {
    transform: scale(1.1);
}

.logo img,
.usericon img {
    width: 70%;
    height: auto;
    display: block;
}

.nav-text {
    font-size: 16px;
    font-weight: 300;
    font-style: italic;
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.burger-icon {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
}

.burger-icon span {
    width: 32px;
    height: 4px;
    background: #4b7bff;
    transition: all 0.3s ease;
    display: block;
    border-radius: 3px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: #0e0e3a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    flex-direction: column;
    min-width: 150px;
    z-index: 1000;
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-menu a {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #1a1a4d;
}

/* FOOTER STYLES */
footer {
    background: radial-gradient(circle at bottom, #333 0%, #000 70%);
    color: #ffffff;
    padding: 60px 40px 20px;
    font-family: Arial, Helvetica, sans-serif;
}

footer > div:first-child {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

footer .footer-left {
    max-width: 600px;
    flex: 1;
}

footer .footer-left img {
    width: 130px;
    margin-bottom: 20px;
    display: block;
}

footer .footer-left div {
    font-size: 16px;
    line-height: 1.6;
}

footer .footer-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    font-size: 18px;
    flex: 1;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 80px;
    padding-left: 600px;
}

footer .footer-right a {
    color: #ffffff;
    text-decoration: none;
}

footer .footer-right a:hover {
    text-decoration: underline;
}

footer .footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer > div:first-child {
        flex-direction: column;
    }

    footer .footer-right {
        text-align: left;
        margin-top: 30px;
    }
}
