/* ============================================================
   AI Tools — Browser Notifications UI (Simplified)
   ============================================================ */

/* ---- Bell Button ---- */
.ai-notif-bell-btn {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    color: var(--text-light);
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.ai-notif-bell-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f7ff;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}

.ai-notif-bell-btn.granted {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
}

.ai-notif-bell-btn.granted:hover {
    background: #d1fae5;
}

.ai-notif-bell-btn.denied {
    background: #f8fafc;
    border-color: var(--border);
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Denied state when the bell lives in the hero (.btn-icon) */
.hc-actions .btn-notifications.denied,
.hc-actions .btn-notifications.ai-notif-bell-btn.denied {
    opacity: 1 !important;
    cursor: pointer !important;
    border-color: rgba(245, 158, 11, 0.55) !important;
    background: rgba(245, 158, 11, 0.14) !important;
    color: #f59e0b !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18) !important;
}

.hc-actions .btn-notifications.denied:hover,
.hc-actions .btn-notifications.ai-notif-bell-btn.denied:hover {
    background: rgba(245, 158, 11, 0.20) !important;
    border-color: rgba(245, 158, 11, 0.75) !important;
    transform: translateY(-2px);
}

.hc-actions .btn-notifications.denied i,
.hc-actions .btn-notifications.ai-notif-bell-btn.denied i {
    color: #f59e0b !important;
}

.hc-actions .btn-notifications.denied::after,
.hc-actions .btn-notifications.ai-notif-bell-btn.denied::after {
    content: '!';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #f59e0b;
    color: #111827;
    font-weight: 800;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
}

/* ---- Wrapper Positioning ---- */
.ai-notif-wrapper.global-floating {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
}

.ai-notif-wrapper.global-floating .ai-notif-bell-btn {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
}

.ai-notif-wrapper.global-floating .ai-notif-bell-btn:hover {
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.6);
}

.ai-notif-wrapper.in-hero {
    grid-area: bell;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.ai-notif-wrapper.in-hero .ai-notif-bell-btn {
    border-radius: 16px;
    width: 100%;
    height: 100%;
}

/* ---- Mobile Adjustments ---- */
@media (max-width: 480px) {
    .ai-notif-wrapper.global-floating {
        bottom: 16px;
        right: 16px;
    }
}

/* ---- Make bell icon yellow when used in hero actions ---- */
.hc-actions .btn-notifications i,
.hc-actions .ai-notif-bell-btn i {
    color: #facc15; /* amber */
}

/* Override the base .btn-icon blue color */
.hc-actions .btn-notifications {
    position: relative;
    color: #facc15 !important;
    border-color: rgba(250, 204, 21, 0.45) !important;
    background: rgba(250, 204, 21, 0.12) !important;
}

.hc-actions .btn-notifications:hover {
    background: rgba(250, 204, 21, 0.18) !important;
    border-color: rgba(250, 204, 21, 0.65) !important;
}