/* ===== DROPDOWN/ACCORDION ===== */
.dropdown {
  background: #2a1a4a;
  border: 2px solid #b19cd9;
  margin-bottom: 1rem;
  overflow: hidden;
}

.dropdown-header {
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  user-select: none;
}

.dropdown-header:hover {
  background: rgba(177, 156, 217, 0.1);
}

.dropdown-title {
  color: #a8c0ff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-title::before {
  content: '▶';
  color: #ff94d6;
  font-size: 1.2rem;
  transition: transform 0.3s;
  display: inline-block;
}

.dropdown.open .dropdown-title::before {
  transform: rotate(90deg);
}

.dropdown-cursor {
  color: #d97cff;
  font-size: 1.5rem;
  animation: blink 1s infinite;
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 1.5rem;
}

.dropdown.open .dropdown-content {
  max-height: 2000px;
  padding: 0 1.5rem 1.5rem 1.5rem;
  transition: max-height 0.6s ease-in, padding 0.4s ease-in;
}

.dropdown-content .blog-subtitle {
  margin-top: 1rem;
}

.dropdown-content .blog-subtitle:first-child {
  margin-top: 0;
}

/* ===== INFO GRID ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.info-item {
  background: #2a1a4a;
  padding: 0.75rem;
  border: 1px solid #b19cd9;
}

.info-label {
  color: #a8c0ff;
  font-size: 1.1rem;
}

.info-value {
  color: #e0b0ff;
  font-size: 1.1rem;
}

/* Image Container Base */
.sys-img-wrapper {
  display: block;
  margin: 1rem 0;
  padding: 3px;
  /* Adjust var(--primary) to match your theme's main text/border color */
  border: 1px solid var(--primary, #e0b0ff);
  box-shadow: 0 0 8px inset rgba(0, 255, 0, 0.2), 0 0 5px var(--primary, #a8c0ff);
  background: #7354b3;
  position: relative;
}

/* Optional CRT scanline overlay for images */
.sys-img-wrapper::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.sys-img-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.2) brightness(0.9) grayscale(20%);
}

/* Form Factors */
.img-wide {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.img-portrait {
  width: 35%;
  min-width: 200px;
  aspect-ratio: 3 / 4;
  float: right; /* Allows text to wrap around it */
  margin: 0.5rem 0 1rem 1.5rem;
}

/* Clearfix for floated portrait images */
.dropdown-content::after {
  content: "";
  display: table;
  clear: both;
}
