/* ═══════════════════════════════════════════════
   AUTH.CSS — Signup, Login, Profile, Dropdown
   ═══════════════════════════════════════════════ */

:root {
    --auth-accent:    #2563eb;
    --auth-accent-h:  #1d4ed8;
    --auth-bg:        #f1f5f9;
    --auth-card:      #ffffff;
    --auth-border:    #e2e8f0;
    --auth-text:      #1e293b;
    --auth-muted:     #64748b;
    --auth-error:     #dc2626;
    --auth-success:   #16a34a;
    --auth-radius:    14px;
    --auth-shadow:    0 4px 40px rgba(0,0,0,.09);
    --transition:     .2s ease;
}

/* ── Auth Pages Layout ── */
.auth-body { background: var(--auth-bg); }

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: var(--auth-bg);
}

.auth-card {
    background: var(--auth-card);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 48px 44px;
    width: 100%;
    max-width: 480px;
}

.auth-card--wide { max-width: 720px; }

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 38px; }

.auth-title { font-size: 1.65rem; font-weight: 700; color: var(--auth-text); text-align: center; margin: 0 0 6px; }
.auth-sub   { color: var(--auth-muted); font-size: .95rem; text-align: center; margin: 0 0 28px; }

/* ── Alerts ── */
.auth-alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 20px;
}
.auth-alert--error   { background: #fef2f2; border: 1px solid #fecaca; color: var(--auth-error); }
.auth-alert--success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--auth-success); }

/* ── Social Buttons ── */
.social-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.btn-social {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px 16px; border-radius: 10px;
    font-size: .95rem; font-weight: 600; cursor: pointer;
    font-family: 'Outfit', sans-serif; text-decoration: none;
    transition: all var(--transition);
    border: 1.5px solid var(--auth-border); background: #fff; color: #374151;
}
.btn-social:hover { background: #f8fafc; }
.btn-social img { width: 20px; height: 20px; }
.btn-google:hover  { border-color: #4285f4; color: #4285f4; }
.btn-linkedin:hover { border-color: #0077b5; color: #0077b5; }

/* ── Divider ── */
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    color: #94a3b8; font-size: .82rem; margin-bottom: 22px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--auth-border); }

/* ── Form Elements ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .85rem; color: #374151; margin-bottom: 6px; }
.req { color: var(--auth-error); }

.form-control {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--auth-border); border-radius: 10px;
    font-size: .95rem; font-family: 'Outfit', sans-serif;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box; color: var(--auth-text); background: #fff;
}
.form-control:focus { outline: none; border-color: var(--auth-accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-right: 44px; }
.toggle-pw {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: var(--auth-muted);
    padding: 4px; font-size: .9rem; transition: color var(--transition);
}
.toggle-pw:hover { color: var(--auth-accent); }

.field-error { color: var(--auth-error); font-size: .8rem; margin-top: 4px; }

.form-row-inline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--auth-muted); cursor: pointer; }
.forgot-link { font-size: .88rem; color: var(--auth-accent); text-decoration: none; font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

/* ── Password Strength ── */
.pw-strength { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.pw-bar { flex: 1; height: 4px; background: var(--auth-border); border-radius: 4px; overflow: hidden; }
.pw-bar span { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .3s, background .3s; }
#pwLabel, #pwLabel2 { font-size: .78rem; font-weight: 600; min-width: 44px; text-transform: capitalize; }

/* ── Avatar Upload ── */
.avatar-upload-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; }
.avatar-upload-wrap--sm { margin-bottom: 0; }

.avatar-preview {
    position: relative; width: 100px; height: 100px;
    border-radius: 50%; overflow: hidden; cursor: pointer;
    border: 3px solid var(--auth-border);
    transition: border-color var(--transition);
}
.avatar-preview:hover { border-color: var(--auth-accent); }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

.avatar-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,.45);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; font-size: .75rem; gap: 4px; opacity: 0;
    transition: opacity var(--transition);
}
.avatar-preview:hover .avatar-overlay,
.avatar-overlay.drag-over { opacity: 1; }
.avatar-overlay i { font-size: 1.2rem; }
.avatar-hint { font-size: .78rem; color: var(--auth-muted); margin-top: 8px; text-align: center; }

/* ── CTA Button ── */
.btn-auth {
    width: 100%; padding: 13px; background: var(--auth-accent); color: #fff;
    border: none; border-radius: 10px; font-size: 1rem; font-weight: 600;
    cursor: pointer; font-family: 'Outfit', sans-serif;
    transition: background var(--transition), transform var(--transition);
    margin-top: 4px;
}
.btn-auth:hover { background: var(--auth-accent-h); transform: translateY(-1px); }
.btn-auth:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.auth-footer { text-align: center; margin-top: 24px; font-size: .9rem; color: var(--auth-muted); }
.auth-footer a { color: var(--auth-accent); font-weight: 600; text-decoration: none; }
   PROFILE PAGE
   ═══════════════════════════════════════════════ */

.profile-page { padding: 120px 0 80px; background: var(--auth-bg); min-height: 80vh; }

.profile-container {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: 280px 1fr; gap: 28px;
}
@media (max-width: 768px) { .profile-container { grid-template-columns: 1fr; } }

/* Sidebar */
.profile-sidebar {
    background: #fff; border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow); padding: 32px 24px;
    text-align: center; height: fit-content; position: sticky; top: 90px;
}

.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 16px; }
.profile-avatar {
    width: 96px; height: 96px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--auth-border);
}
.profile-avatar-badge {
    position: absolute; bottom: 2px; right: 2px;
    width: 26px; height: 26px; background: var(--auth-accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .65rem; border: 2px solid #fff;
}

.profile-name  { font-size: 1.1rem; font-weight: 700; color: var(--auth-text); margin: 0 0 4px; }
.profile-email { font-size: .85rem; color: var(--auth-muted); margin: 0 0 10px; }
.profile-bio   { font-size: .85rem; color: var(--auth-muted); margin: 0 0 20px; line-height: 1.5; }

.profile-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }

.profile-nav-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px; border: none;
    background: none; cursor: pointer; font-family: 'Outfit', sans-serif;
    font-size: .9rem; font-weight: 500; color: var(--auth-muted);
    text-decoration: none; transition: all var(--transition); text-align: left;
}
.profile-nav-btn i { width: 16px; font-size: .85rem; }
.profile-nav-btn:hover, .profile-nav-btn.active { background: #eff6ff; color: var(--auth-accent); }
.profile-nav-btn.active { font-weight: 600; }
.profile-nav-logout { color: var(--auth-error) !important; }
.profile-nav-logout:hover { background: #fef2f2 !important; }

.badge {
    margin-left: auto; background: var(--auth-accent); color: #fff;
    font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 20px;
}

/* Main */
.profile-main { min-width: 0; }

.profile-tab { display: none; }
.profile-tab.active { display: block; }

.profile-card {
    background: #fff; border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow); overflow: hidden;
}
.profile-card-header {
    padding: 20px 28px; border-bottom: 1px solid var(--auth-border);
}
.profile-card-header h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--auth-text); }

.profile-card form { padding: 24px 28px; }

.form-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }

.form-actions { display: flex; gap: 12px; margin-top: 8px; }

.btn-primary-action {
    padding: 11px 28px; background: var(--auth-accent); color: #fff;
    border: none; border-radius: 10px; font-size: .95rem; font-weight: 600;
    cursor: pointer; font-family: 'Outfit', sans-serif;
    transition: background var(--transition), transform var(--transition);
    text-decoration: none; display: inline-flex; align-items: center;
}
.btn-primary-action:hover { background: var(--auth-accent-h); transform: translateY(-1px); color: #fff; }

.btn-secondary-action {
    padding: 11px 24px; background: #f1f5f9; color: var(--auth-muted);
    border: 1.5px solid var(--auth-border); border-radius: 10px;
    font-size: .95rem; font-weight: 600; cursor: pointer;
    font-family: 'Outfit', sans-serif; transition: all var(--transition);
}
.btn-secondary-action:hover { background: #e2e8f0; color: var(--auth-text); }

/* Reviews List */
.reviews-list { padding: 16px 28px 28px; display: flex; flex-direction: column; gap: 16px; }

.review-item {
    border: 1px solid var(--auth-border); border-radius: 12px;
    padding: 18px 20px; transition: box-shadow var(--transition);
}
.review-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); }

.review-item-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.review-company  { font-size: .95rem; font-weight: 700; color: var(--auth-text); margin: 0 0 3px; }
.review-headline { font-size: .85rem; color: var(--auth-muted); margin: 0; }

.review-meta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.review-stars { display: flex; align-items: center; gap: 3px; font-size: .85rem; }
.review-stars span { margin-left: 4px; font-weight: 600; color: var(--auth-text); }

.review-status {
    font-size: .72rem; font-weight: 700; padding: 3px 10px;
    border-radius: 20px; text-transform: uppercase; letter-spacing: .04em;
}
.review-status--approved { background: #dcfce7; color: #15803d; }
.review-status--pending  { background: #fef9c3; color: #a16207; }
.review-status--rejected { background: #fee2e2; color: #b91c1c; }
.review-status--hold     { background: #dbeafe; color: #1d4ed8; }
.review-status--on_hold  { background: #dbeafe; color: #1d4ed8; }

.review-body { font-size: .88rem; color: var(--auth-muted); line-height: 1.6; margin: 0 0 12px; }

.review-item-footer { display: flex; justify-content: space-between; align-items: center; }
.review-date { font-size: .8rem; color: #94a3b8; display: flex; align-items: center; gap: 6px; }

.review-actions { display: flex; gap: 8px; }
.btn-review-action {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 8px; font-size: .82rem; font-weight: 600;
    cursor: pointer; text-decoration: none; border: none; font-family: 'Outfit', sans-serif;
    transition: all var(--transition);
}
.btn-edit   { background: #eff6ff; color: var(--auth-accent); }
.btn-edit:hover { background: #dbeafe; }
.btn-delete { background: #fef2f2; color: var(--auth-error); }
.btn-delete:hover { background: #fee2e2; }

/* Empty State */
.empty-state {
    padding: 60px 28px; text-align: center; color: var(--auth-muted);
}
.empty-state i { font-size: 3rem; color: #cbd5e1; margin-bottom: 16px; display: block; }
.empty-state p { margin: 0 0 20px; font-size: .95rem; }

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════ */

.toast {
    position: fixed; bottom: 28px; right: 28px; z-index: 99999;
    padding: 14px 22px; border-radius: 12px; font-size: .9rem; font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,.15); color: #fff;
    transform: translateY(20px); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
    max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast--success { background: #16a34a; }
.toast--error   { background: var(--auth-error); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 600px) {
    .auth-card { padding: 32px 20px; }
    .auth-card--wide { padding: 28px 18px; }
    .profile-card form { padding: 20px 16px; }
    .reviews-list { padding: 12px 16px 20px; }
    .review-item-header { flex-direction: column; }
    .review-meta-right { align-items: flex-start; }
    .nav-profile-name { display: none; }
    .toast { bottom: 16px; right: 16px; left: 16px; max-width: none; }
}
