/* Notification Bell Styles */
.notifBellContainer {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.notifBellIcon {
  width: 56px;
  height: 56px;
  background-color: #4a6bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(74, 107, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  border: none;
  outline: none;
}

.notifBellIcon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(74, 107, 255, 0.4);
  background-color: #3a5bef;
}

.notifBellIcon:active {
  transform: scale(0.95);
}

.notifBellIcon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.notifBellBadge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4757;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.notifBellIcon:hover .notifBellBadge {
  transform: scale(1.1);
}

.notifBellPopup {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 350px;
  max-height: 70vh;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: scale(0);
  transform-origin: bottom right;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.notifBellPopup.active {
  transform: scale(1);
  opacity: 1;
}

.notifBellHeader {
  padding: 16px 20px;
  background-color: #4a6bff;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.notifBellHeaderActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notifBellNewsletter {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.notifBellNewsletter:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.notifBellNewsletter svg {
  width: 20px;
  height: 20px;
}

.newsletterPulse {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: #ff4757;
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hasNewNewsletter .newsletterPulse {
  opacity: 1;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(255, 71, 87, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
  }
}

.notifBellClose {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notifBellClose:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.notifBellClose svg {
  width: 20px;
  height: 20px;
}

.notifBellContent {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 10px;
}

/* Better scrollbar styling */
.notifBellContent::-webkit-scrollbar {
  width: 6px;
}

.notifBellContent::-webkit-scrollbar-track {
  background: transparent;
}

.notifBellContent::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.notifBellContent:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
}

.notifBellItem {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.notifBellItem:hover {
  background-color: #f8faff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.notifBellItem:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.notifBellItemTitle {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 15px;
}

.notifBellItemDesc {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.4;
}

.notifBellItemTime {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
}

.notifBellItemTime::before {
  content: "🕒";
  font-size: 11px;
}

.notifBellEmpty {
  padding: 30px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* Pulse animation for new notifications */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(74, 107, 255, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(74, 107, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 107, 255, 0); }
}

.hasNewNotifications {
  animation: pulseGlow 1.5s infinite;
}

/* Newsletter Form Styles */
.notifBellNewsletterForm,
.notifBellMessageForm {
  display: none;
  padding: 20px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.notifBellNewsletterForm.active,
.notifBellMessageForm.active {
  display: block;
}

.notifBellNewsletterForm h4,
.notifBellMessageForm h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
}

.notifBellNewsletterForm p,
.notifBellMessageForm p {
  margin-top: 0;
  margin-bottom: 15px;
  color: #666;
  font-size: 14px;
}

.formGroup {
  margin-bottom: 15px;
}

.formGroup input,
.formGroup textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.formGroup input:focus,
.formGroup textarea:focus {
  outline: none;
  border-color: #4a6bff;
}

.formGroup textarea {
  resize: vertical;
  min-height: 80px;
}

.formGroup label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.formGroup label input {
  width: auto;
}

.notifBellSubmitBtn {
  width: 100%;
  padding: 10px;
  background-color: #4a6bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notifBellSubmitBtn:hover {
  background-color: #3a5bef;
}

.notifBellSubmitBtn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.notifBellNewsletterResponse,
.notifBellMessageResponse {
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  display: none;
}

.notifBellNewsletterResponse.success,
.notifBellMessageResponse.success {
  display: block;
  background-color: #d4edda;
  color: #155724;
}

.notifBellNewsletterResponse.error,
.notifBellMessageResponse.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
}

.notifBellNewsletterLinks {
  margin-top: 15px;
  text-align: center;
}

.notifBellNewsletterSwitch {
  color: #4a6bff;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.notifBellNewsletterSwitch:hover {
  color: #3a5bef;
  text-decoration: underline;
}

/* Mobile Menu Styles */
.notifBellMobileMenu {
  display: flex;
  border-top: 1px solid #f0f0f0;
  background-color: #fff;
  padding: 8px 0;
  z-index: 1;
}

.notifBellMenuItem {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  text-decoration: none;
  color: #555;
  font-size: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.notifBellMenuItem:hover {
  color: #4a6bff;
  background-color: #f8faff;
}

.notifBellMenuItem svg {
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.notifBellMenuItem:hover svg {
  stroke: #4a6bff;
}

.notifBellMenuItem span {
  font-size: 11px;
}

/* Active menu item indicator */
.notifBellMenuItem.active {
  color: #4a6bff;
}

.notifBellMenuItem.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background-color: #4a6bff;
  border-radius: 2px;
}

/* Home Menu Styles - 3 items per row on all screens */
.notifBellHomeMenu {
  display: none;
  background-color: #f8f8f8;
  padding: 15px;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #eee;
}

.notifBellHomeMenu.active {
  display: flex;
}

.notifBellHomeItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(33.333% - 7px);
  padding: 12px 8px;
  background-color: white;
  border-radius: 8px;
  text-decoration: none;
  color: #555;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.notifBellHomeItem:hover {
  background-color: #f0f5ff;
  color: #4a6bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.notifBellHomeItem svg {
  margin-bottom: 8px;
  width: 24px;
  height: 24px;
}

.notifBellHomeItem span {
  font-size: 12px;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
  padding: 0 4px;
}

/* Jobs Menu Styles */
.notifBellJobsMenu {
  display: none;
  background-color: #f8f8f8;
  padding: 15px;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #eee;
}

.notifBellJobsMenu.active {
  display: flex;
}

.notifBellJobsItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(50% - 5px);
  padding: 12px 8px;
  background-color: white;
  border-radius: 8px;
  text-decoration: none;
  color: #555;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.notifBellJobsItem:hover {
  background-color: #f0f5ff;
  color: #4a6bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.notifBellJobsItem svg {
  margin-bottom: 8px;
  width: 24px;
  height: 24px;
}

.notifBellJobsItem span {
  font-size: 12px;
  text-align: center;
}

/* Books Menu Styles */
.notifBellBooksMenu {
  display: none;
  background-color: #f8f8f8;
  padding: 15px;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #eee;
}

.notifBellBooksMenu.active {
  display: flex;
}

.notifBellBooksItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(50% - 5px);
  padding: 12px 8px;
  background-color: white;
  border-radius: 8px;
  text-decoration: none;
  color: #555;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.notifBellBooksItem:hover {
  background-color: #f0f5ff;
  color: #4a6bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.notifBellBooksItem svg {
  margin-bottom: 8px;
  width: 24px;
  height: 24px;
}

.notifBellBooksItem span {
  font-size: 12px;
  text-align: center;
}

/* Tools Menu Styles */
.notifBellToolsMenu {
  display: none;
  background-color: #f8f8f8;
  padding: 15px;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #eee;
}

.notifBellToolsMenu.active {
  display: flex;
}

.notifBellToolItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(50% - 5px);
  padding: 12px 8px;
  background-color: white;
  border-radius: 8px;
  text-decoration: none;
  color: #555;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.notifBellToolItem:hover {
  background-color: #f0f5ff;
  color: #4a6bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.notifBellToolItem svg {
  margin-bottom: 8px;
  width: 24px;
  height: 24px;
}

.notifBellToolItem span {
  font-size: 12px;
  text-align: center;
}

/* Social Menu Styles */
.notifBellSocialMenu {
  display: none;
  background-color: #f8f8f8;
  padding: 10px 0;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid #eee;
}

.notifBellSocialMenu.active {
  display: flex;
}

.notifBellSocialItem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  transition: all 0.2s ease;
}

.notifBellSocialItem:hover {
  transform: translateY(-2px);
}

.notifBellSocialItem:nth-child(1) {
  background-color: #3b5998; /* Facebook */
}

.notifBellSocialItem:nth-child(2) {
  background-color: #1da1f2; /* Twitter */
}

.notifBellSocialItem:nth-child(3) {
  background-color: #0077b5; /* LinkedIn */
}

.notifBellSocialItem:nth-child(4) {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

/* Notification Link Styles */
.notifBellLink {
  display: block;
  text-decoration: none;
  color: inherit;
}

.notifBellItem:hover .notifBellLink {
  background-color: transparent;
}

.notifBellLink:focus {
  outline: 2px solid #4a6bff;
  outline-offset: -2px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .notifBellPopup {
    width: calc(100vw - 40px);
    max-height: 60vh;
    bottom: 66px;
    right: 8px;
  }
  
  .notifBellContainer {
    right: 12px;
    bottom: 12px;
  }
  
  .notifBellIcon {
    width: 52px;
    height: 52px;
  }
  
  .notifBellHeaderActions {
    gap: 6px;
  }
  
  .notifBellNewsletterForm,
  .notifBellMessageForm {
    padding: 15px;
  }
  
  .notifBellMobileMenu {
    padding: 6px 0;
  }
  
  .notifBellMenuItem {
    padding: 6px 2px;
    font-size: 11px;
  }
  
  /* Home menu items - 3 per row on mobile */
  .notifBellHomeMenu {
    padding: 10px;
    gap: 8px;
  }
  
  .notifBellHomeItem {
    width: calc(33.333% - 5.34px); /* Adjusted for 3 items per row */
    padding: 10px 6px;
  }
  
  /* Other menus keep their original layout */
  .notifBellJobsMenu,
  .notifBellBooksMenu,
  .notifBellToolsMenu {
    padding: 10px;
    gap: 8px;
  }
  
  .notifBellJobsItem,
  .notifBellBooksItem,
  .notifBellToolItem {
    width: calc(50% - 4px);
    padding: 10px 6px;
  }
  
  .formGroup input,
  .formGroup textarea {
    padding: 8px;
  }
  
  .notifBellSubmitBtn {
    padding: 8px;
  }
}
