/* ================================================================= */
/* GÖRSEL ÇİZGİ ROMAN HİKAYE MODU STİLLERİ */
/* ================================================================= */

.story-wrapper {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#story-scene-container {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  transition: opacity 0.25s ease-in-out;
}

.story-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: background 0.6s ease;
}

.story-bg-emoji {
  position: absolute;
  font-size: 220px;
  opacity: 0.05;
  right: -30px;
  bottom: -30px;
  user-select: none;
  filter: blur(3px);
}

.story-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: 24px;
}

/* GÖRSEL SAHNE ALANI (AVATARLAR VE BALONLARIN DURDUĞU YER) */
.story-visual-stage {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  flex: 1;
  min-height: 380px;
  padding-bottom: 20px;
}

/* AVATAR TASARIMLARI */
.story-char-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  width: 110px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0.6;
  filter: grayscale(40%);
}

.story-char-avatar-wrapper.active-speaker {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.12) translateY(-10px);
}

.story-avatar-bubble {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid var(--rose-pink);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s;
}

.active-speaker .story-avatar-bubble {
  box-shadow: 0 0 25px rgba(255, 117, 151, 0.6);
}

.story-avatar-emoji {
  font-size: 42px;
  animation: floatEmoji 2.5s ease-in-out infinite alternate;
}

.story-avatar-name {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 12px;
}

/* KONUŞMA BALONLARI */
.story-speech-bubble-container {
  position: absolute;
  top: 15px;
  width: 280px;
  z-index: 4;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.left-speech-bubble {
  left: 120px;
}

.right-speech-bubble {
  right: 120px;
}

.story-speech-bubble {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--rose-light);
  position: relative;
}

.story-speech-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
}

/* Konuşma Balonu Kuyrukları */
.story-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  width: 0;
  height: 0;
  border-style: solid;
}

.left-speech-bubble .story-speech-bubble::after {
  left: 20px;
  border-width: 12px 10px 0 10px;
  border-color: rgba(255,255,255,0.96) transparent transparent transparent;
}

.right-speech-bubble .story-speech-bubble::after {
  right: 20px;
  border-width: 12px 10px 0 10px;
  border-color: rgba(255,255,255,0.96) transparent transparent transparent;
}

/* ANLATICI / ORTA KUTU */
.story-narrator-container {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 450px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 18px 24px;
  text-align: center;
  z-index: 5;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.story-narrator-container p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: white;
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
}

/* ALT AKSİYON ALANI */
.story-action-stage {
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.story-click-advance {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 14px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.story-click-advance:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--rose-pink);
  transform: translateY(-2px);
}

.story-click-advance span {
  font-size: 14px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  font-family: 'Quicksand', sans-serif;
}

/* Seçenek Butonları Grubu */
.story-choices-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.story-choice-btn {
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid var(--rose-pink);
  color: var(--text-dark);
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.story-choice-btn:hover {
  background: var(--rose-pink);
  color: white;
  transform: translateY(-2px);
}

/* ANIMASYONLAR */
@keyframes floatEmoji {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ================================================================= */
/* RESPONSIVE */
/* ================================================================= */
@media (max-width: 768px) {
  .story-wrapper {
    min-height: 480px;
  }
  .story-content {
    min-height: 480px;
    padding: 16px;
  }
  .story-visual-stage {
    min-height: 330px;
  }
  .story-char-avatar-wrapper {
    width: 80px;
  }
  .story-avatar-bubble {
    width: 64px;
    height: 64px;
  }
  .story-avatar-emoji {
    font-size: 32px;
  }
  .story-speech-bubble-container {
    width: 220px;
  }
  .left-speech-bubble {
    left: 80px;
  }
  .right-speech-bubble {
    right: 80px;
  }
  .story-speech-bubble {
    padding: 12px 14px;
  }
  .story-speech-bubble p {
    font-size: 13px;
  }
  .story-narrator-container {
    padding: 12px 16px;
    width: 95%;
  }
}

/* Modern & Premium Restart Butonu */
.story-restart-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(255, 117, 151, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 15px auto 0 auto;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.story-restart-btn:hover {
  background: var(--rose-pink);
  border-color: var(--rose-pink);
  box-shadow: 0 10px 25px rgba(255, 117, 151, 0.5);
  transform: translateY(-3px);
}

.story-restart-btn:active {
  transform: scale(0.97) translateY(-1px);
}
