/* ============================================================
   NOTIFICATION SYSTEM STYLES — Free Online CV Maker
   ============================================================ */

/* Notification Bell Container */
.notification-bell-wrapper {
    position: relative;
    margin-right: 8px;
}

.notification-bell-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--dark, #1f2937);
    font-size: 1.2rem;
    transition: all 0.25s ease;
}

.notification-bell-btn:hover {
    background: rgba(26, 167, 255, 0.1);
    color: var(--brand-blue, #1aa7ff);
}

.notification-bell-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 167, 255, 0.2);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: badge-pulse 2s ease-in-out infinite;
}

.notification-badge.no-count {
    display: none;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notification Dropdown Panel */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light, #e5e7eb);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.notification-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Header */
.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light, #e5e7eb);
    background: var(--light-gray, #f9fafb);
}

.notification-dropdown-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark, #1f2937);
    margin: 0;
}

.mark-all-read-btn {
    font-size: 0.8rem;
    color: var(--brand-blue, #1aa7ff);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
}

.mark-all-read-btn:hover {
    color: #1495e6;
    text-decoration: underline;
}

/* Dropdown Body - Notification List */
.notification-dropdown-body {
    max-height: 360px;
    overflow-y: auto;
}

/* Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light, #e5e7eb);
    cursor: pointer;
    transition: background 0.2s ease;
}

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

.notification-item:hover {
    background: var(--light-gray, #f9fafb);
}

.notification-item.unread {
    background: rgba(26, 167, 255, 0.05);
}

.notification-item.unread:hover {
    background: rgba(26, 167, 255, 0.1);
}

/* Unread Indicator */
.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--brand-blue, #1aa7ff);
    border-radius: 50%;
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.notification-icon.type-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.notification-icon.type-info {
    background: rgba(26, 167, 255, 0.1);
    color: var(--brand-blue, #1aa7ff);
}

.notification-icon.type-welcome {
    background: rgba(255, 235, 56, 0.2);
    color: #e6a700;
}

.notification-icon.type-update {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.notification-icon.type-feature {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.notification-icon.type-general {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary, #6b7280);
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark, #1f2937);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
}

/* Empty State */
.notification-empty {
    padding: 40px 20px;
    text-align: center;
}

.notification-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-gray, #f9fafb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.notification-empty-icon i {
    font-size: 1.5rem;
    color: var(--text-secondary, #6b7280);
}

.notification-empty h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark, #1f2937);
    margin-bottom: 8px;
}

.notification-empty p {
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7280);
}

/* Notification Modal */
.notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.notification-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.notification-modal-overlay.open .notification-modal {
    transform: scale(1);
}

/* Modal Header */
.notification-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light, #e5e7eb);
}

.notification-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark, #1f2937);
    margin: 0;
}

.notification-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light-gray, #f9fafb);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary, #6b7280);
    transition: all 0.2s ease;
}

.notification-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Modal Body */
.notification-modal-body {
    padding: 24px;
}

/* Modal Icon */
.notification-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.notification-modal-icon.type-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.notification-modal-icon.type-info {
    background: rgba(26, 167, 255, 0.1);
    color: var(--brand-blue, #1aa7ff);
}

.notification-modal-icon.type-welcome {
    background: rgba(255, 235, 56, 0.2);
    color: #e6a700;
}

.notification-modal-icon.type-update {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.notification-modal-icon.type-feature {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.notification-modal-icon.type-general {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-secondary, #6b7280);
}

/* Modal Content */
.notification-modal-content {
    margin-bottom: 20px;
}

.notification-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark, #1f2937);
    margin-bottom: 12px;
}

.notification-modal-message {
    font-size: 1rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.7;
}

/* Modal Meta */
.notification-modal-meta {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light, #e5e7eb);
}

.notification-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
}

.notification-modal-meta-item i {
    color: var(--brand-blue, #1aa7ff);
}

/* Modal Footer */
.notification-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light, #e5e7eb);
    background: var(--light-gray, #f9fafb);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.notification-modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-modal-btn-secondary {
    background: #fff;
    border: 1px solid var(--border-light, #e5e7eb);
    color: var(--dark, #1f2937);
}

.notification-modal-btn-secondary:hover {
    background: var(--light-gray, #f9fafb);
}

.notification-modal-btn-primary {
    background: var(--brand-blue, #1aa7ff);
    border: none;
    color: #fff;
}

.notification-modal-btn-primary:hover {
    background: #1495e6;
}

/* Loading State */
.notification-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.notification-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light, #e5e7eb);
    border-top-color: var(--brand-blue, #1aa7ff);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 16px;
        right: 16px;
        width: auto;
        max-height: calc(100vh - 80px);
    }
    
    .notification-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .notification-modal-body {
        padding: 20px;
    }
    
    .notification-modal-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .notification-bell-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }
    
    .notification-item {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .notification-modal-header {
        padding: 16px 20px;
    }
    
    .notification-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .notification-modal-title {
        font-size: 1.1rem;
    }
    
    .notification-modal-message {
        font-size: 0.95rem;
    }
}