/* notification-modal.css - Styles for the Pundaze Notification Preferences Modal */

/* Modal Container */
.notification-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.notification-modal-container.hidden {
  display: none;
}

/* Modal Overlay */
.notification-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1001;
}

/* Modal Box */
.notification-modal {
  position: relative;
  background-color: var(--card-bg, #ffffff);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-lg, 0 4px 8px rgba(0, 0, 0, 0.1));
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xl, 24px);
  z-index: 1002;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid var(--border, #e0e0e0);
}

.notification-modal-container.visible .notification-modal {
  transform: translateY(0);
}

/* Close Button */
.notification-close-modal {
  position: absolute;
  top: var(--space-sm, 16px);
  right: var(--space-sm, 16px);
  font-size: 24px;
  color: var(--text-light, #787c7e);
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.notification-close-modal:hover {
  color: var(--error, #dc4c64);
  background-color: var(--divider, #eeeeee);
}

/* Typography */
.notification-modal h2 {
  font-size: var(--text-2xl, 24px);
  font-weight: 700;
  color: var(--primary, #000000);
  margin: 0 0 var(--space-sm, 8px) 0;
  text-align: center;
}

.notification-modal p {
  font-size: var(--text-base, 16px);
  color: var(--text-light, #787c7e);
  margin: 0 0 var(--space-lg, 24px) 0;
  text-align: center;
  line-height: 1.5;
}

/* Notification Options */
.notification-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 16px);
  margin-bottom: var(--space-lg, 24px);
}

/* Notification Card */
.notification-card {
  border: 2px solid var(--border, #e0e0e0);
  border-radius: var(--radius-md, 8px);
  padding: var(--space-md, 16px);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md, 12px);
  transition: all 0.2s ease;
  cursor: pointer;
  background-color: var(--card-bg, #ffffff);
  position: relative;
}

.notification-card:hover {
  border-color: var(--primary, #000000);
  background-color: var(--hover-bg, #f5f5f5);
}

.notification-card.selected {
  border-color: var(--success, #6aaa64);
  background-color: var(--success-light, #f0f8f0);
}

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

.notification-card.disabled:hover {
  border-color: var(--border, #e0e0e0);
  background-color: var(--card-bg, #ffffff);
}

/* Checkbox */
.notification-checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border, #e0e0e0);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.notification-card:hover .notification-checkbox {
  border-color: var(--primary, #000000);
}

.notification-card.selected .notification-checkbox {
  background-color: var(--success, #6aaa64);
  border-color: var(--success, #6aaa64);
}

.notification-checkbox svg {
  width: 14px;
  height: 14px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.notification-card.selected .notification-checkbox svg {
  opacity: 1;
}

/* Card Content */
.notification-card-content {
  flex: 1;
}

.notification-card-title {
  font-size: var(--text-lg, 18px);
  font-weight: 600;
  color: var(--primary, #000000);
  margin: 0 0 var(--space-xs, 4px) 0;
  display: flex;
  align-items: center;
  gap: var(--space-xs, 8px);
}

.notification-card-title svg {
  width: 20px;
  height: 20px;
}

.notification-card-description {
  font-size: var(--text-sm, 14px);
  color: var(--text-light, #787c7e);
  margin: 0;
  line-height: 1.4;
}

/* Status Badge */
.notification-status-badge {
  display: inline-block;
  font-size: var(--text-xs, 12px);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: var(--warning-light, #fff3cd);
  color: var(--warning-dark, #856404);
}

/* Footer */
.notification-footer {
  text-align: center;
  padding-top: var(--space-md, 16px);
  border-top: 1px solid var(--divider, #eeeeee);
}

.notification-footer-text {
  font-size: var(--text-sm, 14px);
  color: var(--text-light, #787c7e);
  margin: 0;
}

/* Loading state */
.notification-card.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Error message */
.notification-error {
  background-color: var(--error-light, #fee);
  border: 1px solid var(--error, #dc4c64);
  border-radius: var(--radius-sm, 6px);
  padding: var(--space-sm, 12px);
  margin-bottom: var(--space-md, 16px);
  font-size: var(--text-sm, 14px);
  color: var(--error-dark, #a00);
  display: none;
}

.notification-error.visible {
  display: block;
}

/* Success message */
.notification-success {
  background-color: var(--success-light, #f0f8f0);
  border: 1px solid var(--success, #6aaa64);
  border-radius: var(--radius-sm, 6px);
  padding: var(--space-sm, 12px);
  margin-bottom: var(--space-md, 16px);
  font-size: var(--text-sm, 14px);
  color: var(--success-dark, #2d5a2d);
  display: none;
}

.notification-success.visible {
  display: block;
}
