/* MAQTOU notification bell + active-job banner + toast */

.notif-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.notif-bell {
    position: relative;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: inherit;
    font-size: 18px;
    line-height: 1;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .15s;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}
.notif-bell::before {
    content: "\1F514"; /* 🔔 */
    font-size: 18px;
    line-height: 1;
}
.notif-bell { font-size: 0; }
.notif-bell:hover { background: rgba(255,255,255,0.12); }
.notif-bell.has-unread { animation: notif-shake 1.6s ease-in-out infinite; }
@keyframes notif-shake {
    0%, 88%, 100% { transform: rotate(0); }
    91% { transform: rotate(-12deg); }
    94% { transform: rotate(12deg); }
    97% { transform: rotate(-6deg); }
}
.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #EF4444;
    color: #fff;
    border: 2px solid #1A1A1E;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-width: 92vw;
    max-height: 70vh;
    overflow-y: auto;
    background: #1A1A1E;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
}
.notif-dropdown.open { display: block; }
.notif-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; align-items: center;
}
.notif-header strong { font-size: .95rem; }
.notif-header a { color: #FFB347; font-size: .82rem; text-decoration: none; }
.notif-list { padding: 4px 0; }
.notif-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: #fff;
    text-decoration: none;
    transition: background .12s;
}
.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-item.unread { background: rgba(255, 179, 71, 0.06); border-left: 3px solid #FFB347; }
.notif-item strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.notif-item span { display: block; font-size: .82rem; color: #aaa; margin-bottom: 4px; }
.notif-item time { font-size: .72rem; color: #777; }
.notif-empty { padding: 28px 16px; text-align: center; color: #888; font-size: .9rem; }

/* Active job banner — sticky top */
#active-job-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2000;
    background: linear-gradient(90deg, #FF6B35, #F7931E);
    color: #fff;
    padding: 10px 18px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    box-shadow: 0 2px 12px rgba(255,107,53,0.4);
    text-transform: capitalize;
}
#active-job-banner:hover { filter: brightness(1.1); }
#active-job-banner .ajb-pulse {
    display: inline-block;
    width: 10px; height: 10px;
    background: #fff; border-radius: 50%;
    animation: ajb-pulse 1.2s ease-in-out infinite;
}
@keyframes ajb-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}
#active-job-banner .ajb-cta { opacity: 0.85; font-size: .85rem; }
body.has-active-job-banner { padding-top: 44px; }

/* Toasts */
#maqtou-toast-container {
    position: fixed;
    top: 70px; right: 16px;
    z-index: 2500;
    display: flex; flex-direction: column; gap: 10px;
    max-width: 360px;
    pointer-events: none;
}
.maqtou-toast {
    background: #1A1A1E;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid #FFB347;
    border-radius: 10px;
    padding: 12px 36px 12px 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    position: relative;
    transform: translateX(120%);
    transition: transform .3s ease, opacity .3s ease;
    opacity: 0;
    pointer-events: auto;
}
.maqtou-toast.visible { transform: translateX(0); opacity: 1; }
.maqtou-toast strong { display:block; font-size:.92rem; margin-bottom:2px; }
.maqtou-toast p { margin:0; font-size:.82rem; color:#bbb; }
.maqtou-toast-link {
    display:inline-block; margin-top:6px;
    color:#FFB347; text-decoration:none; font-size:.82rem; font-weight:600;
}
.maqtou-toast-close {
    position:absolute; top:6px; right:6px;
    background:none; border:none; color:#888;
    font-size:1.2rem; line-height:1; cursor:pointer; padding:4px 8px;
}
.maqtou-toast-close:hover { color:#fff; }

/* When inside the public navbar (light context) */
.nav-links .notif-bell {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
    color: var(--color-text, #1A1A1E);
}
.nav-links .notif-bell:hover { background: rgba(0,0,0,0.08); }
.nav-links .notif-badge { border-color: #fff; }

@media (max-width: 600px) {
    .notif-dropdown { right: -8px; width: 300px; }
    #maqtou-toast-container { left: 8px; right: 8px; max-width: none; }
}
