/* Authentication Component Styles */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.auth-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background: linear-gradient(135deg, var(--cream-pop) 0%, #FFE5F1 100%);
    border: 4px solid var(--deep-ink);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 
        10px 10px 0 var(--hot-pink),
        10px 10px 0 4px var(--deep-ink);
    animation: slideUp 0.4s ease-out;
}

.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--hot-pink);
    border: 3px solid var(--deep-ink);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.2s;
}

.auth-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--neon-yellow);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--deep-ink);
    margin: 0;
    text-shadow: 3px 3px 0 var(--electric-cyan);
}

.auth-subtitle {
    font-family: 'Comic Neue', cursive;
    color: var(--deep-ink);
    margin-top: 0.5rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: var(--cream-pop);
    border: 3px solid var(--deep-ink);
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab:hover {
    transform: translateY(-2px);
}

.auth-tab.active {
    background: var(--neon-yellow);
    box-shadow: 0 4px 0 var(--deep-ink);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--deep-ink);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    font-family: 'Comic Neue', cursive;
    font-size: 1rem;
    background: white;
    border: 3px solid var(--deep-ink);
    border-radius: 10px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--electric-cyan);
    transform: scale(1.02);
}

.form-input.error {
    border-color: var(--hot-pink);
    animation: shake 0.3s;
}

.auth-button {
    width: 100%;
    padding: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--hot-pink), var(--neon-yellow));
    color: var(--deep-ink);
    border: 3px solid var(--deep-ink);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 var(--deep-ink);
}

.auth-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--deep-ink);
}

.auth-button:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 var(--deep-ink);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--deep-ink);
}

.auth-divider span {
    background: var(--cream-pop);
    padding: 0 1rem;
    position: relative;
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
    color: var(--deep-ink);
}

.social-auth {
    display: flex;
    gap: 1rem;
}

.social-button {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    border: 3px solid var(--deep-ink);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.social-button:hover {
    background: var(--electric-cyan);
    transform: translateY(-2px);
}

.auth-error {
    background: var(--hot-pink);
    color: white;
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-family: 'Comic Neue', cursive;
    text-align: center;
    animation: shake 0.3s;
}

.auth-success {
    background: var(--electric-cyan);
    color: var(--deep-ink);
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-family: 'Comic Neue', cursive;
    text-align: center;
    animation: bounce 0.5s;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    font-family: 'Comic Neue', cursive;
    color: var(--deep-ink);
}

.auth-link a {
    color: var(--hot-pink);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.auth-link a:hover {
    color: var(--electric-cyan);
    text-decoration: underline;
}

/* User Profile Widget */
.user-profile-widget {
    display: none;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(45deg, var(--cream-pop), #FFE5F1);
    padding: 0.5rem 1rem;
    border: 3px solid var(--deep-ink);
    border-radius: 50px;
}

.user-profile-widget.active {
    display: flex;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--deep-ink);
    background: var(--electric-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--deep-ink);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--deep-ink);
}

.user-role {
    font-family: 'Comic Neue', cursive;
    font-size: 0.75rem;
    color: var(--hot-pink);
    text-transform: uppercase;
}

.auth-menu-button {
    background: var(--neon-yellow);
    border: 3px solid var(--deep-ink);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    transition: all 0.2s;
}

.auth-menu-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--deep-ink);
}

/* Dropdown menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 3px solid var(--deep-ink);
    border-radius: 10px;
    padding: 0.5rem;
    min-width: 200px;
    display: none;
    z-index: 10000; /* Increased z-index to ensure visibility */
    box-shadow: 5px 5px 0 var(--hot-pink);
}

.user-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.dropdown-item {
    padding: 0.75rem;
    font-family: 'Comic Neue', cursive;
    font-weight: 700;
    color: var(--deep-ink);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--electric-cyan);
    transform: translateX(5px);
}

.dropdown-divider {
    height: 2px;
    background: var(--deep-ink);
    margin: 0.5rem 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile-specific dropdown fixes */
@media (max-width: 768px) {
    .user-profile-widget {
        position: relative;
        z-index: 1001;
    }
    
    .user-dropdown {
        position: fixed !important;
        top: auto !important;
        right: 10px !important;
        left: 10px !important;
        bottom: auto !important;
        width: calc(100% - 20px) !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        z-index: 10001 !important;
    }
    
    .user-dropdown.active {
        top: 100px !important; /* Position below the nav bar */
    }
    
    .nav-punk.expanded .user-profile-widget {
        display: flex !important; /* Show profile widget in expanded mobile menu */
        width: 100%;
        max-width: 350px;
        margin: 1rem auto;
        justify-content: center;
    }
    
    .nav-punk.expanded .user-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        right: auto !important;
        width: 90% !important;
        max-width: 350px !important;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}