/* =========================================
   ZENCOMMENTS NOTIFICATIONS
   Theme: Bordeaux Red (#800020) & Sky Blue Accents
   Style: Flat (No Shadows)
   ========================================= */

/* 1. FLOATING BUTTON */
.zc-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background-color: #800020;
    /* Bordeaux Red */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.zc-floating-btn:hover {
    transform: scale(1.1);
    background-color: #9b1c31;
}

.zc-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #0369a1;
    /* Sky Blue 700 - High contrast */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-sizing: border-box;
}

/* 2. OFF-CANVAS SIDEBAR */
.zc-sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    /* Hidden state */
    width: 350px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 100000;
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.zc-sidebar.is-open {
    left: 0;
}

.zc-sidebar-header {
    padding: 20px;
    background-color: #800020;
    /* Bordeaux Red */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zc-sidebar-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.zc-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.zc-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.zc-loader {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

/* 3. OVERLAY */
.zc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.zc-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 4. NOTIFICATION LIST ITEMS */
.zc-notif-item {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.zc-notif-item:hover {
    background-color: #f9fafb;
}

/* Only highlight UNREAD items */
.zc-notif-item.is-unread {
    background-color: #f0f9ff;
    /* Sky Blue 50 */
    border-left: 4px solid #0369a1;
    /* Sky Blue Accent */
}

/* Style for reply type (optional, if we want visuals even when read) */
.zc-notif-item.is-reply-type {
    /* No special background when read, just the tag indicates it */
}

.zc-notif-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #6b7280;
}

.zc-notif-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.zc-notif-author {
    font-weight: 600;
    color: #1f2937;
    margin-right: 5px;
}

.zc-notif-type {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    font-weight: 600;
}

.zc-tag-reply {
    background-color: #e0f2fe;
    color: #0284c7;
}

.zc-tag-mine {
    background-color: #f3f4f6;
    color: #4b5563;
}

.zc-notif-content {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.4;
    margin-bottom: 8px;
}

.zc-notif-post-title {
    font-size: 0.75rem;
    color: #9ca3af;
    display: block;
}

.zc-notif-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .zc-sidebar {
        width: 75%;
        left: -75%;
    }
}

/* 5. CUSTOM MENU TRIGGER SUPPORT */
.zc-notif-wrapper {
    position: relative;
    display: inline-block;
    /* Always visible */
    vertical-align: middle;
    line-height: 0;
    /* Prevents extra height on inline-block images */
}

.zc-notif-wrapper .zc-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 0.65rem;
    border-width: 1.5px;
}