/**
 * Notifications Dropdown - Clean CSS
 * No inline styles, fully responsive
 */

/* ============================================
   NOTIFICATION BELL CONTAINER
   ============================================ */

.sh-notif-container {
    position: relative;
    margin-right: 20px;
}

/* ============================================
   NOTIFICATION BELL BUTTON
   ============================================ */

.sh-notif-bell {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    position: relative;
    padding: 8px;
    transition: opacity 0.2s ease;
}

.sh-notif-bell:hover {
    opacity: 0.8;
}

.sh-notif-bell i {
    width: 20px;
    height: 20px;
}

/* ============================================
   NOTIFICATION BADGE (Unread Count)
   ============================================ */

.sh-notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #E63946;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
}

/* ============================================
   NOTIFICATION DROPDOWN
   ============================================ */

.sh-notif-dropdown {
    display: none;
    position: fixed;
    top: 60px;
    right: 10px;
    width: calc(100% - 20px);
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    -webkit-overflow-scrolling: touch;
}

.sh-notif-dropdown.is-open {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   NOTIFICATION HEADER
   ============================================ */

.sh-notif-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 1;
}

.sh-notif-title {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.sh-notif-mark-all {
    background: transparent;
    border: none;
    color: #E63946;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.sh-notif-mark-all:hover {
    opacity: 0.8;
}

/* ============================================
   NOTIFICATION LIST
   ============================================ */

.sh-notif-list {
    padding: 8px;
}

.sh-notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.sh-notif-loading {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   NOTIFICATION ITEM
   ============================================ */

.sh-notif-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sh-notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sh-notif-item.unread {
    background: rgba(230, 57, 70, 0.1);
}

.sh-notif-item.unread:hover {
    background: rgba(230, 57, 70, 0.15);
}

.sh-notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sh-notif-icon i {
    width: 20px;
    height: 20px;
    color: #E63946;
}

.sh-notif-content {
    flex: 1;
    min-width: 0;
}

.sh-notif-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 4px 0;
}

/* Company line (small, elegant) */
.sh-notif-company {
    margin: 0 0 2px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

/* Secondary message (subtle) */
.sh-notif-secondary {
    margin: 2px 0 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12.5px;
    line-height: 1.4;
}

.sh-notif-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-notif-link {
    color: #E63946;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.sh-notif-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* v2025.11.08.08:55 | CTA text style when whole item is clickable (no <a>) */
.sh-notif-link-text {
    color: #E63946;
    font-weight: 500;
}
.sh-notif-item:hover .sh-notif-link-text {
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .sh-notif-dropdown {
        top: 56px;
        right: 5px;
        left: 5px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 70px);
    }
    
    .sh-notif-header {
        padding: 12px;
    }
    
    .sh-notif-title {
        font-size: 15px;
    }
    
    .sh-notif-mark-all {
        font-size: 11px;
    }
    
    .sh-notif-item {
        padding: 10px;
    }
    
    .sh-notif-icon {
        width: 36px;
        height: 36px;
    }
    
    .sh-notif-icon i {
        width: 18px;
        height: 18px;
    }
    
    .sh-notif-message {
        font-size: 13px;
    }
    
    .sh-notif-time {
        font-size: 11px;
    }
}

/* Admin Bar Offset */
body.admin-bar .sh-notif-dropdown {
    top: 92px;
}

@media (max-width: 782px) {
    body.admin-bar .sh-notif-dropdown {
        top: 102px;
    }
}
