/* =====================================================
   GayForIt Notification System
   Matches existing site theme: dark bg, #ff8730 accent
   ===================================================== */

/* ─── Bell wrapper (sits in header bar) ─── */
.notif-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.notif-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.15s, border-color 0.15s;
}

.notif-bell:hover {
    background: rgba(255, 135, 48, 0.10);
    border-color: rgba(255, 135, 48, 0.25);
}

.notif-bell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    color: #cfcfd6;
    opacity: 0.95;
    transition: color 0.2s;
}

.notif-bell-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.notif-bell:hover .notif-bell-icon {
    color: #ff8730;
}

/* ─── Badge (unread count) ─── */
.notif-badge {
    display: none; /* shown via JS when count > 0 */
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 10px;
    padding: 0 5px;
    font-family: Arial, sans-serif;
    border: 2px solid #18181c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.notif-badge:empty,
.notif-badge[style*="display: none"] {
    display: none !important;
}

/* ─── Dropdown  ─── */
.notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: -12px;
    width: 360px;
    max-height: 480px;
    background: #1a1a1e;
    border: 1px solid #2a2a32;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    z-index: 9999;
    overflow: hidden;
}

.notif-dropdown-open {
    display: block;
}

/* ─── Header bar ─── */
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #2a2a32;
}

.notif-header-title {
    font-size: 14px;
    font-weight: 700;
    color: #f0f0f2;
}

.notif-mark-all {
    font-size: 12px;
    color: #ff8730;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: inherit;
}

.notif-mark-all:hover {
    color: #ffa050;
}

/* ─── Notification list ─── */
.notif-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2a2a32 transparent;
}

.notif-list::-webkit-scrollbar {
    width: 4px;
}
.notif-list::-webkit-scrollbar-track {
    background: transparent;
}
.notif-list::-webkit-scrollbar-thumb {
    background: #3a3a42;
    border-radius: 2px;
}

/* ─── Individual notification ─── */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #f0f0f2;
    transition: background 0.15s;
    border-bottom: 1px solid #222228;
    cursor: pointer;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: #222228;
}

/* Unread indicator */
.notif-unread {
    background: rgba(255, 135, 48, 0.06);
    border-left: 3px solid #ff8730;
}

.notif-unread:hover {
    background: rgba(255, 135, 48, 0.1);
}

/* ─── Left side: icon or thumbnail ─── */
.notif-left {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.notif-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Icon colour variants */
.notif-icon-green  { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.notif-icon-red    { background: rgba(239, 68, 68, 0.15);  color: #ef4444; }
.notif-icon-pink   { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.notif-icon-blue   { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.notif-icon-yellow { background: rgba(250, 204, 21, 0.15); color: #facc15; }
.notif-icon-orange { background: rgba(255, 135, 48, 0.15); color: #ff8730; }
.notif-icon-purple { background: rgba(167, 139, 250, 0.15);color: #a78bfa; }
.notif-icon-grey   { background: rgba(150, 150, 160, 0.15);color: #9a9aa8; }

/* ─── Content ─── */
.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
    color: #f0f0f2;
}

.notif-unread .notif-title {
    color: #fff;
}

.notif-msg {
    font-size: 12px;
    color: #9a9aa8;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-time {
    font-size: 11px;
    color: #6b6b7a;
    margin-top: 3px;
}

.notif-unread .notif-time {
    color: #ff8730;
}

/* ─── Empty / loading states ─── */
.notif-empty,
.notif-loading {
    padding: 32px 16px;
    text-align: center;
    color: #6b6b7a;
    font-size: 13px;
}

/* ─── Footer link ─── */
.notif-footer {
    border-top: 1px solid #2a2a32;
    padding: 10px 16px;
    text-align: center;
}

.notif-footer a {
    font-size: 12px;
    color: #ff8730;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.notif-footer a:hover {
    color: #ffa050;
}

/* ─── Mobile responsive ─── */
@media (max-width: 480px) {
    .notif-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
        border: none;
    }
}
