/* ==========================================================
   NSHTGHL - KANBAN CALENDAR SYNC & JOB ALERTS STYLES
   - Interview Scheduler Modal & Calendar Export (Google & Outlook .ics)
   - WhatsApp & Telegram Job Alert Subscription Banner & Modal
   ========================================================== */

/* --- Kanban Card Interview Badge & Action --- */
.kanban-interview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--tx-purple);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.kanban-interview-badge i {
  color: var(--tx-purple);
}

.kanban-card-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-schedule-interview {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--tx-purple);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-schedule-interview:hover {
  background: #7c3aed;
  color: #fff;
  border-color: #8b5cf6;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

/* --- Interview Scheduler Modal Dialog --- */
.calendar-export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.btn-calendar-sync {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-google-calendar {
  background: rgba(66, 133, 244, 0.15);
  color: var(--tx-primary);
  border-color: rgba(66, 133, 244, 0.35);
}

.btn-google-calendar:hover {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-outlook-calendar {
  background: rgba(0, 120, 212, 0.15);
  color: var(--tx-cyan);
  border-color: rgba(0, 120, 212, 0.35);
}

.btn-outlook-calendar:hover {
  background: #0284c7;
  color: #fff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

/* --- Job Alerts Banner in Jobs Market --- */
.job-alerts-banner {
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.9) 75%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.job-alerts-banner-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: min(280px, 100%);
}

.job-alerts-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-emerald);
  font-size: 1.5rem;
  flex-shrink: 0;
  animation: bellPulse 2.5s infinite;
}

@keyframes bellPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  10%, 30% { transform: scale(1.08) rotate(-6deg); }
  20%, 40% { transform: scale(1.08) rotate(6deg); }
}

.job-alerts-title {
  margin: 0 0 0.35rem 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.job-alerts-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-activate-alerts {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.8rem 1.4rem;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  flex-shrink: 0;
}

.btn-activate-alerts:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

/* --- Job Alerts Modal Channel Selectors --- */
.channel-switcher-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.channel-card-btn {
  background: var(--bg-input);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.channel-card-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.channel-card-btn.active.channel-whatsapp {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.08);
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25);
}

.channel-card-btn.active.channel-telegram {
  border-color: #0088cc;
  background: rgba(0, 136, 204, 0.08);
  box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.25);
}

.channel-card-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
  display: block;
}

.channel-card-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  display: block;
}

.channel-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Frequency Radio Pills */
.freq-pills-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.freq-pill-lbl {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.freq-pill-lbl.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.phone-input-wrap {
  display: flex;
  gap: 0.5rem;
  direction: ltr;
}

.country-select-prefix {
  width: 120px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.5rem;
  font-weight: 700;
}

/* Mobile (<=640px) */
@media (max-width: 640px) {
  .calendar-export-grid,
  .channel-switcher-grid { grid-template-columns: 1fr; }
  .job-alerts-banner,
  .job-alerts-banner-content { flex-direction: column; align-items: stretch; text-align: center; max-width: 100%; }
  .job-alerts-banner-content { min-width: 0; }
  .btn-activate-alerts,
  .btn-calendar-sync,
  .btn-schedule-interview { width: 100%; justify-content: center; min-height: 44px; }
  .freq-pills-row { flex-wrap: wrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .kanban-card-tools { flex-wrap: wrap; }
  .phone-input-wrap { max-width: 100%; }
  .country-select-prefix { width: auto; min-width: 96px; max-width: 40%; }
}
