/* ==================== NAVBAR STYLES FOR INDEX.HTML ==================== */

/* Header Container */
header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(147, 51, 234, 0.1);
}

header .container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    min-height: 60px;
}

/* ==================== LOGO SECTION ==================== */
.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.35);
    color: white;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* ==================== AUTH CONTAINER ==================== */
.auth-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* ==================== SIGN IN BUTTON ==================== */
#login-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.35);
    font-family: inherit;
    white-space: nowrap;
}

#login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.5);
}

#login-btn:active {
    transform: translateY(-1px);
}

/* ==================== USER PROFILE DROPDOWN ==================== */
.user-profile-dropdown {
    display: none;
    position: relative;
}

#user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(147, 51, 234, 0.12);
    border: 1.5px solid rgba(147, 51, 234, 0.3);
    color: white;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: inherit;
}

#user-menu-btn:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.6);
    transform: translateY(-1px);
}

#user-menu-btn:active {
    transform: translateY(0);
}

.user-email-text {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.user-email-text.admin-email {
    color: #22c55e !important;
    font-weight: 700;
}

.chevron-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

#user-menu-btn[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

/* ==================== DROPDOWN MENU ==================== */
#user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(147, 51, 234, 0.25);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1001;
}

#user-dropdown-menu[style*="block"] {
    animation: dropdownSlideDown 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdownSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: none;
    border: none;
    color: #e2e8f0;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    text-align: left;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(147, 51, 234, 0.25);
    color: white;
    padding-left: 1.5rem;
}

.dropdown-item.logout-item {
    color: #ef4444;
}

.dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ff6b6b;
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.dropdown-item:hover .dropdown-icon {
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background: rgba(147, 51, 234, 0.15);
    margin: 0.5rem 0;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
    }

    header .container {
        padding: 0;
    }

    .header-container {
        gap: 1rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    #login-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }

    #user-menu-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .user-email-text {
        max-width: 90px;
    }

    .chevron-icon {
        width: 16px;
        height: 16px;
    }

    #user-dropdown-menu {
        min-width: 200px;
        right: -20px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.25rem;
    }

    #login-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    #user-menu-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .user-email-text {
        max-width: 70px;
        font-size: 0.75rem;
    }

    #user-dropdown-menu {
        min-width: 180px;
        right: -10px;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
    }
}
