/* Alerts Feature Page - Premium Editorial Layout */

/* ========================================
   SECTIONS CONTAINER
   ======================================== */
.alerts_sectionsContainer__LqCl_ {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ========================================
   FEATURE SECTION - Full Width Alternating
   ======================================== */
.alerts_featureSection__FaXAg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.alerts_featureSectionVisible__NwhTK {
  opacity: 1;
  transform: translateY(0);
}

/* Alternating backgrounds */
.alerts_featureSection__FaXAg:nth-child(odd) {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.alerts_featureSection__FaXAg:nth-child(even) {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Reverse layout for odd-indexed sections (2nd, 4th) */
.alerts_featureSectionReversed__3YnTp .alerts_contentSide__UdKv0 {
  order: 2;
}

.alerts_featureSectionReversed__3YnTp .alerts_visualSide__5sHB9 {
  order: 1;
}

/* ========================================
   CONTENT SIDE (Text)
   ======================================== */
.alerts_contentSide__UdKv0 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.alerts_sectionLabel__P1CVQ {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent, #ea5050);
}

.alerts_sectionLabel__P1CVQ::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent, #ea5050);
  border-radius: 1px;
}

.alerts_sectionTitle__jntBO {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.alerts_sectionDescription__AB8rX {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #475569;
}

.alerts_benefitsList__Vm46p {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.alerts_benefitItem__YfUD9 {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.5;
}

.alerts_benefitIcon__jVydx {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: linear-gradient(135deg, var(--accent-light, #FECACA) 0%, var(--accent, #ea5050) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alerts_benefitIcon__jVydx svg {
  width: 11px;
  height: 11px;
  color: white;
}

/* ========================================
   VISUAL SIDE (Diagram)
   ======================================== */
.alerts_visualSide__5sHB9 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.alerts_visualWrapper__rLu0l {
  position: relative;
  width: 100%;
  max-width: 420px;
}

/* Subtle glow behind the visual */
.alerts_visualWrapper__rLu0l::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    ellipse at center,
    var(--accent-glow, rgba(234, 80, 80, 0.08)) 0%,
    transparent 70%
  );
  border-radius: 24px;
  z-index: 0;
}

.alerts_visualCard__D53B4 {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 1;
  transition: transform 400ms ease, box-shadow 400ms ease;
}

.alerts_featureSection__FaXAg:hover .alerts_visualCard__D53B4 {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.06),
    0 16px 32px rgba(0, 0, 0, 0.06);
}

.alerts_visualCardHeader__tF2FG {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(
    135deg,
    var(--accent, #ea5050) 0%,
    var(--accent-dark, #dc2626) 100%
  );
}

.alerts_headerIcon__ZMl2z {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alerts_headerIcon__ZMl2z svg {
  width: 16px;
  height: 16px;
  color: white;
}

.alerts_visualCardTitle__rf7xu {
  font-size: 13px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.02em;
}

.alerts_visualCardBody__RrfyR {
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

/* ========================================
   ALERT ROWS (Inside Visual Card)
   ======================================== */
.alerts_cardContent__IxyFW {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alerts_alertRow__ks7_J {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: background 200ms ease, border-color 200ms ease;
}

.alerts_alertRow__ks7_J:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.alerts_alertIcon__vGfuA {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alerts_alertSvg__bffqO {
  width: 20px;
  height: 20px;
}

.alerts_alertDetails__JZeZF {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.alerts_alertType__2kZ_N {
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
}

.alerts_alertValue__gax5C {
  font-size: 10px;
  color: #64748b;
}

.alerts_alertValue__gax5C strong {
  color: #334155;
  font-weight: 600;
}

.alerts_alertStatus__qhHuL {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

/* ========================================
   ALERT LOGS TABLE
   ======================================== */
.alerts_alertLogsTable__mFdqk {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.alerts_alertLogsHeader__cJnuK {
  display: grid;
  grid-template-columns: 60px 1fr 80px 80px;
  gap: 8px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 8px 8px 0 0;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alerts_alertLogsCol__Ifb_0 {
  white-space: nowrap;
}

.alerts_alertLogsRow__DKSHm {
  display: grid;
  grid-template-columns: 60px 1fr 80px 80px;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
}

.alerts_alertLogsRow__DKSHm:last-child {
  border-bottom: none;
}

.alerts_alertLogType__vHJID {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  text-align: center;
  white-space: nowrap;
}

.alerts_alertLogCell__wSuX9 {
  font-size: 11px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================
   SECTION DIVIDER
   ======================================== */
.alerts_sectionDivider__VZsq3 {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #e2e8f0 20%,
    #e2e8f0 80%,
    transparent 100%
  );
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1024px) {
  .alerts_featureSection__FaXAg {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 2rem;
    text-align: center;
  }

  .alerts_featureSectionReversed__3YnTp .alerts_contentSide__UdKv0,
  .alerts_featureSectionReversed__3YnTp .alerts_visualSide__5sHB9 {
    order: unset;
  }

  .alerts_contentSide__UdKv0 {
    align-items: center;
  }

  .alerts_sectionTitle__jntBO {
    font-size: 1.875rem;
  }

  .alerts_benefitsList__Vm46p {
    align-items: flex-start;
    text-align: left;
    max-width: 400px;
  }

  .alerts_visualWrapper__rLu0l {
    max-width: 380px;
  }
}

@media (max-width: 640px) {
  .alerts_featureSection__FaXAg {
    padding: 3rem 1.25rem;
    gap: 2rem;
  }

  .alerts_sectionTitle__jntBO {
    font-size: 1.5rem;
  }

  .alerts_sectionDescription__AB8rX {
    font-size: 0.9375rem;
  }

  .alerts_benefitItem__YfUD9 {
    font-size: 0.875rem;
  }

  .alerts_visualWrapper__rLu0l {
    max-width: 100%;
  }

  .alerts_alertRow__ks7_J {
    padding: 8px 10px;
    gap: 10px;
  }

  .alerts_alertIcon__vGfuA {
    width: 30px;
    height: 30px;
  }

  .alerts_alertSvg__bffqO {
    width: 18px;
    height: 18px;
  }

  .alerts_alertType__2kZ_N {
    font-size: 10px;
  }

  .alerts_alertValue__gax5C {
    font-size: 9px;
  }

  .alerts_alertStatus__qhHuL {
    font-size: 9px;
    padding: 3px 8px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .alerts_featureSection__FaXAg {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .alerts_visualCard__D53B4 {
    transition: none;
  }

  .alerts_featureSection__FaXAg:hover .alerts_visualCard__D53B4 {
    transform: none;
  }
}

