/* Young Writers Page Styles */

/* Page Container */
.young-writers-page {
  margin: 0;
  padding: 0;
}

/* Header Title */
.young-writers-title {
  text-align: center;
  padding: 0.1rem 1rem 0.15rem;
  margin-top: -0.4rem;
}

.young-writers-title-text {
  font-family: 'Roboto Slab', serif;
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  line-height: 1.1;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #9B9BEF 0%, #F15A9A 45%, #F2C04A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cards Section */
.young-writers-cards {
  margin-bottom: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  margin-top: 0;
}

.cards-intro-text {
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2C3E50;
  text-align: center;
  margin: 0.4rem 0 2rem 0;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 0 auto;
}

/* Individual Card */
.yw-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  aspect-ratio: 1 / 1;
  max-width: 270px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.yw-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.yw-card::before {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 78px;
  height: 78px;
  background: url("/themes/custom/storyfulls/images/leafimage.png") no-repeat center/contain;
  pointer-events: none;
  z-index: 3;
}

.yw-card::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 34px;
  height: 34px;
  background: url("/themes/custom/storyfulls/images/smallleaf.png") no-repeat center/contain;
  pointer-events: none;
  z-index: 3;
}

.card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: 0.95rem 1.2rem 0.8rem;
  cursor: pointer;
  background: #fff;
  border-radius: 14px;
  position: relative;
  z-index: 2;
}

.card-icon {
  text-align: center;
  margin-top: 0.15rem;
  margin-bottom: 0;
}

.card-icon img {
  width: 155px;
  height: 155px;
  object-fit: contain;
  margin: 0 auto;
}

.card-title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2C3E50;
  text-align: center;
  margin: 0 0 0.15rem 0;
}

.card-description {
  font-family: 'Roboto Slab', serif;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

/* Junior Artists Styles */
.junior-artist-card {
  width: 100%;
  aspect-ratio: 3/4; /* Adjust based on actual card image dimensions */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.junior-artist-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.artist-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.artist-card-overlay {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.canvas-text {
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2C3E50;
  text-align: center;
  padding-top: 20px;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
  /* Adjust positioning to match the card "header" area */
}

.artist-info-semicircle {
  width: 100%;
  height: 35%; /* Adjust height for semi-circle appearance */
  background: rgba(255, 255, 255, 0.9);
  border-top-left-radius: 50% 20px;
  border-top-right-radius: 50% 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  /* Make it look like it's part of the card design */
  backdrop-filter: blur(5px);
}

.artist-name {
  font-family: 'Roboto Slab', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2C3E50;
  margin-bottom: 0.25rem;
}

.artist-age {
  font-family: 'Roboto Slab', serif;
  font-size: 0.9rem;
  color: #666;
}

/* Reviewers Reveal Section */
.reviewers-reveal-section {
  margin-top: 1.5rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Action Bar */
.reviewers-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}

.share-your-work-btn {
  background: #FFD700;
  color: #2C3E50;
  font-family: 'Roboto Slab', serif;
  font-size: 18px;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.share-your-work-btn:hover {
  background: #FFC700;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.view-all-artwork-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-family: 'Roboto Slab', serif;
  font-size: 16px;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
  margin-left: 1rem;
}

.view-all-artwork-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.5);
}

.reviewers-search {
  flex: 1;
  max-width: 400px;
}

.reviewer-search-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-family: 'Roboto Slab', serif;
  font-size: 16px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.reviewer-search-input:focus {
  outline: none;
  border-color: #FFB6D9;
  box-shadow: 0 0 0 3px rgba(255, 182, 217, 0.2);
}

.reviewer-search-input::placeholder {
  color: #BDBDBD;
  font-style: italic;
}

/* Reviewers Grid */
.reviewers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  min-height: 200px;
}

/* Reviewer Card */
.reviewer-card {
  background: #fff;
  border-radius: 16px;
  overflow: visible;
  transition: all 0.3s ease;
  position: relative;
  animation: cardSlideIn 0.4s ease-out;
}

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

.reviewer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.reviewer-card-inner {
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

/* Avatar */
.reviewer-avatar-link {
  display: block;
  text-decoration: none;
}

.reviewer-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reviewer-avatar-link:hover .reviewer-avatar {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Pastel background colors */
.reviewer-card:nth-child(3n+1) {
  background: linear-gradient(135deg, #FFE9F5 0%, #FFF9F9 100%);
}

.reviewer-card:nth-child(3n+2) {
  background: linear-gradient(135deg, #E8F4FF 0%, #F0F9FF 100%);
}

.reviewer-card:nth-child(3n+3) {
  background: linear-gradient(135deg, #F0E9FF 0%, #F9F5FF 100%);
}

/* Badge */
.reviewer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 10;
}

/* Info Section */
.reviewer-info {
  margin-top: 0.5rem;
}

.reviewer-name {
  font-family: 'Roboto Slab', serif;
  font-size: 20px;
  font-weight: 700;
  color: #2C3E50;
  margin: 0 0 0.25rem 0;
}

.reviewer-age {
  font-family: 'Roboto Slab', serif;
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Navigation Arrows */
.reviewers-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.nav-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #E0E0E0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-arrow:not(:disabled):hover {
  background: #FFB6D9;
  border-color: #FFB6D9;
  color: #fff;
  transform: scale(1.1);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Loading and Error States */
.loading-spinner,
.error-message,
.no-reviewers {
  text-align: center;
  padding: 3rem 1rem;
  font-family: 'Roboto Slab', serif;
  font-size: 18px;
  color: #666;
  grid-column: 1 / -1;
}

.loading-spinner {
  color: #4DD0E1;
}

.error-message {
  color: #E74C3C;
}

/* Responsive */
@media (max-width: 968px) {
  .banner-title {
    font-size: 2rem;
  }
  
  .banner-subtitle {
    font-size: 1rem;
  }
  
  .card-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .reviewers-action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .reviewers-search {
    max-width: 100%;
  }
  
  .reviewers-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .reviewer-avatar {
    width: 150px;
    height: 150px;
  }
  
  .reviewer-badge {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .banner-title {
    font-size: 1.5rem;
  }
  
  .banner-subtitle {
    font-size: 0.875rem;
  }
  
  .card-icon img {
    width: 120px;
    height: 120px;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  .card-description {
    font-size: 0.875rem;
  }
  
  .reviewers-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  
  .reviewer-avatar {
    width: 120px;
    height: 120px;
  }
  
  .reviewer-name {
    font-size: 16px;
  }
  
  .reviewer-age {
    font-size: 12px;
  }
  
  .reviewer-badge {
    width: 40px;
    height: 40px;
  }
}

/* Stories & Poetry Specific Styles */
.young-writers-stories-poetry-page,
.young-writers-user-stories-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.share-work-section-centered {
  text-align: center;
  margin: 2rem 0 3rem;
}

.share-work-btn-large {
  display: inline-block;
  background: #FFD700;
  color: #2C3E50;
  font-family: 'Roboto Slab', serif;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem 3rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-work-btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  background: #FFC700;
}

.writers-grid-section {
  margin-top: 2rem;
}

.reviewer-stats {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #888;
}

.stat-count {
  font-weight: bold;
  color: #2C3E50;
}

/* User Stories Posts Styles */
.post-item {
  margin-bottom: 4rem;
}

.post-divider {
  height: 2px;
  background: #eee;
  margin: 0 auto 3rem;
  width: 60%;
}

.post-content-wrapper {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.post-image-container {
  flex: 0 0 400px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-image {
  width: 100%;
  height: auto;
  display: block;
}

.post-actions-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 1rem;
}

.action-btn {
  background: none;
  border: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.action-btn:hover {
  transform: scale(1.1);
  background: none !important;
}

/* Like Button Animation Keyframes */
@keyframes heartBeat {
  0% { transform: scale(1); }
  20% { transform: scale(1.3); }
  40% { transform: scale(1.1); }
  60% { transform: scale(1.25); }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes heartPulse {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.2) rotate(-10deg); }
  50% { transform: scale(1.3) rotate(10deg); }
  75% { transform: scale(1.2) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.action-btn .btn-icon-wrapper {
  display: inline-block;
  transition: transform 0.3s ease;
}

.action-btn.like-btn.animating .btn-icon-wrapper {
  animation: heartBeat 0.6s ease-in-out;
}

.action-btn.like-btn.liked .btn-icon-wrapper {
  animation: heartPulse 0.8s ease-in-out;
}

.action-btn .btn-icon {
  width: 24px;
  height: 24px;
}

.action-btn .btn-count {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.action-btn img {
  width: 24px;
  height: 24px;
}

.post-text-content {
  flex: 1;
}

.post-text-content.full-width {
  flex: 0 0 100%;
}

.post-title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.75rem;
  color: #2C3E50;
  text-align: center;
  margin: 0 0 1.5rem;
  position: relative;
}

.post-body {
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

@media (max-width: 968px) {
  .post-content-wrapper {
    flex-direction: column;
  }
  
  .post-image-container {
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2rem;
  }
}


.young-writers-user-reviews-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Page Header */
.page-header-section {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title-purple {
  font-family: 'Roboto Slab', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #9B59B6;
  margin: 0;
  line-height: 1.4;
}

/* Reviews List Container */
.reviews-list-container {
  margin-bottom: 3rem;
}

/* Individual Review Item */
.review-item {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.review-item.review-left {
  flex-direction: row;
}

.review-item.review-right {
  flex-direction: row-reverse;
}

/* Book Cover Circle */
.review-book-circle {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.circle-yellow {
  background: linear-gradient(135deg, #FFF9E6 0%, #FFFDF0 100%);
}

.circle-pink {
  background: linear-gradient(135deg, #FFE9F5 0%, #FFF9F9 100%);
}

.circle-green {
  background: linear-gradient(135deg, #E8F9F0 0%, #F0FDF4 100%);
}

.circle-blue {
  background: linear-gradient(135deg, #E8F4FF 0%, #F0F9FF 100%);
}

.book-cover-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.no-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #999;
  font-family: 'Roboto Slab', serif;
  border-radius: 8px;
}

/* Review Content Box */
.review-content-box {
  flex: 1;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.box-yellow {
  background: linear-gradient(135deg, #E8F4FF 0%, #F0F9FF 100%);
}

.box-pink {
  background: linear-gradient(135deg, #E8F4FF 0%, #F0F9FF 100%);
}

.box-green {
  background: linear-gradient(135deg, #E8F9F0 0%, #F0FDF4 100%);
}

.box-blue {
  background: linear-gradient(135deg, #E8F4FF 0%, #F0F9FF 100%);
}

.review-book-title-header {
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2C3E50;
  margin: 0 0 0.75rem 0;
}

.review-rating-stars {
  margin-bottom: 0.75rem;
}

.review-rating-stars .star {
  font-size: 1.25rem;
  color: #FFD700;
  margin-right: 0.25rem;
}

.review-rating-stars .star.filled {
  color: #FFD700;
}

.review-text-content {
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Share button on user reviews page */
.book-reviews-page .review-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.book-reviews-page .review-share-btn {
  border: 1px solid #2C3E50;
  background: #fff;
  color: #2C3E50;
  font-family: 'Roboto Slab', serif;
  font-size: 12px;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.book-reviews-page .review-share-btn:hover {
  background: #2C3E50;
  color: #fff;
}

.book-reviews-page .review-share-btn.copied {
  border-color: #27AE60;
  color: #27AE60;
  background: #F3FBF6;
}

/* User Profile Card at Bottom */
.user-profile-card-bottom {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
}

.user-card-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.user-avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #E8F4FF 0%, #F0F9FF 100%);
  padding: 0.5rem;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info-text {
  flex: 1;
}

.user-name-display {
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2C3E50;
  margin: 0 0 0.25rem 0;
}

.user-age-display {
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.user-action-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.follow-btn-user,
.view-profile-btn-user {
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.follow-btn-user {
  background: #E8F4FF;
  color: #2C3E50;
}

.follow-btn-user:hover {
  background: #D0E9FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.view-profile-btn-user {
  background: #E8F4FF;
  color: #2C3E50;
}

.view-profile-btn-user:hover {
  background: #D0E9FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* No Reviews Message */
.no-reviews-message {
  text-align: center;
  padding: 3rem;
  font-family: 'Roboto Slab', serif;
  font-size: 1.125rem;
  color: #666;
}

/* Responsive Styles for User Reviews Page */
@media (max-width: 968px) {
  .page-title-purple {
    font-size: 1.5rem;
  }
  
  .review-item {
    flex-direction: column !important;
    gap: 1.5rem;
  }
  
  .review-book-circle {
    width: 180px;
    height: 180px;
  }
  
  .review-content-box {
    width: 100%;
  }
  
  .user-card-content {
    flex-direction: column;
    text-align: center;
  }
  
  .user-action-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .follow-btn-user,
  .view-profile-btn-user {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-title-purple {
    font-size: 1.25rem;
  }
  
  .review-book-circle {
    width: 150px;
    height: 150px;
    padding: 1rem;
  }
  
  .review-content-box {
    padding: 1.5rem;
  }
  
  .review-book-title-header {
    font-size: 1.25rem;
  }
  
  .review-text-content {
    font-size: 0.875rem;
  }
  
  .user-avatar-circle {
    width: 80px;
    height: 80px;
  }
  
  .user-name-display {
    font-size: 1.25rem;
  }
}

/* Story Node Full Display */
.story-poetry-full-node {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.story-poetry-container {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.story-left-column {
  flex: 0 0 45%;
  max-width: 500px;
}

.story-right-column {
  flex: 1;
  padding-top: 0;
}

.story-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  line-height: 0;
}

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

/* Gradient Overlay at bottom of image */
.story-actions-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px; /* Fixed height for gradient */
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  padding: 0 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center; /* Center vertically in the overlay height */
  justify-content: flex-start;
}

/* Action Buttons in Overlay */
.action-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: white;
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.action-btn:hover {
  transform: scale(1.05);
}

.action-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.like-count {
  color: white;
  font-weight: 600;
}

/* Right Column Content */
.story-title {
  font-family: 'Roboto Slab', serif;
  font-size: 2.5rem;
  color: #2C3E50;
  margin: 0 0 2rem;
  text-align: center;
  position: relative;
  display: block;
}

/* Stars decoration */
.story-title:before {
  content: "✧ ";
  color: #2C3E50;
  margin-right: 10px;
}

.story-title:after {
  content: " ✧";
  color: #2C3E50;
  margin-left: 10px;
}

.story-content {
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #2C3E50;
  white-space: pre-wrap; /* Preserves poetic formatting */
}

/* Paragraph spacing in content */
.story-content p {
  margin-bottom: 1.5rem;
}

/* Like Button Animations */
@keyframes heartBeat {
  0% { transform: scale(1); }
  20% { transform: scale(1.3); }
  40% { transform: scale(1.1); }
  60% { transform: scale(1.25); }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes heartPulse {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.2) rotate(-10deg); }
  50% { transform: scale(1.3) rotate(10deg); }
  75% { transform: scale(1.2) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.like-btn .btn-icon-wrapper {
  display: inline-block;
  transition: transform 0.3s ease;
}

.like-btn.animating .btn-icon-wrapper {
  animation: heartBeat 0.6s ease-in-out;
}

.like-btn.liked .btn-icon-wrapper {
  animation: heartPulse 0.8s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 968px) {
  .story-poetry-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .story-left-column {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .story-image-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .story-right-column {
    width: 100%;
  }
  
  .story-title {
    font-size: 2rem;
    text-align: center;
  }
}

/* No Posts/Content Message */
.no-posts-message,
.no-content-message {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}
