/* ✅ Reset Styles */
* {
    margin: 3px 1px;
    padding: 0;
    box-sizing: border-box;
}

/* ✅ Keep Old Styles - Header Background & Layout */
body {
    font-family: Arial, sans-serif;
    background-color: #445368;
}

header {
   
    top: 0;
    width: 100%;
    background-color: #070e2a;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 10px;
    padding-right: 10px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Keep old styles */
}

/* ✅ Logo */
.logo a {
    color: white;
    font-size: 22px;
    text-decoration: none;
}

/* ✅ Keep Old Navigation Style */
.menu {
    display: flex;
    list-style: none;
    gap: 15px;
}

/* ✅ Navigation Icons (New: Dark Background for Each Icon) */
.nav-icon {
    background-color: #4b3c8b;
    padding: 10px;
    border-radius: 10px;
    transition: 0.3s;
}

.nav-icon a {
    color: white;
    font-size: 20px;
    text-decoration: none;
}

.nav-icon:hover {
    background-color: #3b2a6a;
}

.message-btn {
    margin-top: 9px;
    margin-bottom: 35px;
    padding: 7px 7px;
    background: violet;
    border: 4px solid black;
    border-radius: 11px;
}

.message-btn:hover {
    margin-top: 9px;
    margin-bottom: 35px;
    padding: 7px 7px;
    background: #fff;
    border: 4px solid #3b2a6a;
    border-radius: 11px;
}


.user-bio {
    margin-bottom: 33px;
}

#hashtagSearchContainer {
    display: none; /* ✅ Initially hidden */
    position: absolute;
    top: 50px;
    right: 20px;
    background: white;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

#hashtagSearchContainer form {
    display: flex;
    gap: 5px;
}

#hashtagSearchContainer input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.hidden {
    display: none;
}



/* ✅ Keep Old Logout Button */
.logout-btn button {
    background: orange;
    border: none;
    cursor: hand;
    color: black;
    font-size: 20px;
    padding: 10px;
    background-color: #ff3333;
    border-radius: 10px;
    transition: 0.3s;
}

.logout-btn button:hover {
    background-color: indigo;
}

/* ✅ Mobile Menu Button (New: Toggle for Small Screens) */
.menu-toggle {
    display: none;
    background: black;
    border: none;
    font-size: 24px;
    color: white;
    cursor: hand;
    padding: 5px 7px;
    margin: 2px 5px;
}

/* ✅ Mobile Menu (New: Hidden Initially) */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #6a5acd;
    position: absolute;
    top: 60px;
    left: 0;
    width: 85%;
    padding: 10px;
}

.mobile-menu a {
    color: white;
    padding: 10px;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: 0.3s;
}

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

/* ✅ Show Mobile Menu on Click */
.mobile-menu.show {
    display: flex;
}

/* ✅ Fix: Ensure Signup/Login Page Looks Good */
.signup-container, .login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.signup-container h1, .login-container h1 {
    text-align: center;
    color: #6a5acd;
}

input, button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #6a5acd;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #483d8b;
}




/* Extra small screens (like iPhone SE, old Androids) */
@media (max-width: 480px) {
    
    
    
    body {
    max-width: 100vw;
    }
    .header {
        height: 8vh; /* ✅ Further reduce header height */
    }

    .menu-items img {
        width: 12px; /* Make icons smaller */
        height: 12px;
    }
    
}

/* Hide Menu and Show Toggle Button on Mobile */
@media (max-width: 768px) {
    
    
    
    body {
    max-width: 100vw;
    }
    
        /* Default Header Styles */
    .header {
        width: 100%;
        height: 0px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        box-shadow: 0px .5px 2.5px rgba(0, 0, 0, 0.1);
        padding: 0px 0px;
    }
    
    /* Menu Items (Default Visibility) */
    .menu-items {
        display: flex;
        gap: 5px;
    }
    
    
    
    .menu-items {
        display: none; /* ✅ Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 40px;
        right: 10px;
        background: white;
        padding: 10px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        border-radius: 5px;
    }

    .menu-items a {
        padding: 10px;
        display: block;
    }

    .menu-items li img {
        height: 22px;
        width: 22px;
        border: none;
        border-radius: 10px;
        padding: 2px;
        display: block;
        }


    .menu-toggle {
        display: block; /* ✅ Show toggle button on mobile */
        background: #635b71;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }
}

/* Show menu when active */
.menu-items.show {
    display: flex;
}
    
