/* ============================================
   K-UNIV 폰트 설정
   - Pretendard: 한글/영문 메인 폰트 (가독성 최적화)
   - Noto Sans 다국어: 일본어/중국어/태국어 등 fallback
   - Tossface: 이모지 폰트
   ============================================ */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');
@import url('https://cdn.jsdelivr.net/gh/toss/tossface/dist/tossface.css');

/* ============================================
   K-UNIV 공통 스타일
   - Tailwind CSS 보완용 커스텀 스타일
   ============================================ */

/* 기본 폰트 설정 - body에 선언하여 아이콘 폰트(Font Awesome 등) 간섭 방지 */
body {
    font-family: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans Thai', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif, 'Tossface';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    letter-spacing: -0.01em;
    word-break: keep-all;
}

/* 한글 폰트 (html lang="ko" 일 때) */
html[lang="ko"] body,
html:lang(ko) body {
    font-family: 'Pretendard', 'Inter', sans-serif;
}

/* 일본어 */
html[lang="ja"] body,
html:lang(ja) body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
}

/* 중국어 */
html[lang="zh"] body,
html:lang(zh) body {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
}

/* 제목용 폰트 가중치 강화 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* 구글 번역 위젯 기본 바 숨김 */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
body > .skiptranslate {
    display: none !important;
}
body {
    top: 0 !important;
}

/* 구글 번역 적용 시 폰트 깨짐 방지 */
.goog-te-combo {
    font-family: 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', sans-serif !important;
}

/* 히어로 배너 슬라이드 애니메이션 */
.hero-slide {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    inset: 0;
}
.hero-slide.active {
    opacity: 1;
}

/* 퀵메뉴 아이콘 호버 효과 */
.quick-menu-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-menu-item:hover {
    transform: translateY(-4px);
}

/* 카드 호버 효과 */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 스크롤 시 헤더 그림자 강화 */
header.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 메가메뉴 애니메이션 */
.mega-menu-trigger:hover .mega-menu-panel {
    display: block !important;
    animation: megaFadeIn 0.2s ease-out;
}

@keyframes megaFadeIn {
    from { opacity: 0; transform: translate(-50%, -6px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* 드롭다운 메뉴 애니메이션 (기존 호환) */
.group:hover .group-hover\:block {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 섹션 타이틀 밑줄 장식 */
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #00A896;
    margin-top: 8px;
}
.section-title-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* 스크롤 탑 버튼 */
.scroll-top-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* 모바일 메뉴 애니메이션 */
#mobile_menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile_menu.open {
    max-height: 2000px;
    display: block;
}

/* 모바일 서브메뉴 애니메이션 */
.mobile-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.mobile-sub.open {
    max-height: 1000px;
    display: block;
}

/* 배너 인디케이터 */
.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.banner-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* 광고 배너 영역 */
.ad-banner {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.ad-banner::after {
    content: 'AD';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* 커뮤니티 꿀팁 카드 */
.tip-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 평점 별 표시 */
.star-rating {
    color: #FFB800;
}