/* ============================================================
 * 주식회사 미라클먼트 (MIRACLEMENT Inc.)
 * 메인 스타일시트
 * ============================================================ */

:root {
  --background: #ffffff;
  --foreground: #1a1f36;
  --card: #ffffff;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --accent: #dbeafe;
  --accent-foreground: #1e40af;
  --border: #e2e8f0;
  --ring: #3b82f6;
  --radius: 0.75rem;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  background: var(--background);
  color: var(--foreground);
  margin: 0;
}

/* Pretendard Korean font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* Page transition animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-fade-in {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card component */
.mc-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.mc-card-shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.mc-card-shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Button base */
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.mc-btn-primary {
  background: var(--primary);
  color: white;
}

.mc-btn-primary:hover {
  background: #1d4ed8;
}

/* Input base */
.mc-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  background: var(--muted);
  transition: border-color 0.2s ease;
  font-size: 1rem;
}

.mc-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

/* Lucide icon size helpers (lucide.createIcons sets stroke-width=2 by default) */
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
}

/* Hide elements before lucide initializes */
i[data-lucide] {
  width: 1em;
  height: 1em;
}

/* Toast notification */
.mc-toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: white;
  color: #1a1f36;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
  font-weight: 500;
}

.mc-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mc-toast.success {
  border-left: 4px solid #10b981;
}

.mc-toast.error {
  border-left: 4px solid #ef4444;
}

/* Mobile menu */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

/* Dropdown */
.dropdown-menu {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.dropdown-wrapper:hover .dropdown-menu,
.dropdown-wrapper:focus-within .dropdown-menu {
  visibility: visible;
  opacity: 1;
}

/* Image placeholder for figma:asset replacements */
.image-placeholder {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-weight: 600;
  text-align: center;
  padding: 2rem;
  min-height: 200px;
  border-radius: 1rem;
}

/* FAQ accordion */
.faq-item {
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  margin-top: 1rem;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.3s ease;
}


/* === 핵심 가치 카드 hover 효과 (Tailwind CDN 백업) === */
.core-value-card {
  transition: all 0.3s ease !important;
}
.core-value-card:hover {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}


/* === 광고 서비스 카드 hover 효과 (Tailwind CDN 백업) === */
.ad-service-card {
  border: 2px solid transparent !important;
  transition: all 0.3s ease !important;
}
.ad-service-card:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}


/* === 플레이스 광고 카드 hover 효과 (Tailwind CDN 백업) === */
.place-card {
  transition: all 0.3s ease !important;
}
.place-card:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-2px);
}



/* === 강력한 부드러운 sticky 헤더 효과 === */
header.sticky {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background-color: rgba(255, 255, 255, 1) !important;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: 
    background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: transform, box-shadow, background-color;
}

header.sticky.header-scrolled {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 10px 30px -8px rgba(0, 0, 0, 0.15),
    0 4px 12px -4px rgba(59, 130, 246, 0.1) !important;
  border-bottom-color: rgba(59, 130, 246, 0.15);
}
