/* ============================================
   Security Section — Light Theme
   ============================================ */

/* ---- Keyframes ---- */
@keyframes sec-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes sec-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Section shell ---- */
.security-section {
  background: var(--bg-light, #fafbfd);
  padding: 5rem 0;
}

/* ---- Section header (centered standard) ---- */
.security-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.security-section .section-title em {
  font-style: normal;
  color: var(--primary, #ff7704);
}

/* ---- Status pill ---- */
.sec-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  width: fit-content;
}

.sec-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: sec-pulse 2s ease-in-out infinite;
}

.sec-status-label {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #22c55e;
}

/* Center the status pill in section header */
.security-section .section-header .sec-status {
  margin: 1.5rem auto 0;
}

/* ---- Divider ---- */
.sec-divider {
  width: 100%;
  height: 1px;
  background: var(--border, #e5e5e5);
  margin-bottom: 0;
}

/* ---- Protocol list ---- */
.sec-protocols {
  display: grid;
  gap: 0;
}

/* ---- Single protocol row ---- */
.sec-proto {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: start;
  gap: 0 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border, #e5e5e5);
  position: relative;
  cursor: default;
  transition: background 0.2s ease;

  /* Staggered reveal */
  opacity: 0;
  animation: sec-fade-up 0.5s ease forwards;
}

.sec-proto:first-child {
  border-top: 1px solid var(--border, #e5e5e5);
}

/* Animated left accent on hover */
.sec-proto::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--primary, #ff7704);
  transition: width 0.25s ease;
}

.sec-proto:hover {
  background: rgba(219, 103, 0, 0.06);
}

.sec-proto:hover::before {
  width: 2.5px;
}

/* Staggered delays */
.sec-proto:nth-child(1) {
  animation-delay: 0.05s;
}
.sec-proto:nth-child(2) {
  animation-delay: 0.12s;
}
.sec-proto:nth-child(3) {
  animation-delay: 0.19s;
}
.sec-proto:nth-child(4) {
  animation-delay: 0.26s;
}
.sec-proto:nth-child(5) {
  animation-delay: 0.33s;
}

/* ---- Number column ---- */
.sec-proto-num {
  font-family: var(--font-heading, "Fira Sans", sans-serif);
  font-size: var(--font-size-small, 0.875rem);
  font-weight: 600;
  color: var(--gray-muted, #6b7280);
  padding-top: 0.2rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.sec-proto:hover .sec-proto-num {
  color: var(--primary, #ff7704);
}

/* ---- Body ---- */
.sec-proto-title {
  font-family: var(--font-heading, "Fira Sans", sans-serif);
  font-size: var(--font-size-body, 1rem);
  font-weight: 700;
  color: var(--charcoal-black, #161616);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.sec-proto-desc {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: var(--font-size-body, 1rem);
  line-height: 1.75;
  color: var(--gray-muted, #6b7280);
  max-width: 520px;
}

/* ---- Status badge ---- */
.sec-proto-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  background: rgba(219, 103, 0, 0.1);
  color: var(--primary, #db6700);
  border: 1px solid rgba(219, 103, 0, 0.25);
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 0.1rem;
}

.sec-proto-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: sec-pulse 2s ease-in-out infinite;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .sec-proto {
    grid-template-columns: 36px 1fr;
  }

  .sec-proto-badge {
    display: none; /* hide badge on very small screens to avoid wrapping */
  }
}
