/**
 * Interactive Story Styles
 * Simple, clean storytelling interface
 */

/* Story Section */
.story-sec {
  min-height: 100vh;
  background-color: #000;
  padding: 60px 0;
}

.story-header {
  position: relative;
  margin-bottom: 40px !important;
}

.story-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Story Content */
.story-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

/* Custom scrollbar */
.story-content::-webkit-scrollbar {
  width: 6px;
}

.story-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.story-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.story-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Story Card */
.story-card {
  background: transparent;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.story-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Story Text */
.story-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.story-text strong {
  color: #fff;
  font-weight: 400;
  display: block;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.story-text em {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  font-weight: 500;
}

.story-text br + br {
  display: block;
  content: "";
  margin-top: 12px;
}

/* Story Choices */
.story-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.story-choice-btn {
  padding: 14px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Quicksand", sans-serif;
  text-align: left;
}

.story-choice-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.story-choice-btn:active {
  transform: scale(0.98);
}

/* Story Loader */
.story-loader {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.story-loader p {
  font-size: 1.05rem;
  margin: 0;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Story Progress */
.story-progress {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.progress-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0;
}

.progress-text span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
  .story-content {
    max-height: 500px;
  }

  .story-card {
    padding: 18px;
  }

  .story-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .story-text strong {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .story-text br + br {
    margin-top: 10px;
  }

  .story-choice-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .story-choices {
    gap: 8px;
    margin-top: 16px;
  }

  .story-loader {
    padding: 60px 20px;
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .story-header h1 {
    font-size: 1.8rem;
  }

  .story-subtitle {
    font-size: 0.95rem;
  }

  .story-content {
    max-height: 450px;
  }

  .story-card {
    padding: 16px;
  }

  .story-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .story-text strong {
    font-size: 1.1rem;
  }

  .story-loader {
    padding: 40px 16px;
    min-height: 200px;
  }

  .loader-spinner {
    width: 40px;
    height: 40px;
  }
}
