/* Authentication Modal Styles */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

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

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 3rem;
    max-width: 440px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
    border: 1px solid #e5e7eb;
}

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

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

.auth-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 1.25rem;
}

.auth-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: rotate(90deg);
}

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

.auth-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: #000000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.auth-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.auth-modal-header p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.auth-modal-body {
    margin-top: 2rem;
}

.auth-benefits {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    color: #1f2937;
    font-size: 0.875rem;
}

.benefit-item:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.benefit-item i {
    color: #000000;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #000000;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.google-signin-btn:hover {
    background: #1f2937;
}

.google-icon {
    flex-shrink: 0;
}

.auth-footer-text {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-footer-text a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* User Info in Navigation */
.nav-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-credits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #000000;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-credits i {
    font-size: 1rem;
}

.nav-sign-in {
    padding: 0.5rem 1.25rem;
    background: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-sign-in:hover {
    background: #1f2937;
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #1f2937;
    transition: all 0.2s ease;
}

.user-menu-toggle:hover {
    border-color: #000000;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 0.5rem;
    z-index: 1000;
}

.user-menu.active .user-menu-dropdown {
    display: block;
}

.user-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.user-menu-item:hover {
    background: #f3f4f6;
    color: #000000;
}

.user-menu-item i {
    margin-right: 0.5rem;
}

/* Button States */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-modal-content {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .auth-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .user-credits span {
        display: none;
    }
    
    .nav-user-info {
        gap: 0.5rem;
    }
}
