/* QuestDetailsSidebar Styles */

#quest-details-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
  position: fixed;
  top: 60px;
  left: 0;
  z-index: 500;
  background: #F9F4ED;
  transform: translateX(-105%);
  transition: all 0.3s ease-in-out;
  height: calc(100vh - 60px);
  width: 100vw;
  box-shadow: 7px 5px 7px -1px rgba(0, 0, 0, 0.63);
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 840px) {
  #quest-details-container {
    width: 30vw;
    top: 60px;
    height: calc(100vh - 60px);
  }
}

#quest-details-container.active {
  transform: translateX(0%);
}

#quest-details-container.active #quest-close-btn {
  transform: translateX(0%);
}

#quest-details-container #quest-close-btn {
  text-decoration: none;
  color: black;
  position: absolute;
  top: 0.6rem;
  left: 1rem;
  width: 3rem;
  opacity: 1;
  background: #F9F4ED;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.63);
  border-radius: 100%;
  padding: 0.5rem;
  z-index: 501;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#quest-details-container #quest-close-btn img {
  width: 2rem;
  height: 2rem;
}

#quest-details-container #quest-close-btn:hover {
  background: #e8e0d5;
}

#quest-details {
  width: 100%;
  max-width: 500px;
  padding: 5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 839px) {
  #quest-details {
    padding: 4rem 2rem 2rem 2rem;
  }
}

#quest-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 0;
  padding: 0 1rem 0 0;
}

#quest-status-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.qds-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: var(--quest-chip-height);
  padding: 0.35rem var(--quest-chip-padding-x);
  border-radius: var(--quest-chip-radius);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.qds-chip-icon {
  font-size: 0.95em;
  line-height: 1;
}

.qds-chip-label {
  line-height: 1.2;
}

.qds-type-badge {
  background: linear-gradient(135deg, var(--forest-green-light) 0%, var(--forest-green) 100%);
  color: var(--parchment-light);
}

#quest-status {
  color: #ffffff;
}

.qds-status-not_yet_begun,
.qds-status-pending {
  background: var(--status-not-yet-begun);
}

.qds-status-the_road_goes_ever_on,
.qds-status-in_progress {
  background: var(--status-road-goes-on);
}

.qds-status-it_is_done,
.qds-status-completed {
  background: var(--status-it-is-done);
}

.qds-status-the_shadow_falls,
.qds-status-blocked {
  background: var(--status-shadow-falls);
}

#quest-metadata {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metadata-row {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.metadata-label {
  font-weight: 600;
  color: #2c3e50;
  min-width: 80px;
}

.metadata-value {
  color: #555;
}

#quest-description,
#quest-quote,
#quest-assignee,
#quest-location {
  border-top: 1px solid #d4cfc6;
  padding-top: 1rem;
}

#quest-description h3,
#quest-quote h3,
#quest-assignee h3,
#quest-location h3 {
  font-size: 1.1rem;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

#quest-description p,
#quest-quote p,
#quest-assignee p,
#quest-location p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 839px) {
  #quest-details-container {
    width: 100vw;
  }
}

#quest-actions {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--quest-action-gap);
}

.qds-action-btn {
  width: 100%;
  min-height: var(--quest-action-min-height);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  border: 2px solid var(--earth-brown);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--deep-blue);
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.35);
}

.qds-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(218, 165, 32, 0.45);
}
