/* === TRIGGERS === */
.card-trigger {
  color: var(--gold);
  border-bottom: 1px dotted var(--gold-dim);
  cursor: pointer;
  transition: all 0.3s;
}

.card-trigger:hover {
  border-bottom-color: var(--gold);
  text-shadow: 0 0 20px rgba(201, 169, 110, 0.3);
}

.card-trigger.collected {
  color: var(--gold);
  border-bottom-style: solid;
  opacity: 0.7;
}

/* === PATTERN: INLINE === */
.inline-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
  margin: 0;
}

.inline-reveal > * {
  overflow: hidden;
}

.inline-reveal.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin: 16px 0;
}

.inline-card {
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--gold-subtle), rgba(201, 169, 110, 0.03));
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 700px;
}

/* === CLOSE BUTTON === */
.card-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
}

.card-close:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.inline-card {
  position: relative;
}

.inline-card .card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.inline-card .card-name {
  color: var(--gold);
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 12px;
  font-family: var(--font-poem);
}

/* === LAYOUT === */
.fragment-split {
  max-width: var(--max-width);
  margin: 0 auto;
}

.side-panel {
  display: none;
}

/* === PATTERN: ARTIFACT CARD === */
.artifact-card {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.6s ease, opacity 0.5s ease, margin 0.4s ease;
  margin: 0;
}

.artifact-card > * {
  overflow: hidden;
}

.artifact-card.revealed {
  grid-template-rows: 1fr;
  opacity: 1;
  margin: 20px 0;
}

.artifact-inner {
  position: relative;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

.artifact-header {
  padding: 18px 28px;
  background: linear-gradient(90deg, var(--gold-glow), transparent);
  display: flex;
  align-items: center;
  gap: 14px;
}

.artifact-symbol {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.artifact-title {
  font-size: 16px;
  color: var(--gold);
}

.artifact-type {
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.artifact-body {
  padding: 20px 28px 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.artifact-body .card-intro {
  margin-bottom: 12px;
}

.artifact-body .card-connection {
  padding-top: 12px;
  border-top: 1px solid rgba(201, 169, 110, 0.1);
}

/* === TYPE COLORS === */
.type-literary .artifact-symbol { background: rgba(123, 164, 201, 0.2); color: var(--type-literary); }
.type-mythological .artifact-symbol { background: rgba(176, 123, 201, 0.2); color: var(--type-mythological); }
.type-historical .artifact-symbol { background: rgba(201, 150, 123, 0.2); color: var(--type-historical); }
.type-technique .artifact-symbol { background: rgba(123, 201, 154, 0.2); color: var(--type-technique); }

.type-literary .card-label { color: var(--type-literary); }
.type-mythological .card-label { color: var(--type-mythological); }
.type-historical .card-label { color: var(--type-historical); }
.type-technique .card-label { color: var(--type-technique); }

.type-literary .inline-card { border-left-color: var(--type-literary); }
.type-mythological .inline-card { border-left-color: var(--type-mythological); }
.type-historical .inline-card { border-left-color: var(--type-historical); }
.type-technique .inline-card { border-left-color: var(--type-technique); }
