/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Pretendard 폰트 적용 */
html,
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Text Selection */
::selection {
  background-color: #2563eb;
  /* blue-600 */
  color: #ffffff;
}

.dark ::selection {
  background-color: #3b82f6;
  /* blue-500 */
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  /* slate-300 */
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
  /* slate-400 */
}

/* Global Background Pattern */
body {
  background-color: #f8fafc;
  /* brand-50 fallback/bg */
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
  background-attachment: fixed !important;
}

/* Scrollbar Hide Utility */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* DaisyUI Carousel Styles (CSS scroll-snap) */
.carousel {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* DaisyUI btn styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1.25rem;
  backdrop-filter: blur(8px);
}

.btn-circle:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Swiper Pagination Custom Styles (used on home page) */
.swiper-pagination-bullet {
  width: 6px !important;
  height: 6px !important;
  margin: 0 4px !important;
  border-radius: 99px !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  width: 8px !important;
  height: 8px !important;
  background: #3b82f6 !important;
}

/* ShineBorder Effect */
@keyframes shine {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ShineBorder Effect - Refined Border Only */
.shine-border-container {
  position: relative;
  z-index: 0;
  border-radius: var(--radius, 1rem);
  overflow: hidden;
  padding: 2px;
  /* Border thickness */
}

.shine-border-container::before {
  content: "";
  position: absolute;
  inset: -150%;
  z-index: -1;
  background: conic-gradient(from 0deg,
      transparent 0,
      #a07cfe 10%,
      #fe8fb5 20%,
      #ffbe7b 30%,
      transparent 40%,
      transparent 100%);
  animation: shine 8s linear infinite;
}

.shine-border-container::after {
  content: "";
  position: absolute;
  inset: 2px;
  /* Same as padding/border thickness */
  background: white;
  /* Matches content bg for masking effect in light theme */
  border-radius: calc(var(--radius, 1rem) - 2px);
  z-index: -1;
}

.dark .shine-border-container::after {
  background: #1f2937;
  /* Matches gray-800 dark theme bg */
}

.shine-border-content {
  position: relative;
  z-index: 10;
  background: transparent !important;
  /* Let the container's after pseudo-element provide the bg */
  border-radius: inherit;
  height: 100%;
  width: 100%;
}

/* Dark Theme Background Pattern */
.dark body {
  background-color: #0f172a !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
  background-attachment: fixed !important;
}