@charset "UTF-8";
/* 📚 도서관 스타일 전역 설정 */
.library-view {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 2rem 0;
  min-height: 100vh;
}

[data-mode=dark] .library-view {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

/* 📖 서가 섹션 */
.bookshelf-section {
  margin-bottom: 4rem;
}

.bookshelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

[data-mode=dark] .bookshelf-header {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.bookshelf-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.bookshelf-more {
  font-size: 0.95rem;
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.bookshelf-more:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bookshelf-description {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
  font-style: italic;
}

[data-mode=dark] .bookshelf-description {
  color: #adb5bd;
}

/* 📚 책장 배경 */
.bookshelf-wrapper {
  position: relative;
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
  border-radius: 0 0 12px 12px;
  padding: 2.5rem 0 3rem 0;
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.bookshelf-wrapper .swiper {
  padding: 0 60px;
}

[data-mode=dark] .bookshelf-wrapper {
  background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* 나무 질감 효과 */
.bookshelf-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.02) 2px, rgba(0, 0, 0, 0.02) 4px);
  border-radius: 0 0 12px 12px;
  pointer-events: none;
}

/* 책장 선반 */
.bookshelf-wrapper::after {
  content: "";
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  height: 4px;
  background: linear-gradient(180deg, #c8c8c8 0%, #a0a0a0 100%);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-mode=dark] .bookshelf-wrapper::after {
  background: linear-gradient(180deg, #444 0%, #222 100%);
}

/* 📕 책 카드 (세로로 긴 책 표지 스타일) */
.book-card {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e0e0e0;
  border-radius: 8px 12px 12px 8px;
  padding: 1.5rem 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.15), -2px 0 8px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

[data-mode=dark] .book-card {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-color: #4a5568;
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.6), -2px 0 10px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* 책 spine 효과 */
.book-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.05) 50%, transparent 100%);
  border-radius: 8px 0 0 8px;
}

/* 책 표지 장식 라인 */
.book-card::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #667eea 10%, #764ba2 90%, transparent 100%);
  opacity: 0.3;
}

/* 책 호버 효과 (책을 꺼내는 듯한) */
.book-card:hover {
  transform: translateY(-20px) translateX(10px) rotate(2deg);
  box-shadow: 12px 20px 40px rgba(0, 0, 0, 0.3), -4px 0 12px rgba(0, 0, 0, 0.1), inset 0 0 0 2px rgba(102, 126, 234, 0.3);
  border-color: #667eea;
}

[data-mode=dark] .book-card:hover {
  box-shadow: 12px 20px 50px rgba(0, 0, 0, 0.8), -4px 0 15px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(102, 126, 234, 0.5);
}

.book-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: #667eea;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  align-self: flex-start;
}

[data-mode=dark] .book-number {
  color: #a3bffa;
  background: rgba(163, 191, 250, 0.15);
}

.book-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #2d3748;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-mode=dark] .book-title {
  color: #e2e8f0;
}

.book-date {
  font-size: 0.8rem;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
}

[data-mode=dark] .book-date {
  color: #a0aec0;
}

.book-date i {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* 🎨 Swiper 커스텀 네비게이션 */
.swiper-button-next,
.swiper-button-prev {
  width: 56px;
  height: 56px;
  position: absolute;
  top: 50%;
  margin-top: 0;
  transform: translateY(-50%);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(237, 242, 255, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 18px 36px rgba(99, 102, 241, 0.18), 0 4px 12px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  z-index: 10;
}

.swiper-button-next {
  right: 18px;
}

.swiper-button-prev {
  left: 18px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  content: "";
  width: 18px;
  height: 18px;
  background-color: #4c51bf;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
  border-color: transparent;
  transform: translateY(-50%) scale(1.07);
  box-shadow: 0 22px 40px rgba(128, 90, 246, 0.32), 0 0 0 6px rgba(128, 90, 246, 0.12);
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  background-color: #f8fafc;
}

[data-mode=dark] .swiper-button-next,
[data-mode=dark] .swiper-button-prev {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.88) 0%, rgba(15, 23, 42, 0.82) 100%);
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.65), 0 0 0 1px rgba(129, 140, 248, 0.18);
}

[data-mode=dark] .swiper-button-next::after,
[data-mode=dark] .swiper-button-prev::after {
  background-color: #cbd5f5;
}

[data-mode=dark] .swiper-button-next:hover,
[data-mode=dark] .swiper-button-prev:hover {
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.95) 0%, rgba(129, 140, 248, 0.95) 100%);
  box-shadow: 0 26px 44px rgba(99, 102, 241, 0.45), 0 0 0 8px rgba(99, 102, 241, 0.22);
}

[data-mode=dark] .swiper-button-next:hover::after,
[data-mode=dark] .swiper-button-prev:hover::after {
  background-color: #f8fafc;
}

.swiper-button-prev::after {
  transform: rotate(180deg);
}

.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* 📱 반응형 */
@media (max-width: 768px) {
  .swiper-slide {
    width: 160px !important;
  }
  .book-card {
    height: 260px;
    padding: 1rem 0.75rem;
  }
  .book-title {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}
/* 조명 효과 */
.bookshelf-wrapper {
  box-shadow: inset 0 20px 40px rgba(255, 255, 255, 0.05), inset 0 -20px 40px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-mode=dark] .bookshelf-wrapper {
  box-shadow: inset 0 20px 40px rgba(255, 255, 255, 0.02), inset 0 -20px 40px rgba(0, 0, 0, 0.3), 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Keep every card reachable before enhancement or if the CDN is unavailable. */
.library-view .swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1.5rem 0;
}

.library-view .swiper:not(.swiper-initialized) .swiper-slide {
  flex-shrink: 0;
}

.library-view .swiper:not(.swiper-initialized) .swiper-button-next,
.library-view .swiper:not(.swiper-initialized) .swiper-button-prev {
  display: none;
}

.library-view :is(.book-card, .bookshelf-more, button):focus-visible {
  outline: 3px solid #667eea;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .library-view *,
  .library-view *::before,
  .library-view *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .library-view .book-card:hover {
    transform: none;
  }
}

/*# sourceMappingURL=library.css.map */