/* 08-expertise.css — Neural Network / Figma-Screens (Sektion 3)
   Teil von css/living-canvas (aufgeteilt). Ladereihenfolge = Dateiname.
   Siehe docs/components/ fuer die Zuordnung Sektion -> Datei. */
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-normal) var(--ease-spring), box-shadow var(--dur-normal) var(--ease-smooth);
}
.card:nth-child(1) { grid-row: 1/3; border-radius: 36px 12px 36px 12px; }
.card:nth-child(2) { border-radius: 12px 36px 12px 36px; }
.card:nth-child(3) { border-radius: 12px 36px 36px 12px; }
.card:hover {
  box-shadow: 0 20px 60px rgba(16, 43, 60, 0.1);
}
@property --glow-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes glow-spin { to { --glow-angle: 360deg; } }
.card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--glow-angle, 0deg), var(--teal), var(--electric), var(--apricot), var(--teal));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--dur-normal);
}
.card:hover::after {
  opacity: 0.12;
  animation: glow-spin 4s linear infinite;
}
.card h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
.card p {
  font-size: 13.5px;
  color: var(--grey);
  margin: 0 0 14px;
}
/* 12. Philosophie Story Steps & Logo Slider */
/* 12. Neural Network (So Ticke ich) */
/* Layout stand frueher als Inline-Style am #neuralNetwork im HTML und hat
   damit alle Mobil-Regeln ueberstimmt — jetzt hier, deshalb ueberschreibbar. */
.neural-network-section {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 1580px;
  min-height: 400px;
  height: auto;
  padding: 0;
  margin: 0 auto 100px;
}

#networkCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.figma-screen {
  position: relative; /* Overridden from absolute to relative to be flex items */
  z-index: 2;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 43, 60, 0.08);
  width: 100%;
  max-width: 280px;
  height: 360px; /* Fixed height for all */
  flex: 1 1 160px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
}

/* Custom Scrollbar for Skills Screen */
.scrollable-screen::-webkit-scrollbar {
  width: 6px;
}
.scrollable-screen::-webkit-scrollbar-track {
  background: transparent;
}
.scrollable-screen::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}
.scrollable-screen::-webkit-scrollbar-thumb:hover {
  background: var(--grey);
}

.screen-header {
  background: var(--mist);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.dots {
  display: flex;
  gap: 6px;
}
.dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dots .dot:nth-child(1) { background: #FF5F56; }
.dots .dot:nth-child(2) { background: #FFBD2E; }
.dots .dot:nth-child(3) { background: #27C93F; }

.screen-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--grey);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.screen-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
}

.wire-img {
  width: 100%;
  height: 60px;
  background: repeating-linear-gradient(
    45deg,
    var(--mist),
    var(--mist) 10px,
    var(--paper) 20px
  );
  border-radius: 6px;
  border: 1px solid var(--line);
}

/* --- Custom Wireframe Elements --- */
.wire-ui-container {
  width: 100%;
  height: 60px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  overflow: hidden;
}

/* Empathie (User Profile) */
.wire-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mist);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.wire-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.wire-line {
  height: 6px;
  background: var(--mist);
  border-radius: 4px;
}
.wire-line.short { width: 40%; }
.wire-line.medium { width: 70%; }
.wire-line.long { width: 100%; }

/* Struktur (Grid/Layout) */
.wire-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 10px 1fr;
  gap: 4px;
  width: 100%;
  height: 100%;
}
.wire-grid-item {
  background: var(--mist);
  border-radius: 2px;
  border: 1px solid var(--line);
}
.wire-grid-item.header { grid-column: 1 / -1; }

/* Kaffee (Progress) */
.wire-progress-bar {
  width: 100%;
  height: 12px;
  background: var(--mist);
  border-radius: 6px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.wire-progress-fill {
  width: 80%;
  height: 100%;
  background: var(--teal);
  border-radius: 6px;
  opacity: 0.5;
}

/* KI & Tools (Input + Toggle) */
.wire-input-box {
  width: 100%;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 0 6px;
  justify-content: space-between;
}
.wire-toggle {
  width: 24px;
  height: 12px;
  background: var(--electric);
  border-radius: 12px;
  position: relative;
  opacity: 0.7;
}
.wire-toggle::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 2px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

/* Ausgleich (Slider) */
.wire-slider-track {
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
}
.wire-slider-thumb {
  width: 14px;
  height: 14px;
  background: var(--apricot);
  border-radius: 50%;
  position: absolute;
  left: 45%;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wire-text h3 {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--ink);
}

.wire-text p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--grey);
  margin: 0;
}

@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 32px)); }
}

@media (max-width: 1000px) {
  .neural-network-section {
    height: auto;
  }
}
@media (max-width: 900px) {
  .neural-network-section {
    height: auto;
  }
  .figma-screen {
    height: auto !important;
    overflow: visible !important;
  }
}
@media (max-width: 768px){
  .neural-network-section {
    height: auto;
  }
}
