@theme {
  --color-youtube-red: #ff0000;
  --color-youtube-dark: #0f0f0f;
  --color-youtube-zinc: #272727;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

@layer base {
  body {
    @apply bg-white dark:bg-[#0f0f0f] text-zinc-900 dark:text-white antialiased;
  }
}

@layer utilities {
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }
  
  .no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Custom Carousel Animations */
.carousel-scroll {
  scroll-behavior: smooth;
}

/* Sidebar Transition */
#sidebar {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effects */
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

@layer base {
  body {
    @apply bg-white dark:bg-[#0f0f0f] text-zinc-900 dark:text-white antialiased;
  }
}
@layer utilities {
  .no-scrollbar::-webkit-scrollbar { display: none; }
  .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
  .line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
#sidebar { transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-scroll { scroll-behavior: smooth; }
 :root {
   --bd-shell-header-height: 56px;
   --bd-shell-guide-width: 240px;
 }

/* 레이아웃 헤더/사이드바 영역 확보 */
.main-page {
  padding-right: 16px;
  padding-bottom: 40px;
  min-height: 100vh;
}

.main-tag-heading {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
  color: #0f0f0f;
}

/* 카드 그리드 */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shelf-card {
  min-width: 0;
}

.shelf-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.shelf-card__thumb {
  position: relative;
  width: 100%;
  padding-top: calc(100% + 8px);
  border-radius: 8px;
}

.shelf-card__thumb-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shelf-card__badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  z-index: 4;
}

.shelf-card__badge svg {
  width: 12px;
  height: 12px;
}

.shelf-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 14px;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 4;
  border-radius: 8px;
}

.shelf-card a:hover .shelf-card__overlay {
  opacity: 1;
}

.shelf-card__stacks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 8px;
}

.shelf-card__stack1,
.shelf-card__stack2 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
}

.shelf-card__stack2 {
  top: -8px;
  left: 6%;
  right: 6%;
  background: #d5d5d5;
  z-index: 1;
}

.shelf-card__stack1 {
  top: -4px;
  left: 3%;
  right: 3%;
  background: #e5e5e5;
  z-index: 2;
}

.shelf-card__thumb-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 8px;
  z-index: 3;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

.shelf-card__meta {
  margin-top: 10px;
}

.shelf-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shelf-card__desc {
  margin: 4px 0 0;
  font-size: 12px;
  color: #606060;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 반응형 */
@media (max-width: 1200px) {
  .shelf-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .main-page {
    padding-left: 16px;
    padding-top: 0;
  }
  .shelf-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .main-page {
    padding-left: 8px;
    padding-right: 8px;
  }
  .shelf-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .main-page {
    padding-left: 4px;
    padding-right: 4px;
  }
  .shelf-grid {
    gap: 8px;
  }
  .shelf-card__title { font-size: 13px; }
  .shelf-card__desc { font-size: 11px; }
}

