/**
 * Settings Notifications - Ultra Premium Design v2.0
 * Inspired by: Stripe Dashboard, Notion, Linear
 */

.settings-notif-ultra {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ========================================
   HERO SECTION
======================================== */
.notif-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 48px;
  margin-bottom: 40px;
  background: linear-gradient(135deg,
    rgba(var(--accent-rgb, 99, 102, 241), 0.05),
    rgba(var(--accent-rgb, 99, 102, 241), 0.02)
  );
  border-radius: 24px;
  border: 1px solid rgba(var(--accent-rgb, 99, 102, 241), 0.1);
  position: relative;
  overflow: hidden;
}

.notif-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(var(--accent-rgb, 99, 102, 241), 0.3),
    transparent
  );
}

.hero-visual {
  position: relative;
}

.bell-animation {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    rgba(var(--accent-rgb, 99, 102, 241), 0.15),
    rgba(var(--accent-rgb, 99, 102, 241), 0.05)
  );
  border-radius: 24px;
  position: relative;
  box-shadow: 0 8px 32px rgba(var(--accent-rgb, 99, 102, 241), 0.2);
  animation: bellFloat 4s ease-in-out infinite;
}

@keyframes bellFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(-5deg); }
  50% { transform: translateY(0px) rotate(0deg); }
  75% { transform: translateY(-8px) rotate(5deg); }
}

.bell-animation svg {
  color: var(--accent-color);
  filter: drop-shadow(0 2px 8px rgba(var(--accent-rgb, 99, 102, 241), 0.3));
}

.active-pulse {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.hero-content {
  flex: 1;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg,
    var(--text-primary),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0 0 16px;
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.inactive {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* ========================================
   CARDS GRID
======================================== */
.notif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.notif-card-premium {
  position: relative;
  background: rgba(var(--bg-card-rgb, 255, 255, 255), 0.03);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.notif-card-premium.main-card {
  grid-column: 1 / -1;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(circle,
    rgba(var(--accent-rgb, 99, 102, 241), 0.08) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.notif-card-premium:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb, 99, 102, 241), 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
              0 0 0 1px rgba(var(--accent-rgb, 99, 102, 241), 0.1);
}

.notif-card-premium:hover .card-glow {
  opacity: 1;
}

/* Card Headers */
.card-header-flex {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.card-header-simple {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.icon-bg {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.gradient-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.icon-bg svg {
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.card-content-flex {
  flex: 1;
}

.card-content-flex h3,
.card-header-simple h3 {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-content-flex p,
.card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Toggle Ultra Premium */
.toggle-ultra {
  width: 56px;
  height: 32px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-ultra input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #fff, #f0f0f0);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-ultra input:checked + .toggle-track {
  background: linear-gradient(135deg, var(--accent-color), rgba(var(--accent-rgb, 99, 102, 241), 0.8));
  border-color: transparent;
}

.toggle-ultra input:checked + .toggle-track .toggle-thumb {
  transform: translateX(24px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb, 99, 102, 241), 0.4);
}

/* CTA Button */
.card-cta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-activate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent-color), rgba(var(--accent-rgb, 99, 102, 241), 0.8));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb, 99, 102, 241), 0.3);
}

.btn-activate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb, 99, 102, 241), 0.4);
}

/* Reminder Chips */
.reminder-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.reminder-chip-ultra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg,
    rgba(var(--accent-rgb, 99, 102, 241), 0.12),
    rgba(var(--accent-rgb, 99, 102, 241), 0.06)
  );
  border: 1px solid rgba(var(--accent-rgb, 99, 102, 241), 0.25);
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: chipAppear 0.3s ease;
}

@keyframes chipAppear {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes chipRemove {
  to { opacity: 0; transform: scale(0.8); }
}

.reminder-chip-ultra:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb, 99, 102, 241), 0.25);
}

.chip-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-color);
}

.chip-close {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  padding: 2px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.btn-add-custom {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(var(--accent-rgb, 99, 102, 241), 0.3);
  border-radius: 12px;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-custom:hover {
  background: rgba(var(--accent-rgb, 99, 102, 241), 0.08);
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

/* Time Selector */
.time-selector {
  display: flex;
  align-items: center;
  gap: 16px;
}

.time-block {
  flex: 1;
}

.time-block label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.time-input-ultra {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
}

.time-input-ultra:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(var(--accent-rgb, 99, 102, 241), 0.08);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 99, 102, 241), 0.1);
}

.time-arrow {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-top: 28px;
}

/* Bottom Actions */
.notif-actions-ultra {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn-test,
.btn-save-ultra {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-test {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-test:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-save-ultra {
  background: linear-gradient(135deg, var(--accent-color), rgba(var(--accent-rgb, 99, 102, 241), 0.8));
  color: #fff;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb, 99, 102, 241), 0.3);
}

.btn-save-ultra:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--accent-rgb, 99, 102, 241), 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .settings-notif-ultra {
    padding: 24px 16px;
  }

  .notif-hero {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .notif-grid {
    grid-template-columns: 1fr;
  }

  .notif-actions-ultra {
    flex-direction: column;
  }

  .time-selector {
    flex-direction: column;
    gap: 16px;
  }

  .time-arrow {
    transform: rotate(90deg);
    margin: 0;
  }
}
