/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out both;
}

.animate-delay-150 { animation-delay: 0.15s; }
.animate-delay-350 { animation-delay: 0.35s; }
.animate-delay-450 { animation-delay: 0.45s; }
.animate-delay-1000 { animation-delay: 1s; }

/* App Badge */
.app-badge-link {
  display: inline-flex;
  transition: transform 0.2s, opacity 0.2s;
}

.app-badge-link img {
  background: white;
  border-radius: 8px;
  padding: 2px;
}

.app-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Widget Card */
.widget-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 6개 아이템 기준 최소 높이: 헤더(2.5rem) + 아이템(2.375rem*6) + 패딩(2.5rem) = 19.25rem */
.widget-card[data-notice-card],
.widget-card[data-news-preview-card],
.widget-card[data-community-card] {
  min-height: 19.25rem;
}

.widget-card[data-planner-card] {
  min-height: 220px;
}

/* Skeleton Loading - CLS 방지 */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.skeleton-line {
  height: 1.3125rem;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 0.25rem;
}

.skeleton-line--short { width: 60%; }
.skeleton-line--medium { width: 80%; }
.skeleton-line--full { width: 100%; }

/* Planner Tabs */
.planner-tab {
  flex: 1;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
}

.planner-tab:hover { color: #475569; }

.planner-tab.active {
  background: white;
  color: #2563eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Planner Task */
.planner-task {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.planner-task:hover {
  border-color: #93c5fd;
  background: white;
}

.planner-task--canceled {
  background: #fef2f2;
  border-color: #fecaca;
  opacity: 0.7;
}

.planner-checkbox {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid #cbd5e1;
  border-radius: 0.25rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
  background: white;
}

.planner-checkbox:checked {
  background: #3b82f6;
  border-color: #3b82f6;
}

.planner-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  width: 5px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.planner-progress-track {
  height: 0.375rem;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.375rem;
}

.planner-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.planner-category-badge {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #2563eb;
  white-space: nowrap;
}

/* Widget List Items */
.widget-card > div:first-child {
  min-height: 1.75rem;
  margin-bottom: 0.75rem;
}

.widget-card ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.widget-card ul li {
  display: flex;
  align-items: center;
  height: 2rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  box-sizing: content-box;
}

.widget-card ul li:last-child {
  border-bottom: none;
}

.widget-card ul li:first-child { padding-top: 0; height: calc(2rem - 0.375rem); }
.widget-card ul li:last-child { padding-bottom: 0; height: calc(2rem - 0.375rem); }
.widget-card ul li:first-child:last-child { height: calc(2rem - 0.75rem); }

.widget-card ul li a,
.widget-card ul li button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  min-height: 1.5rem;
  line-height: 1.5;
}

.widget-card ul li a:hover .flex-1 span,
.widget-card ul li button:hover .flex-1 span {
  color: #2563eb;
}

.widget-card ul li .flex-1 > span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.5;
  transition: color 0.2s;
}

.widget-card ul li .flex-1 {
  overflow: hidden;
}

.widget-card ul li .flex-1 .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-card ul li .comment-count {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-left: 0.25rem;
  white-space: nowrap;
}

/* 날짜/카테고리 영역 */
.widget-card ul li a > span:last-child,
.widget-card ul li button > span:last-child {
  font-size: 0.75rem;
  color: #9ca3af;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Practice service sections (from sandbox/Practice) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-200 {
  transition-delay: 200ms;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.main_banner-kit {
  --main_banner_color_primary: #202124;
  --main_banner_color_secondary: #54595f;
  --main_banner_color_text: #7a7a7a;
  --main_banner_color_589d31c: #007bff;
  --main_banner_color_4d4f723: #008cff;
  --main_banner_color_33d2116: #00c85f;
  --main_banner_color_163db5c: #f9fafc;
  --main_banner_color_333e254: #f1f3f9;
  --main_banner_color_2cb25a1: #e6e8eb;
  --main_banner_color_0bc68a2: #95999c;
  --main_banner_color_4b4f851: #71767a;
  --main_banner_color_826ae96: #3f4247;
  --main_banner_typography_4c0ea8d_font_size: 16px;
  --main_banner_typography_4c0ea8d_line_height: 28px;
  --main_banner_typography_4c0ea8d_letter_spacing: -0.5px;
  --main_banner_typography_451d163_font_size: 18px;
  --main_banner_typography_451d163_font_weight: 400;
  --main_banner_typography_451d163_line_height: 28px;
  --main_banner_typography_451d163_letter_spacing: -0.5px;
}

:where(.elementor-widget-heading .elementor-heading-title) {
  color: var(--main_banner_color_primary);
}

.elementor-heading-title {
  padding: 0;
  margin: 0;
}

:where(.elementor-heading-title) {
  line-height: 1;
}

.elementor *,
.elementor :after,
.elementor :before {
  box-sizing: border-box;
}

.elementor-element {
  --widgets-spacing: 0px 0px;
}

.elementor-element,
.elementor-lightbox {
  --swiper-theme-color: #000;
  --swiper-navigation-size: 44px;
  --swiper-pagination-bullet-size: 6px;
  --swiper-pagination-bullet-horizontal-gap: 6px;
}

.elementor-element {
  --flex-direction: initial;
  --flex-wrap: initial;
  --justify-content: initial;
  --align-items: initial;
  --align-content: initial;
  --gap: initial;
  --flex-basis: initial;
  --flex-grow: initial;
  --flex-shrink: initial;
  --order: initial;
  --align-self: initial;
  flex-basis: var(--flex-basis);
  flex-grow: var(--flex-grow);
  flex-shrink: var(--flex-shrink);
  order: var(--order);
  align-self: var(--align-self);
}

.elementor-61153 .elementor-element.elementor-element-ccea0c3 .elementor-heading-title {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.5px;
}

.practice-product-card {
  border-radius: 8px;
  overflow: hidden;
  transition-property: background, border, border-radius, box-shadow, transform;
  transition-duration: 0.3s, 0.3s, 0.3s, 0.3s, 0.4s;
  padding: 24px;
  align-items: flex-start;
  background-color: transparent;
}

@media (min-width: 768px) {
  .practice-product-card {
    padding: 40px;
  }
}

.practice-product-card--output {
  background-color: transparent;
}

.practice-product-card--suzette {
  background-color: transparent;
}

.practice-product-card--baekji {
  background-color: transparent;
}

.practice-product-card--planner {
  background-color: transparent;
}

.practice-product-card--study {
  background-color: transparent;
}

.practice-product-card--interview {
  background-color: transparent;
}

.practice-product-section--output {
  background-color: #e5f4ff;
}

.practice-product-section--suzette {
  background-color: #f1eeff;
}

.practice-product-section--baekji {
  background-color: #eafcf2;
}

.practice-product-section--planner {
  background-color: #e6f9fc;
}

.practice-product-section--study {
  background-color: #eef2ff;
}

.practice-product-section--interview {
  background-color: #fff7ed;
}

.practice-product-content {
  display: flex;
  flex-direction: column;
}

.practice-product-content > .elementor-heading-title + .elementor-element {
  margin-top: 12px;
}

.practice-product-content > .elementor-element + * {
  margin-top: 24px;
}

.common-footer-mount {
  min-height: 180px;
}

.gtm-noscript {
  display: none;
  visibility: hidden;
}

.draggable-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 80px;
  cursor: grab;
  user-select: none;
}

/* Shiny Text Animation */
.shiny-text {
  background: linear-gradient(90deg, #2563eb 20%, #60a5fa 40%, #bfdbfe 50%, #60a5fa 60%, #2563eb 80%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
  font-weight: 900;
}

@keyframes shine {
  to { background-position: 200% center; }
}
