/*
 * DUI Checkpoint Alerts section.
 * Reuses the Lawtheme lavender / gold palette and card shadows.
 */

.lawtheme-checkpoints-head {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.lawtheme-checkpoints-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.35em 0.9em;
  margin-bottom: 0.9em;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a5f45;
  background: var(--lawyer-gold-tint);
  border: 1px solid var(--lawyer-gold-border);
  border-radius: 999px;
}

.lawtheme-checkpoints-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0392b;
  box-shadow: 0 0 0 rgba(192, 57, 43, 0.5);
  animation: lawthemeCheckpointPulse 2s ease-out infinite;
}

@keyframes lawthemeCheckpointPulse {
  0%   { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(192, 57, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); }
}

.lawtheme-checkpoints-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.lawtheme-checkpoint-item {
  margin: 0;
}

.lawtheme-checkpoint-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(0.9rem, 1.6vw, 1.15rem) clamp(1rem, 1.8vw, 1.35rem);
  background: #fffdfa;
  border: 1px solid rgba(160, 140, 100, 0.22);
  border-radius: 14px;
  box-shadow: var(--lawyer-lux-shadow);
  text-decoration: none;
  color: var(--lawyer-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lawtheme-checkpoint-link:hover,
.lawtheme-checkpoint-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--lawyer-lux-shadow-hover);
  border-color: var(--lawyer-primary);
  outline: none;
}

.lawtheme-checkpoint-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--lawyer-primary-dark), var(--lawyer-btn-bg));
}

.lawtheme-checkpoint-icon svg {
  width: 22px;
  height: 22px;
}

.lawtheme-checkpoint-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.lawtheme-checkpoint-title {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.35;
  color: var(--lawyer-text);
}

.lawtheme-checkpoint-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  font-size: var(--text-small);
  color: var(--lawyer-text-muted);
}

.lawtheme-checkpoint-source {
  font-weight: 600;
  color: var(--lawyer-secondary-dark);
}

.lawtheme-checkpoint-time::before {
  content: "\00b7";
  margin-right: 0.6rem;
  color: var(--lawyer-text-muted);
}

.lawtheme-checkpoint-arrow {
  flex: 0 0 auto;
  color: var(--lawyer-primary-dark);
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lawtheme-checkpoint-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

.lawtheme-checkpoint-link:hover .lawtheme-checkpoint-arrow,
.lawtheme-checkpoint-link:focus-visible .lawtheme-checkpoint-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

.lawtheme-checkpoints-empty {
  text-align: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fffdfa;
  border: 1px dashed rgba(160, 140, 100, 0.4);
  border-radius: 14px;
  color: var(--lawyer-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

.lawtheme-checkpoints-foot {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(1rem, 2vw, 1.35rem);
  margin-left: auto;
  margin-right: auto;
  max-width: 34rem;
  padding: clamp(1.15rem, 2.2vw, 1.5rem) clamp(1.1rem, 2vw, 1.35rem);
  text-align: center;
  background: rgba(255, 253, 250, 0.72);
  border: 1px solid rgba(160, 140, 100, 0.2);
  border-radius: 14px;
  box-shadow: var(--lawyer-lux-shadow);
}

.lawtheme-checkpoints-foot-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.lawtheme-checkpoints-foot .lawtheme-checkpoints-note {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto clamp(0.85rem, 1.5vw, 1rem);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  color: var(--lawyer-text);
}

.lawtheme-checkpoints-foot .lawtheme-btn {
  margin: 0;
}

.lawtheme-checkpoints .lawtheme-checkpoints-foot .lawtheme-btn,
.lawtheme-checkpoints--archive .lawtheme-checkpoints-foot .lawtheme-btn {
  margin: 0;
  margin-top: 0;
}

.lawtheme-checkpoints-more {
  margin: clamp(0.85rem, 1.8vw, 1.15rem) 0 0;
  text-align: center;
}

.lawtheme-checkpoints-disclaimer {
  margin: 0 auto;
  padding-top: clamp(0.15rem, 0.5vw, 0.35rem);
  max-width: 58ch;
  text-align: center;
  font-size: var(--text-small);
  line-height: 1.65;
  color: var(--lawyer-text-muted);
}

.lawtheme-checkpoints-disclaimer-line {
  display: block;
  margin-top: 0.35em;
}

.lawtheme-checkpoints-updated {
  display: block;
  margin-top: 0.65em;
  font-style: italic;
  opacity: 0.85;
}

/* Archive page */
.lawtheme-checkpoints-archive-wrap .lawtheme-checkpoints-archive-hero {
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.lawtheme-checkpoints-archive-count {
  margin: 0.75em 0 0;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lawyer-secondary-dark);
}

.lawtheme-checkpoints--archive {
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

.lawtheme-checkpoints-list--archive {
  gap: 0.65rem;
}

@media (max-width: 600px) {
  .lawtheme-checkpoint-arrow {
    display: none;
  }
  .lawtheme-checkpoint-link {
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lawtheme-checkpoints-badge-dot {
    animation: none;
  }
  .lawtheme-checkpoint-link {
    transition: none;
  }
}

/* ============================================================
 * Header notification bell (DUI checkpoint alerts)
 * ============================================================ */

.partners-notif {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.partners-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.partners-notif-btn:hover,
.partners-notif-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.partners-notif-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.partners-notif.has-unseen .partners-notif-icon {
  transform-origin: 50% 4px;
  animation: partnersBellSwing 2.4s ease-in-out infinite;
}

@keyframes partnersBellSwing {
  0%, 60%, 100% { transform: rotate(0deg); }
  70% { transform: rotate(12deg); }
  80% { transform: rotate(-10deg); }
  90% { transform: rotate(6deg); }
}

.partners-notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #d64541;
  border: 2px solid #2a282e;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(214, 69, 65, 0.6);
  animation: partnersBadgePulse 2s ease-out infinite;
}

@keyframes partnersBadgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(214, 69, 65, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(214, 69, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 69, 65, 0); }
}

.partners-notif-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(360px, 92vw);
  background: #fffdfa;
  color: var(--lawyer-text, #333);
  border: 1px solid rgba(160, 140, 100, 0.25);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(30, 25, 40, 0.28);
  z-index: 100000;
  overflow: hidden;
  animation: partnersNotifIn 0.18s ease-out;
}

.partners-notif-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 12px;
  width: 14px;
  height: 14px;
  background: #fffdfa;
  border-left: 1px solid rgba(160, 140, 100, 0.25);
  border-top: 1px solid rgba(160, 140, 100, 0.25);
  transform: rotate(45deg);
}

@keyframes partnersNotifIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.partners-notif-head {
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--lawyer-primary, #c5adc5), var(--lawyer-secondary, #b2b5e0));
  color: #fff;
}

.partners-notif-head-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.partners-notif-head-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.9;
}

.partners-notif-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 340px;
  overflow-y: auto;
}

.partners-notif-item {
  margin: 0;
}

.partners-notif-item-link {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--lawyer-text, #333);
  transition: background 0.15s ease;
}

.partners-notif-item-link:hover,
.partners-notif-item-link:focus-visible {
  background: rgba(178, 181, 224, 0.14);
  outline: none;
}

.partners-notif-item-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: transparent;
}

.partners-notif-item.is-new .partners-notif-item-dot {
  background: #d64541;
  box-shadow: 0 0 0 3px rgba(214, 69, 65, 0.15);
}

.partners-notif-item-body {
  min-width: 0;
}

.partners-notif-item-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--lawyer-text, #333);
}

.partners-notif-item.is-new .partners-notif-item-title {
  font-weight: 700;
}

.partners-notif-item-meta {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--lawyer-text-muted, #666);
}

.partners-notif-all {
  display: block;
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--lawyer-secondary-dark, #7a7fb5);
  border-top: 1px solid rgba(160, 140, 100, 0.2);
  transition: background 0.15s ease;
}

.partners-notif-all:hover,
.partners-notif-all:focus-visible {
  background: rgba(178, 181, 224, 0.12);
  outline: none;
}

.partners-notif-empty {
  margin: 0;
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--lawyer-text-muted, #666);
}

@media (max-width: 782px) {
  .partners-notif-panel {
    position: fixed;
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(360px, 92vw);
    animation: none;
  }
  .partners-notif-panel::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-notif.has-unseen .partners-notif-icon,
  .partners-notif-badge {
    animation: none;
  }
  .partners-notif-panel {
    animation: none;
  }
}

