/**
 * Push Notification Styles
 * Disrupt Radio Platform
 */

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

.notification-bell-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.notification-bell-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.notification-bell-btn:active {
  transform: translateY(0);
}

.notification-bell-btn.active {
  background: linear-gradient(140deg, #7f051d 0%, #da0238 100%);
  border-color: #da0238;
}

.notification-bell-btn.active:hover {
  background: linear-gradient(140deg, #9a0624 0%, #ff0342 100%);
}

.notification-bell-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.notification-bell-btn .bell-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.notification-bell-btn.active .bell-icon {
  animation: bellRing 0.5s ease;
}

@keyframes bellRing {
  0%,
  100% {
    transform: rotate(0deg);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: rotate(-10deg);
  }
  20%,
  40%,
  60%,
  80% {
    transform: rotate(10deg);
  }
}

.bell-text {
  white-space: nowrap;
}

.bell-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
   PERMISSION MODAL
   =================================== */

.notification-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.notification-modal.show {
  opacity: 1;
}

.notification-modal-content {
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
  padding: 40px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-modal.show .notification-modal-content {
  transform: scale(1);
}

.notification-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s ease;
}

.notification-modal-close:hover {
  color: #fff;
}

.notification-modal-icon {
  text-align: center;
  margin-bottom: 20px;
  color: #da0238;
}

.notification-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 15px;
}

.notification-modal-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 30px;
}

.notification-modal-text strong {
  color: #fff;
  font-weight: 600;
}

.notification-modal-actions {
  display: flex;
  gap: 12px;
}

.notification-btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-btn-primary {
  background: linear-gradient(140deg, #7f051d 0%, #da0238 100%);
  color: #fff;
}

.notification-btn-primary:hover {
  background: linear-gradient(140deg, #9a0624 0%, #ff0342 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(218, 2, 56, 0.4);
}

.notification-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===================================
   TOAST NOTIFICATIONS
   =================================== */

.notification-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  pointer-events: all;
  max-width: 350px;
}

.notification-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-toast svg {
  flex-shrink: 0;
  color: #4ade80;
}

.notification-toast.error svg {
  color: #ef4444;
}

/* ===================================
   BLOCKED BANNER
   =================================== */

.notification-blocked-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  padding: 15px 20px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.notification-banner-content {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.notification-banner-content svg {
  flex-shrink: 0;
}

.notification-banner-content p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.notification-banner-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 5px;
  padding: 5px;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s ease;
}

.notification-banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===================================
   NOTIFICATION SETTINGS PAGE
   =================================== */

.notification-settings-section {
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-settings-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.notification-settings-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}

.notification-master-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 25px;
}

.notification-master-toggle-label {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.notification-toggle-switch {
  position: relative;
  width: 60px;
  height: 32px;
}

.notification-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.notification-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 34px;
}

.notification-toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.notification-toggle-switch input:checked + .notification-toggle-slider {
  background: linear-gradient(140deg, #7f051d 0%, #da0238 100%);
}

.notification-toggle-switch input:checked + .notification-toggle-slider:before {
  transform: translateX(28px);
}

.notification-preferences-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notification-preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.notification-preference-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.notification-preference-info {
  flex: 1;
}

.notification-preference-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.notification-preference-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  .notification-modal-content {
    padding: 30px 20px;
  }

  .notification-modal-title {
    font-size: 20px;
  }

  .notification-modal-text {
    font-size: 14px;
  }

  .notification-modal-actions {
    flex-direction: column;
  }

  .notification-btn {
    padding: 12px 20px;
  }

  .notification-toast-container {
    left: 20px;
    right: 20px;
  }

  .notification-toast {
    max-width: 100%;
  }

  .notification-bell-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .notification-settings-section {
    padding: 20px;
  }
}

/* ===================================
   COMPACT BELL (for cards)
   =================================== */

.notification-bell-compact .notification-bell-btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 15px;
}

.notification-bell-compact .bell-icon {
  width: 16px;
  height: 16px;
}

.notification-bell-compact .bell-text {
  display: none;
}

.notification-bell-compact .notification-bell-btn:hover .bell-text {
  display: inline;
}

/* ===================================
   INTEGRATION WITH EXISTING STYLES
   =================================== */

.program-card-modern .notification-bell-container,
.show-card-modern .notification-bell-container {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}

/* Ensure bell doesn't interfere with other overlay elements */
.program-card-modern .ms_main_overlay {
  z-index: 8;
}

.program-card-modern .ms_more_icon {
  z-index: 9;
}

/* Make compact bell more subtle */
.notification-bell-compact .notification-bell-btn {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-bell-compact .notification-bell-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.notification-bell-compact .notification-bell-btn.active {
  background: linear-gradient(
    140deg,
    rgba(127, 5, 29, 0.9) 0%,
    rgba(218, 2, 56, 0.9) 100%
  );
}
