/* Google Authentication Styles */

/* Sign-in Button Container */
#google-signin-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

/* User Profile Display */
#user-profile {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#user-profile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #E2E8F0;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sign Out Button */
#signout-button {
    display: none;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid #E2E8F0;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#signout-button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Navigation User Section */
.nav-user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.auth-modal.show {
    display: flex;
}

.auth-modal-content {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.auth-modal-close:hover {
    background: #F3F4F6;
    color: var(--text-dark);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-modal-header h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.auth-modal-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.auth-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.auth-divider {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
    line-height: 0.1em;
    margin: 20px 0;
}

.auth-divider span {
    background: var(--white);
    padding: 0 10px;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Notification */
.auth-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.auth-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.auth-notification-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.auth-notification-error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.auth-notification-info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}

/* Sign In Page Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 100%);
    padding: 40px 20px;
}

.auth-container {
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.auth-title p {
    color: var(--text-light);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #E2E8F0;
}

.auth-footer p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Protected Content */
.protected-content {
    display: none;
}

.protected-content.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container,
    .auth-modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .user-name {
        display: none;
    }

    .auth-notification {
        right: 10px;
        left: 10px;
        top: 10px;
        font-size: 0.9rem;
        padding: 12px 16px;
    }

    #user-profile {
        padding: 6px 12px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .auth-modal-header h2 {
        font-size: 1.5rem;
    }

    .auth-modal-header p {
        font-size: 0.9rem;
    }

    #google-signin-button {
        margin: 15px 0;
    }

    .auth-title h2 {
        font-size: 1.5rem;
    }

    .auth-logo h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-container,
    .auth-modal-content {
        padding: 25px 16px;
    }

    .auth-modal-header h2 {
        font-size: 1.25rem;
    }

    .auth-title h2 {
        font-size: 1.25rem;
    }

    .auth-logo h1 {
        font-size: 1.25rem;
    }

    #user-profile {
        padding: 4px 8px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

    #signout-button {
        font-size: 0.7rem;
        padding: 0.35rem 0.65rem;
    }
}
