/**
 * TCI MoaMoa 커스텀 CSS
 * 
 * Tailwind CSS에 추가할 커스텀 스타일과 애니메이션을 정의합니다.
 * 
 * @package TCI_MoaMoa
 * @since 1.0.0
 */

/* 블롭 애니메이션 */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* 스크롤바 숨기기 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 모달 애니메이션 */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoom-in {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

.animate-in {
    animation: fade-in 0.2s ease-out, zoom-in 0.2s ease-out;
}

/* 블로그 스타일 */
.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;
}

/* Prose 스타일 (블로그 본문) */
.prose {
    color: #374151;
    max-width: 65ch;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.prose h2 {
    font-size: 1.875em;
}

.prose h3 {
    font-size: 1.5em;
}

.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose a {
    color: #f59e0b;
    text-decoration: underline;
}

.prose a:hover {
    color: #d97706;
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.5rem;
}

.prose blockquote {
    border-left: 4px solid #fbbf24;
    padding-left: 1em;
    margin: 1.5em 0;
    font-style: italic;
    color: #6b7280;
}

/* 페이지네이션 스타일 */
.tci-pagination-link a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #fef3c7;
    color: #92400e;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.tci-pagination-link a:hover {
    background-color: #fde68a;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 드롭다운 메뉴 스타일 */
#tci-features-dropdown {
    position: relative;
}

/* 드롭다운 메뉴와 버튼 사이의 간격을 채우는 가상 영역 */
#tci-features-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

/* 드롭다운 메뉴가 나타날 때까지 지연 */
#tci-features-dropdown > div {
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#tci-features-dropdown:hover > div {
    pointer-events: auto;
}

/* 드롭다운 메뉴 내부도 hover 유지 */
#tci-features-dropdown:hover > div,
#tci-features-dropdown > div:hover {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 모바일 메뉴 개선 */
#tci-mobile-menu a.tci-mobile-menu-link {
    transition: all 0.2s ease;
}

#tci-mobile-menu a.tci-mobile-menu-link:hover {
    background-color: #fef3c7;
    color: #92400e;
}

