/**
 * Seattle SEO Authentication Styles
 * Login, Register, User Menu, Modals
 */

/* Auth Buttons in Header */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mountain-slate);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-login:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-signup {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    background: var(--accent-blue);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-signup:hover {
    background: #1565B3;
}

/* User Menu */
.user-menu {
    display: none;
    align-items: center;
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mountain-slate);
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown-btn:hover {
    border-color: var(--accent-blue);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
}

.user-dropdown-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--mountain-slate);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background 0.2s ease;
}

.user-dropdown-menu a:hover {
    background: var(--light-bg);
}

.user-dropdown-menu a svg {
    width: 18px;
    height: 18px;
    color: var(--rainfall-gray);
}

.user-dropdown-menu .divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.user-dropdown-menu .logout-btn {
    color: #DC2626;
}

.user-dropdown-menu .logout-btn svg {
    color: #DC2626;
}

.admin-link {
    display: none;
}

/* Auth Modals */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    margin: 16px;
}

.auth-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--mountain-slate);
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--border-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mountain-slate);
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 0.9375rem;
    color: var(--rainfall-gray);
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mountain-slate);
    margin-bottom: 6px;
}

.auth-form label span {
    color: #DC2626;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(27, 118, 201, 0.15);
}

.auth-form .btn-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.auth-form .btn-submit:hover {
    background: #1565B3;
}

.auth-form .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-form .form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    display: none;
}

.auth-form .form-message.error {
    display: block;
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.auth-form .form-message.success {
    display: block;
    background: #D1FAE5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

.modal-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--rainfall-gray);
}

.modal-footer a,
.modal-footer button {
    color: var(--accent-blue);
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
}

.modal-footer a:hover,
.modal-footer button:hover {
    text-decoration: underline;
}

/* Notification */
.notification {
    position: fixed;
    top: 90px;
    right: 24px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    border-left: 4px solid #10B981;
}

.notification-error {
    border-left: 4px solid #DC2626;
}

.notification-info {
    border-left: 4px solid var(--accent-blue);
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--rainfall-gray);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    color: var(--mountain-slate);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-buttons {
        gap: 8px;
    }

    .btn-login,
    .btn-signup {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }

    .user-dropdown-btn {
        padding: 4px 8px;
    }

    .user-dropdown-btn .user-name {
        display: none;
    }

    .modal-content {
        padding: 24px;
        margin: 16px;
    }

    .notification {
        right: 16px;
        left: 16px;
        max-width: none;
    }
}
