/* Notification bell (header) — shared across every page that includes header.php.
   Kept in its own file (not inside home.css) so pages that skip head-assets.php
   still get correctly-styled, mobile-only bell + dropdown, matching index.php. */

/* —— Notification bell (header) —— */
.cyz-notif-wrap {
    margin-left: 0.75rem;
    order: 1;
}

/* Bell only shows on phones — hidden from tablet width up. */
@media (min-width: 768px) {
    .cyz-notif-wrap {
        display: none;
    }
}

.cyz-notif-bell {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(1, 41, 112, 0.1), 0 0 0 1px rgba(1, 41, 112, 0.06);
    font-size: 1.05rem;
    color: #4a5169;
    transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cyz-notif-bell:hover,
.cyz-notif-bell:focus {
    color: var(--cy-primary, #0d6efd);
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.18), 0 0 0 1px rgba(13, 110, 253, 0.12);
}

.cyz-notif-bell:active {
    transform: scale(0.94);
}

.cyz-notif-bell.has-unread {
    color: var(--cy-primary, #0d6efd);
    animation: cyzBellRing 4s ease-in-out infinite;
}

@keyframes cyzBellRing {
    0%, 92%, 100% { transform: rotate(0); }
    93% { transform: rotate(-12deg); }
    94% { transform: rotate(10deg); }
    95% { transform: rotate(-8deg); }
    96% { transform: rotate(6deg); }
    97% { transform: rotate(0); }
}

.cyz-notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5e62, #e34141);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(227, 65, 65, 0.4);
}

.cyz-notif-panel {
    width: 350px;
    max-width: 92vw;
    padding: 0;
    border: none;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(1, 41, 112, 0.18), 0 0 0 1px rgba(1, 41, 112, 0.04);
    overflow: hidden;
    margin-top: 10px !important;
}

.cyz-notif-header {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(120deg, var(--cy-primary, #0d6efd) 0%, #6610f2 130%);
}

.cyz-notif-header-count {
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 9px;
    border-radius: 999px;
}

.cyz-notif-list {
    max-height: 380px;
    overflow-y: auto;
    background: #fff;
}

.cyz-notif-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 18px;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: background 0.15s ease;
}

.cyz-notif-item + .cyz-notif-item {
    border-top: 1px solid #f3f4fb;
}

.cyz-notif-item:hover {
    background: #f7f9ff;
}

.cyz-notif-item.unread {
    background: #f5f8ff;
}

.cyz-notif-item.unread::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--cy-primary, #0d6efd), #6610f2);
}

.cyz-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(1, 41, 112, 0.08);
    margin-top: 1px;
}

.cyz-notif-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cyz-notif-item.read .cyz-notif-icon {
    opacity: 0.6;
}

.cyz-notif-item-body { min-width: 0; flex: 1; }

.cyz-notif-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #101828;
    margin-bottom: 2px;
    line-height: 1.35;
}

.cyz-notif-text {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 4px;
}

.cyz-notif-time {
    font-size: 0.7rem;
    color: #9aa1af;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cyz-notif-item.unread .cyz-notif-time {
    color: var(--cy-primary, #0d6efd);
    font-weight: 600;
}

.cyz-notif-empty {
    padding: 44px 20px;
    text-align: center;
    color: #9aa1af;
    font-size: 0.85rem;
}

.cyz-notif-empty::before {
    content: "\F631";
    font-family: "bootstrap-icons";
    display: block;
    font-size: 1.6rem;
    color: #d7dcec;
    margin-bottom: 8px;
}
