/* =========================
   Section Details
========================= */
.section-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 800px;
  min-height: 100vh;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--neon-blue, #2bd2ff);
  font-size: 20px;
  font-weight: bold;
}

/* =========================
   PID Card (Accordion)
========================= */
.pid-card {
  background: linear-gradient(
    180deg,
    rgba(30, 41, 59, 0.6),
    rgba(15, 22, 37, 0.8)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.pid-card:hover {
  border-color: rgba(43, 210, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.pid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.3s ease;
}

.pid-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pid-header-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pid-code {
  display: inline-block;
  background: rgba(43, 210, 255, 0.1);
  color: var(--neon-blue, #2bd2ff);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  width: fit-content;
  border-radius: 30px;
}

.persian-name {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

.english-name {
  font-size: 13px;
  color: #94a3b8;
}

.toggle-icon {
  color: var(--neon-blue, #2bd2ff);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pid-card.active .toggle-icon {
  transform: rotate(180deg);
}

.pid-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.15);
}

.pid-content-inner {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.description-title,
.critical-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  margin-bottom: 8px;
}

.description-title {
  color: #fff;
}
.critical-title {
  color: #ff5252;
  margin-top: 16px;
}

.pid-content p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.critical {
  background: rgba(255, 77, 109, 0.08);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border-right: 3px solid var(--neon-danger);
}

.critical ul {
  margin: 0;
  padding-right: 20px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.critical li {
  margin-bottom: 6px;
}

.description {
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  border-right: 3px solid var(--neon-green);
}

/* =========================
   Section Group
========================= */
.section-group {
  background: rgba(26, 32, 44, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
  cursor: pointer;
}

.section-group:hover {
  border-color: rgba(43, 210, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.section-description {
  padding: 0px 32px 16px;
  color: var(--muted);
}

/* =========================
   Responsive
========================= */
@media (max-width: 600px) {
  .pid-header {
    flex-direction: row;
    align-items: flex-start;
  }
  .toggle-icon {
    margin-top: 8px;
  }
  .persian-name {
    font-size: 15px;
  }
  .pid-content-inner {
    padding: 16px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .section-group {
    border-radius: 12px;
    padding: 0 16px;
    margin-bottom: 20px !important;
    top: 16px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .section-group {
    border-radius: 10px;
    padding: 0 12px;
    margin-bottom: 16px !important;
    top: 12px;
  }
}
