/**
 * ========================================
 * NYMIA NOTIFICATION SYSTEM - STYLES
 * ========================================
 * All notification-related CSS
 * 
 * @package Nymia
 * @version 1.0
 */

/* ==========================================
   NOTIFICATION BUTTON
   ========================================== */
.nymia-notification-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #C7541A;
    color: #C7541A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nymia-notification-btn:hover {
    background-color: rgba(199, 84, 26, 0.1);
    transform: scale(1.05);
}

.nymia-notification-btn svg {
    width: 22px;
    height: 22px;
}

.nymia-notification-wrapper {
    position: relative;
}

.nymia-notification-count {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #BF4C1A, #9F2B1A);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   NOTIFICATION DROPDOWN
   ========================================== */
.nymia-notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 420px;
    max-width: 90vw;
    background: #1E1E1E;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease, visibility 0s linear 220ms;
    will-change: transform, opacity;
    max-height: 560px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nymia-notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 999;
    transition-delay: 0s, 0s, 0s;
}

.nymia-notification-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1E1E1E;
}

.nymia-notification-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.5px;
}

.nymia-notification-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nymia-notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.nymia-notification-close svg {
    width: 18px;
    height: 18px;
}

.nymia-notification-body {
    padding: 0;
    overflow-y: auto;
    max-height: 380px;
    flex: 1;
}

.nymia-notification-body::-webkit-scrollbar {
    width: 6px;
}

.nymia-notification-body::-webkit-scrollbar-track {
    background: transparent;
}

.nymia-notification-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.nymia-notification-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nymia-notification-loading,
.nymia-notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.9375rem;
}

/* ==========================================
   NOTIFICATION ITEMS
   ========================================== */
.nymia-notification-item {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

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

.nymia-notification-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.nymia-notification-item.unread {
    background: rgba(191, 76, 26, 0.05);
}

.nymia-notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #BF4C1A;
}

.nymia-notification-item-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.nymia-notification-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #BF4C1A, #9F2B1A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nymia-notification-item-icon svg {
    width: 24px;
    height: 24px;
}

.nymia-notification-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    object-fit: cover;
    border: 2px solid #2a2a2a;
}

.nymia-notification-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nymia-notification-item-text {
    flex: 1;
    min-width: 0;
}

.nymia-notification-item-message {
    font-size: 0.9375rem;
    color: #FFFFFF;
    line-height: 1.5;
    margin-bottom: 4px;
}

.nymia-notification-item-message strong {
    font-weight: 600;
    color: #FFFFFF;
}

.nymia-notification-item-message b {
    font-weight: 600;
    color: #BF4C1A;
}

.nymia-notification-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.nymia-notification-item-time {
    font-size: 0.75rem;
    color: #9CA3AF;
    font-weight: 400;
}

/* ==========================================
   NOTIFICATION FOOTER
   ========================================== */
.nymia-notification-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #1E1E1E;
}

.nymia-notification-view-all {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #BF4C1A, #9F2B1A);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nymia-notification-view-all:hover {
    background: linear-gradient(135deg, #E85A2A, #A63312);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 76, 26, 0.4);
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */
@media (max-width: 768px) {

    .nymia-notification-btn,
    .nymia-profile-btn {
        width: 50px;
        height: 50px;
    }

    .nymia-notification-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Center dropdown to viewport on mobile/tablet */
    .nymia-notification-dropdown {
        position: fixed;
        top: 80px;
        left: 50%;
        right: auto;
        width: 90vw;
        max-width: 400px;
        transform: translateX(-50%) translateY(-10px);
        z-index: 9999;
    }

    .nymia-notification-dropdown.active {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 480px) {

    .nymia-notification-btn,
    .nymia-profile-btn {
        width: 44px;
        height: 44px;
    }

    .nymia-notification-btn svg {
        width: 18px;
        height: 18px;
    }

    .nymia-notification-dropdown {
        position: fixed;
        top: 70px;
        width: 95vw;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        z-index: 9999;
    }

    .nymia-notification-dropdown.active {
        transform: translateX(-50%) translateY(0);
    }
}