/* ==========================================================================
   Tora22 News Notifier Pro - Styles
   ========================================================================== */

/* Header Bell Notification Badge - Suppressed per user request */
.tora-header-bell-btn {
  position: relative;
}

.tora-bell-badge {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

/* Modal Overlay & Container */
.tora-notify-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.tora-notify-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.tora-notify-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tora-notify-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tora-notify-modal.is-open .tora-notify-dialog {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.tora-notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.tora-notify-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tora-notify-head-title h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.tora-notify-close {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s;
}

.tora-notify-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Modal Body */
.tora-notify-body {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tora-notify-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.tora-notify-sec-head strong {
  font-size: 0.95rem;
  color: #1e293b;
}

.tora-notify-badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 4px;
}

.tora-notify-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 14px;
}

/* Category Checkboxes Grid */
.tora-notify-cats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.tora-cat-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.tora-cat-check-item.is-all {
  grid-column: 1 / -1;
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.tora-cat-check-item:hover {
  border-color: #93c5fd;
  background: #f1f5f9;
}

.tora-cat-check-item input[type="checkbox"] {
  cursor: pointer;
  accent-color: #2563eb;
  width: 16px;
  height: 16px;
  margin: 0;
}

/* Push Action Button */
.tora-notify-btn.primary {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tora-notify-btn.primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32);
}

.tora-notify-btn.is-active {
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.tora-push-status-msg {
  font-size: 0.82rem;
  margin-top: 8px;
  text-align: center;
  min-height: 18px;
}

.tora-push-status-msg.success { color: #16a34a; font-weight: 600; }
.tora-push-status-msg.error { color: #dc2626; }

/* News Feed List */
.tora-notify-more-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.tora-notify-more-link:hover {
  text-decoration: underline;
}

.tora-notify-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.tora-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  color: #1e293b;
  border: 1px solid #f1f5f9;
  transition: all 0.15s;
}

.tora-feed-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateX(2px);
}

.tora-feed-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  flex-shrink: 0;
  margin-top: 2px;
}

.tora-feed-badge.cat-info        { background: #fee2e2; color: #dc2626; }
.tora-feed-badge.cat-update      { background: #e0f2fe; color: #0284c7; }
.tora-feed-badge.cat-maintenance { background: #fef3c7; color: #d97706; }
.tora-feed-badge.cat-event       { background: #dcfce7; color: #16a34a; }

.tora-feed-info {
  flex: 1;
}

.tora-feed-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 2px;
}

.tora-feed-date {
  font-size: 0.75rem;
  color: #94a3b8;
}
