/* 커스텀 CSS */

/* 스무스 스크롤 */
html {
  scroll-behavior: smooth;
}

/* 라인 클램프 유틸리티 */
.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;
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 호버 효과 */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 그라데이션 텍스트 */
.gradient-text {
  background: linear-gradient(135deg, #7B3FF2 0%, #00A9CE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #7B3FF2;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1B3A7D;
}

/* 로딩 스피너 */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #7B3FF2;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 모달 배경 */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* 폼 스타일 */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #7B3FF2;
  box-shadow: 0 0 0 3px rgba(123, 63, 242, 0.1);
}

/* 버튼 호버 효과 */
.btn-primary {
  background: linear-gradient(135deg, #7B3FF2 0%, #00A9CE 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(123, 63, 242, 0.3);
}

/* 카드 호버 효과 */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 반응형 이미지 */
img {
  max-width: 100%;
  height: auto;
}

/* 섹션 패딩 */
section {
  position: relative;
}

/* 배경 패턴 */
.bg-pattern {
  background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.4"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

/* Quill 에디터 콘텐츠 스타일 */
.ql-editor {
  font-size: 16px;
  line-height: 1.8;
}

.ql-editor p {
  margin-bottom: 1em;
}

.ql-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ql-editor h1 {
  font-size: 2em;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.5em;
  color: #1B3A7D;
}

.ql-editor h2 {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.5em;
  color: #1B3A7D;
}

.ql-editor ul,
.ql-editor ol {
  margin: 1em 0;
  padding-left: 2em;
}

.ql-editor li {
  margin-bottom: 0.5em;
}

.ql-editor blockquote {
  border-left: 4px solid #00A9CE;
  padding-left: 1em;
  margin: 1em 0;
  color: #666;
  font-style: italic;
}

.ql-editor pre {
  background-color: #f5f5f5;
  padding: 1em;
  border-radius: 4px;
  overflow-x: auto;
}

.ql-editor a {
  color: #00A9CE;
  text-decoration: underline;
}

.ql-editor a:hover {
  color: #7B3FF2;
}

/* 프린트 스타일 */
@media print {
  header, footer, nav {
    display: none;
  }
}
