:root {
  /* Inherit main color variables from styles.css */
}

.story-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.story-header {
  text-align: center;
  margin-bottom: 4rem;
}

.story-header h1 {
  font-size: var(--font-size-title);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.story-header p {
  font-size: var(--font-size-large);
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto;
}

.story-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: var(--size-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.story-section:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.story-title {
  font-size: var(--font-size-xlarge);
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

.story-content {
  line-height: 1.8;
}

.story-content p {
  margin-bottom: 1.5rem;
}

.story-image {
  width: 100%;
  max-height: 400px;
  border-radius: var(--size-radius);
  margin: 2rem 0;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
}

.nav-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background-color: #7b50e0;
  transform: translateY(-3px);
}

.nav-button.disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.related-stories {
  margin-top: 4rem;
}

.related-stories h2 {
  font-size: var(--font-size-xlarge);
  margin-bottom: 1.5rem;
  text-align: center;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.story-card {
  background: white;
  border-radius: var(--size-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.story-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.story-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-card:hover .story-card-image img {
  transform: scale(1.1);
}

.story-card-content {
  padding: 1.5rem;
}

.story-card-title {
  font-size: var(--font-size-large);
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.story-card-excerpt {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-more {
  color: var(--color-primary);
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.read-more:after {
  content: '→';
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover:after {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }
}
