/* Styles for Stories & Poetry User Cards (Grid View) */
.stories-poetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Also apply same grid to Junior Artists */
.junior-artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.stories-user-card {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center bottom; /* Crop to bottom part */
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background-color: #fffaf0;
}

.stories-user-card:hover {
  transform: translateY(-5px);
}

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

.stories-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.stories-card-semicircle {
  background-color: rgba(255, 255, 255, 0.95);
  width: 160px;
  height: 80px; /* Half width */
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
  border: 2px dashed #3a5dae;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px;
  margin-bottom: 0;
}

.story-title-preview {
  font-family: 'Roboto Slab', serif;
  font-size: 14px;
  font-weight: bold;
  color: #ff6b6b; /* Reddish color from design */
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.story-author-preview {
  font-family: 'Roboto Slab', serif;
  font-size: 11px;
  color: #000;
  font-weight: bold;
}

/* Junior Artist specific card - uses same structure as stories card */
.junior-artist-user-card {
  /* Inherits all styles from .stories-user-card */
  /* Same square size, same semicircle design */
}
