/* src/universe/ruines/Ruines.css
   Cinématique – Sanctuaire oublié
*/

.universe--ruines {
  --ruines-bg-dark: #0f0c0a;
  --ruines-bg-mid: #1e1915;
  --ruines-stone: #6b5a4a;
  --ruines-glow: #dbb86b;
  --ruines-accent: #b88d4a;
  --ruines-soft: #9e8b72;

  --font-display: 'Orbitron', sans-serif;
  --font-primary: 'Inter', sans-serif;

  position: relative;
  background: var(--ruines-bg-dark);
  color: #e6ddcf;
}

/* ========== CANVAS PRINCIPAL ========== */
.ruines-fx {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-canvas);
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* ========== MISE EN PAGE ========== */
.ruines-body {
  position: relative;
  z-index: var(--z-content);
  padding: 80px max(6vw, 40px) 120px;
}

.ruins-sanctuary {
  max-width: 1400px;
  margin: 0 auto;
}

.ruins-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
}

/* Dalles de pierre */
.ruins-slab {
  background: rgba(30, 20, 15, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 160, 100, 0.3);
  border-radius: 40px 12px 40px 12px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  flex: 1;
  min-width: 280px;
}

.ruins-slab:hover {
  transform: translateY(-8px);
  box-shadow: 0 45px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 160, 100, 0.6);
}

.slab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--ruines-accent);
  font-family: var(--font-display);
}

.slab-rune {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, var(--ruines-glow), #7a5a3a);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 6px var(--ruines-glow);
  animation: runePulse 3s infinite;
}

@keyframes runePulse {
  0%,100% { opacity: 0.6; transform: rotate(45deg) scale(1); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.2); }
}

.slab-title {
  font-size: 18px;
  letter-spacing: 3px;
  margin: 0;
  color: var(--ruines-glow);
  text-shadow: 0 0 5px rgba(200, 160, 100, 0.5);
}

.slab-content {
  padding: 28px 24px;
  line-height: 1.7;
}

/* Terminal lines */
.terminal-lines {
  margin-bottom: 28px;
}

.terminal-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(200, 160, 100, 0.2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}

.platform {
  color: var(--ruines-glow);
  font-weight: 500;
}

.identifier {
  color: #dac5a0;
}

.identifier a {
  color: inherit;
  text-decoration: none;
  transition: text-shadow 0.2s;
}
.identifier a:hover {
  text-shadow: 0 0 6px var(--ruines-glow);
}

.terminal-poem {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(200, 160, 100, 0.2);
  font-style: italic;
  color: #cbbd9a;
}

/* Memory cards */
.memory-card {
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 24px 8px 24px 8px;
  transition: background 0.2s;
}

.memory-card:hover {
  background: rgba(0, 0, 0, 0.35);
}

.memory-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--ruines-glow);
}

.memory-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.memory-list li {
  padding: 6px 0;
  border-bottom: 1px dotted rgba(200, 160, 100, 0.2);
}

.highlight {
  color: var(--ruines-glow);
  font-weight: bold;
}

.slab-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(200, 160, 100, 0.2);
  font-size: 13px;
}

.oracle-slot {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 30px;
  padding: 12px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #e6d5b3;
}

.color-note {
  margin-top: 60px;
  text-align: right;
  color: var(--ruines-glow);
  font-style: italic;
  border-top: 1px solid rgba(200, 160, 100, 0.3);
  padding-top: 20px;
}

/* Responsive */
@media (max-width: 800px) {
  .ruins-columns {
    flex-direction: column;
  }
  .slab-header {
    padding: 12px 16px;
  }
  .slab-title {
    font-size: 16px;
  }
  .terminal-line {
    font-size: 12px;
    flex-direction: column;
    gap: 4px;
  }
  .terminal-poem {
    font-size: 12px;
  }
}