/* Mobile-Specific Notification Panel Improvements */

/* Mobile Responsive Notification Dropdown */
@media (max-width: 768px) {
  .notification-dropdown {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100vw;
    height: calc(100vh - 64px);
    max-height: none;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
  }
  
  .notification-dropdown.active {
    transform: translateX(0);
  }
  
  .notification-dropdown.closing {
    transform: translateX(100%);
  }
}

/* Smaller mobile screens */
@media (max-width: 480px) {
  .notification-dropdown {
    width: 100vw;
    left: 0;
    right: 0;
  }
}

/* Enhanced Mobile Notification Header */
@media (max-width: 768px) {
  .notification-header {
    border-bottom: 2px solid var(--border-light);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .notification-header h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
  }
  
  .mark-all-read {
    padding: var(--space-sm) var(--space-md);
    /* background: var(--primary);
    color: white; */
    border-radius: var(--radius-md);
    font-weight: 500;
    min-height: 44px; /* Touch target size */
  }
}

/* Mobile Notification List */
@media (max-width: 768px) {
  .notification-list {
    max-height: none;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .notification-item {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    min-height: 80px; /* Adequate touch target */
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  .notification-item:last-child {
    border-bottom: none;
  }
  
  .notification-item.navigable {
    cursor: pointer;
    position: relative;
  }
  
  .notification-item.navigable::after {
    content: '';
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-top: 2px solid var(--text-muted);
    transform: translateY(-50%) rotate(45deg);
  }
}

/* Mobile Notification Content */
@media (max-width: 768px) {
  .notification-content {
    flex: 1;
    line-height: 1.5;
  }
  
  .notification-content strong {
    font-size: var(--font-size-base);
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
  }
  
  .notification-content p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: var(--space-xs) 0;
    line-height: 1.4;
  }
  
  .notification-content small {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    display: block;
    margin-top: var(--space-sm);
  }
}

/* Mobile Notification Badge */
@media (max-width: 768px) {
  .notification-badge {
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    top: -4px;
    right: -4px;
  }
  
  /* .notification-bell > i {
    width: 44px;
    height: 44px;
    font-size: var(--font-size-lg);
  } */
}

/* Mobile Unread Notification Styling */
@media (max-width: 768px) {
  .notification-item.unread {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 4px, var(--bg-primary) 4px);
    border-left: none;
  }
  
  .notification-item.unread .notification-content strong {
    color: var(--primary);
  }
}

/* Mobile Empty State */
@media (max-width: 768px) {
  .notification-empty {
    padding: var(--space-2xl);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-base);
  }
  
  .notification-empty::before {
    content: '🔔';
    display: block;
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
  }
}

/* Mobile Dark Mode Adjustments */
@media (max-width: 768px) {
  [data-theme="dark"] .notification-dropdown {
    background: var(--bg-primary);
    border-color: var(--border-medium);
  }
  
  [data-theme="dark"] .notification-header {
    background: var(--bg-secondary);
    border-color: var(--border-medium);
  }
  
  [data-theme="dark"] .notification-item {
    border-color: var(--border-medium);
  }
  
  [data-theme="dark"] .notification-item.unread {
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-light) 4px, var(--bg-primary) 4px);
  }
}

/* Mobile Notification Bell Animation */
@media (max-width: 768px) {
  .notification-bell > i {
    transition: all 0.3s ease;
  }
  
  .notification-bell > i.fa-times {
    color: var(--danger);
    transform: rotate(180deg);
  }
  
  .notification-bell:active > i {
    transform: scale(0.95);
  }
}

/* Mobile Swipe Indicator */
@media (max-width: 768px) {
  .notification-dropdown::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 24px;
    width: 30px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 2px;
    opacity: 0.3;
  }
}

/* Improved Touch Feedback */
@media (max-width: 768px) {
  .notification-item:active {
    background-color: var(--bg-secondary);
    transform: scale(0.98);
    transition: all 0.1s ease;
  }
  
  .mark-all-read:active {
    transform: scale(0.95);
    background: var(--primary-dark);
  }
}