/* =========================
   QUEST BOOK
   ========================= */

.questsContent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 18px 18px;
  overflow-y: auto;
  flex: 1;
}

/* Quest Item Container */
.quest-item {
  background: rgba(26, 21, 17, 0.7);
  border: 1px solid #5f4827;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.quest-item:hover {
  border-color: var(--ui-gold);
  background: rgba(38, 30, 24, 0.85);
  box-shadow: 0 6px 12px rgba(216, 180, 106, 0.15);
}

/* Header (Title & Level tag) */
.quest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.quest-title {
  color: var(--ui-gold);
  font-weight: 700;
  font-size: 1.02rem;
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.quest-level {
  font-size: 0.76rem;
  font-weight: 700;
  color: #d7ccb4;
  background: rgba(167, 151, 124, 0.15);
  border: 1px solid rgba(216, 180, 106, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Description */
.quest-desc {
  font-size: 0.86rem;
  color: #ddd3bf;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
}

/* Progress bar container */
.quest-progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.quest-progress-bar {
  flex: 1;
  height: 8px;
  background: #0d0a07;
  border-radius: 999px;
  border: 1px solid rgba(216, 180, 106, 0.3);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
}

.quest-progress-inner {
  height: 100%;
  background: linear-gradient(90deg, #b8860b, #d8b46a, #ffd700);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  transition: width 0.3s ease;
}

.quest-progress-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Outfit', monospace;
  min-width: 32px;
  text-align: right;
  text-shadow: 0 1px 2px #000;
}

/* Rewards section */
.quest-rewards {
  font-size: 0.82rem;
  color: #7aff7a;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  border-top: 1px dashed rgba(216, 180, 106, 0.18);
  padding-top: 8px;
}

.quest-reward-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Tab button customizations (matching variables.css/hud.css) */
.socialTabs .tabBtn,
.questsTabs .tabBtn {
  background: transparent;
  border: none;
  color: #a7977c;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 4px;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.socialTabs .tabBtn:hover,
.questsTabs .tabBtn:hover {
  color: #fff1cd;
  background: rgba(216, 180, 106, 0.05);
}

.socialTabs .tabBtn.active,
.questsTabs .tabBtn.active {
  color: var(--ui-gold);
  border-bottom-color: var(--ui-gold);
  background: rgba(216, 180, 106, 0.08);
}

/* =========================
   TUTORIAL HELPER SYSTEM
   ========================= */

.tutorial-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid #ffcd38;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)) drop-shadow(0 0 4px #ffcd38);
  z-index: 99999;
  pointer-events: none;
  animation: tuto-arrow-float-down 0.8s infinite alternate ease-in-out;
}

.tutorial-arrow.arrow-up {
  border-top: none;
  border-bottom: 15px solid #ffcd38;
  animation: tuto-arrow-float-up 0.8s infinite alternate ease-in-out;
}

.tutorial-arrow.arrow-left {
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: none;
  border-right: 15px solid #ffcd38;
  animation: tuto-arrow-float-left 0.8s infinite alternate ease-in-out;
}

.tutorial-arrow.arrow-right {
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: none;
  border-left: 15px solid #ffcd38;
  animation: tuto-arrow-float-right 0.8s infinite alternate ease-in-out;
}

@keyframes tuto-arrow-float-down {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

@keyframes tuto-arrow-float-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

@keyframes tuto-arrow-float-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(6px); }
}

@keyframes tuto-arrow-float-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(-6px); }
}

/* Pulsing outline highlight for target elements */
.tutorial-highlight {
  position: relative;
}
.tutorial-highlight::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid #ffcd38;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 8px #ffcd38;
  animation: tuto-pulse 1.2s infinite ease-in-out;
  z-index: 99998;
}

@keyframes tuto-pulse {
  0% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0.3; transform: scale(1); }
}
