.mybook_section {
  min-height: 60vh;
  margin: 5rem 0;
}

/* Main container styles */
.mybook_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Grid layout */
.storybook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* Card base styles */
.storybook-card {
  background: url(../img/book.png);
  border-radius: 1rem;
  box-shadow: 10px 14px 7px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  padding-left: 3rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

.card_text_info {
  width: 100%;
  display: flex;
  margin-top: 10px;
  flex-direction: column;
  align-items: flex-end;
}

/* New story card styles */
.new-story {
  border: 2px dashed #fbbf24;
  border-radius: 1rem;
  background: rgba(251, 191, 36, 0.1);
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  font-size: 1rem;
  color: #4a4a4a;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.new-story:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.mybook_container .plus-icon {
  width: 60px;
  height: 60px;
  background: #fbbf24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: auto;
  position: relative;
}

.plus-icon::before {
  content: "+";
  position: absolute;
  transform: translate(1px, 2px); /* 미세 조정 */
  line-height: 1;
}

/* Card labels */
.mybook_container .label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #fbbf24;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

/* Card image styles */
.storybook-card > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.card_text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
/* Sample and reading-only card styles */
.sample,
.reading-only {
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Typography */
.mybook_container h1 {
  color: #1a1a1a;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: bold;
}

.card_text .title {
  font-size: 1.5rem;
  color: #4a4a4a;
}
.card_text_info span {
  font-size: 1rem;
}
.card_text_info p {
  font-size: 0.7rem;
}
/* Small text styles */
.new-story small {
  color: #666;
  font-size: 0.875rem;
}
.new-story .info {
  font-size: 0.7rem;
}


  /* 책 표지 래퍼 */
  .book-cover-wrapper {
    position: relative;
    margin-bottom: 1rem;
  }

  .book-cover-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
  }

  /* 책 표지 위에 오버레이되는 버튼들 */
  .cover-overlay-buttons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 2;
  }

  .cover-btn {
    background: rgba(251, 191, 36, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: auto;
    white-space: nowrap;
    cursor: pointer;
  }

  .cover-btn-left {
    /* 왼쪽에 배치 */
  }

  .cover-btn-right {
    /* 오른쪽에 배치 */
  }

  .book-cover-wrapper:hover .cover-btn {
    opacity: 1;
  }

  /* 다운로드 버튼들 (타이틀과 작가 이름 사이) */
  .download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0;
    width: 100%;
    align-items: center;
  }

  .download-btn {
    background: rgba(251, 191, 36, 0.9);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    width: 100%;
    max-width: 200px;
    transition: background 0.2s ease;
    display: block;
  }

  .download-btn:hover {
    background: rgba(251, 191, 36, 1);
  }

  /* 미완성 책 래퍼 */
  .incomplete-book-wrapper {
    position: relative;
    margin-bottom: 1rem;
  }

  /* 미완성 상태 배지 */
  .incomplete-status-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(251, 191, 36, 0.95);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  /* 미완성 책의 오버레이 */
  .overlay-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f5f5f5;
  }

  .overlay-container > a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
  }

  .incomplete-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
  }

  .storybook-card:hover .incomplete-cover {
    opacity: 0.9;
  }

  /* 플레이스홀더 커버 (이미지가 없을 때) */
  .placeholder-cover {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px dashed #d0d0d0;
    transition: all 0.2s ease;
  }

  .storybook-card:hover .placeholder-cover {
    background: linear-gradient(135deg, #f0f0f0 0%, #d5d5d5 100%);
    border-color: #fbbf24;
  }

  .placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
  }

  .placeholder-text {
    font-size: 0.875rem;
    color: #999;
    font-weight: 500;
  }

  .overlay-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(251, 191, 36, 0.95);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 3;
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .storybook-card:hover .overlay-button {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
  }

  /* 타이틀 플레이스홀더 */
  .title-placeholder {
    color: #999;
    font-style: italic;
    font-weight: normal;
  }