@charset "UTF-8";

/* ===================================================
   1. 최상단 달언(Hero) 영역
   =================================================== */
.search-section { 
    background-image: linear-gradient(rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.7)), url('/image/images/main_bg_top.png');
    background-size: cover; background-position: 80% center; background-repeat: no-repeat;
    background-color: #0f172a; padding: 90px 0 80px; border-bottom: 1px solid #475569; 
    text-align: center; position: relative; overflow: hidden;
}
.container-front { position: relative; z-index: 10; }
.search-title { 
    font-weight: 900; font-size: 2.5rem; color: #f8fafc; margin-bottom: 12px; letter-spacing: -1px; 
    text-shadow: -1px -1px 0 #0f172a, 1px -1px 0 #0f172a, -1px 1px 0 #0f172a, 1px 1px 0 #0f172a, 0 4px 10px rgba(0, 0, 0, 0.6); 
}
.search-desc { font-weight: 500; font-size: 1.15rem; color: #cbd5e1; line-height: 1.5; text-shadow: -1px -1px 0 #0f172a, 1px -1px 0 #0f172a, -1px 1px 0 #0f172a, 1px 1px 0 #0f172a, 0 2px 5px rgba(0, 0, 0, 0.6); }

/* 달언 카드 */
.daleon-card { max-width: 650px; margin: 45px auto 0; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 24px; padding: 35px 40px 25px; position: relative; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); display: flex; flex-direction: column; align-items: center; text-align: center; }
.daleon-badge-wrapper { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); }
.daleon-badge { background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%); color: #ffffff; font-weight: 800; font-size: 0.85rem; padding: 8px 20px; border-radius: 20px; box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3); letter-spacing: -0.5px; }
.daleon-content { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.daleon-text { font-size: 1.15rem; font-weight: 700; color: #1e293b; line-height: 1.6; margin: 0; word-break: keep-all; }
.daleon-author { font-size: 0.95rem; color: #64748b; font-weight: 600; margin: 0; }

/* ===================================================
   2. 퀵 메뉴 (도구 모음 - 반응형 4열/5열 하이브리드)
   =================================================== */
.quick-menu-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); /* 💡 기본 모바일: 4열 */
    gap: 15px; 
    background: #ffffff; 
    padding: 20px; 
    border-radius: 16px; 
    border: 1px solid #e2e8f0; 
    width: 100%; 
}
.quick-menu-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; cursor: pointer; transition: 0.2s; }
.quick-menu-item:hover { transform: translateY(-3px); }
.quick-icon-box { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }

.quick-icon-img { width: 56px; height: 56px; object-fit: cover; border-radius: 16px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); display: block; margin: 0 auto; transition: 0.2s; }
.quick-menu-item:hover .quick-icon-img { box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.quick-menu-title { font-size: 0.8rem; font-weight: 700; color: #334155; text-align: center; word-break: keep-all; line-height: 1.2; }

/* 💡 PC 환경 (992px 이상): 5열 3행 완벽 밀도 세팅 */
@media (min-width: 992px) {
    .quick-menu-grid { 
        grid-template-columns: repeat(5, 1fr) !important; /* 💡 PC 전용: 5열로 변경 */
        gap: 20px 10px; 
        padding: 25px 20px; 
    }
    .quick-icon-img { 
        width: 62px !important; 
        height: 62px !important; 
        border-radius: 18px; 
    }
    .quick-menu-title { 
        font-size: 0.82rem; 
        margin-top: 4px; 
    }
}

.menu-expand-btn { background: #f8fafc; border: 1px solid #e2e8f0; color: #64748b; padding: 10px 0; border-radius: 12px; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: 0.2s; text-align: center; display: block; width: 100%; }
.menu-expand-btn:active { background: #e2e8f0; }

/* .bg-reward { background: #fffbeb; color: #f59e0b; border: 1px solid #fef3c7; }
.bg-shop { background: #fef2f2; color: #ef4444; border: 1px solid #fee2e2; }
.bg-tool { background: #f0fdf4; color: #22c55e; border: 1px solid #dcfce7; }
.bg-game { background: #eff6ff; color: #3b82f6; border: 1px solid #dbeafe; }
.bg-fortune { background: #f5f3ff; color: #8b5cf6; border: 1px solid #ede9fe; } */

.bg-reward { background: #ffffff; color: #f59e0b; border: 1px solid #ffffff; }
.bg-shop { background: #ffffff; color: #ef4444; border: 1px solid #ffffff; }
.bg-tool { background: #ffffff; color: #22c55e; border: 1px solid #ffffff; }
.bg-game { background: #ffffff; color: #3b82f6; border: 1px solid #ffffff; }
.bg-fortune { background: #ffffff; color: #8b5cf6; border: 1px solid #ffffff; }

/* 모달 전용 */
.modal-grid { grid-template-columns: repeat(5, 1fr) !important; padding: 15px !important; border: 1px solid #e2e8f0; background: #fff; border-radius: 12px; }
.modal-divider { display: flex; align-items: center; color: #475569; font-size: 0.95rem; font-weight: 800; margin: 25px 5px 10px; }
.modal-divider::after { content: ''; flex: 1; border-bottom: 1px solid #cbd5e1; margin-left: 15px; }

/* ===================================================
   3. 탭 & 커뮤니티, 컬처 공통
   =================================================== */
/* 커뮤니티 탭 */
.community-tab-wrapper { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; }

/* 💡 height: 330px; 삭제 -> auto 로 변경하여 게시글 높이에 딱 맞춤 */
.community-tab-content { height: auto; } 

.naver-style-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-bottom: 1px solid #e2e8f0; padding-bottom: 0; margin-bottom: 0; gap: 5px; }
.naver-style-tabs::-webkit-scrollbar { display: none; }
.naver-style-tabs .nav-item { flex: 0 0 auto; }
.naver-style-tabs .nav-link { border: none; color: #64748b !important; font-weight: 600; padding: 12px 18px; font-size: 0.95rem; position: relative; transition: color 0.2s; background: transparent !important; }
.naver-style-tabs .nav-link:hover { color: #334155 !important; }
.naver-style-tabs .nav-link.active { color: #0f172a !important; font-weight: 800; background: transparent !important; }
.naver-style-tabs .nav-link.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: #0f172a !important; }

/* 컬처(다크) 탭 */
.culture-tab-wrapper { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border-radius: 16px; overflow: hidden; border: 1px solid #334155; position: relative; }
.culture-tabs { border-bottom: 1px solid rgba(255,255,255,0.1); gap: 0; }
.culture-tabs .nav-link { border: none; color: #64748b; font-weight: 600; padding: 12px 0; margin: 0 15px; font-size: 0.95rem; position: relative; border-radius: 0; }
.culture-tabs .nav-link:hover { color: #cbd5e1; }
.culture-tabs .nav-link.active { color: #f8fafc; font-weight: 800; background: transparent; }
.culture-tabs .nav-link.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: #c084fc; }
.culture-tab-content, #cultureTabContent { min-height: 380px; overflow: hidden; }
.boxoffice-scroll-area { max-height: 320px; overflow-y: auto; padding-right: 4px; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.boxoffice-scroll-area::-webkit-scrollbar { width: 4px; }
.boxoffice-scroll-area::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }

.shop-override-wrapper .daltip-shop-main-wrap { margin-bottom: 0 !important; }
.shop-override-wrapper .shop-content-box { padding: 15px !important; margin-top: 10px !important; border-radius: 16px; }
.shop-override-wrapper .shop-swipe-wrapper { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; overflow: hidden !important; padding: 0 !important; }
.shop-override-wrapper .shop-hot-card { width: 100% !important; flex: none !important; border-radius: 12px; }
.shop-override-wrapper .shop-hot-img-wrap { height: 110px !important; padding: 10px !important; }

/* 💡 5개 게시물 고정 틀 & PC 탭 화살표 CSS */
.post-list-fixed-box { height: 195px; overflow: hidden; display: block; }
.post-list-fixed-box li[style*="min-height: 240px"] { min-height: 100% !important; height: 195px !important; }
	          
/* PC 전용 탭 스크롤 화살표 버튼 */
.tab-scroll-btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 30px; height: 30px; z-index: 10;
	background: rgba(255, 255, 255, 0.95); border: 1px solid #e2e8f0;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	cursor: pointer; color: #64748b;
}
.tab-scroll-btn:hover { color: #0f172a; border-color: #cbd5e1; }
.tab-scroll-btn.left { left: 5px; }
.tab-scroll-btn.right { right: 5px; }
	          
/* 탭 컨테이너 내부 여백(화살표에 글씨 안 가려지게) */
.naver-style-tabs-wrapper { padding: 0; }
	
@media (min-width: 768px) {
	.naver-style-tabs-wrapper { padding: 0 35px; }
}
	            
/* 💡 [추가] 모바일 전용 풀사이즈 확보 (로봇 이미지 안 잘림) */
@media (max-width: 991.98px) {
	.ai-banner-card {
		min-height: 380px !important; /* 모바일에서 시원하게 보이도록 높이 강제 확장 */
	}
}

/* ===================================================
   4. 반응형 미디어 쿼리 (분기 최적화)
   =================================================== */
.mo-br { display: none; }

@media (min-width: 992px) {
    /* PC: 컬처 탭 강제 스크롤 해제 및 신간 확장 UI */
    .culture-tab-content, #cultureTabContent { height: auto !important; min-height: none !important; max-height: none !important; padding-bottom: 30px !important; }
    .boxoffice-scroll-area { max-height: none !important; overflow-y: visible !important; }
    .book-content-wrapper { flex-direction: column !important; align-items: center; text-align: center; padding-top: 15px; }
    .book-cover-img { width: 160px !important; height: 230px !important; margin-bottom: 20px !important; }
    .book-text-area { width: 100%; align-items: center; text-align: center; }
    .book-title-el { font-size: 1.15rem; width: 100%; text-align: center; }
    .book-author-el { width: 100%; text-align: center; }
    .night-text-desc { text-align: center; }
}

@media (max-width: 991px) {
    .mo-br { display: block; }
    .search-section { padding: 60px 0 50px; }
    .search-title { font-size: 1.9rem; }
    .search-desc { font-size: 1.05rem; }
    .daleon-card { margin: 40px 15px 0; padding: 30px 20px 20px; border-radius: 20px; }
    .modal-grid { grid-template-columns: repeat(4, 1fr) !important; padding: 10px !important; }
    
    /* 모바일: 높이 제한 해제 및 레이아웃 조정 */
    .community-tab-wrapper { border-radius: 0; border-left: none; border-right: none; border-top: 1px solid #e2e8f0; }
    .community-tab-content { padding: 15px 5px !important; height: auto !important; }
    #cultureTabContent, .culture-tab-wrapper .tab-content { height: auto !important; min-height: 100% !important; max-height: none !important; overflow: visible !important; padding-bottom: 40px !important; }
    .boxoffice-scroll-area { height: auto !important; max-height: none !important; overflow: visible !important; }
    
    #allMenuModal.show { display: flex !important; align-items: center; justify-content: center; }
    #allMenuModal .modal-dialog { margin: 0 auto !important; width: 90% !important; height: 85vh !important; max-height: 85vh !important; }
    #allMenuModal .modal-content { height: 100%; border-radius: 20px !important; }
    #allMenuModal .modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
}

/* ===================================================
   [최종] 1. 달팁 핫딜 상점 (PC 4열 / 모바일 스와이프)
   =================================================== */
.shop-content-box { background-color: #ffffff; border-radius: 20px; padding: 20px; border: 1px solid #f1f5f9; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.shop-swipe-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.shop-hot-card { background: #ffffff; border-radius: 16px; border: 1px solid #e2e8f0; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; display: flex; flex-direction: column; overflow: hidden; }
.shop-hot-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: #cbd5e1; }
/* .shop-hot-img-wrap { width: 100%; height: 150px; background-color: #f8fafc; display: flex; align-items: center; justify-content: center; padding: 15px; } */
.shop-hot-img-wrap { width: 100%; height: 150px; background-color: #ffffff; display: flex; align-items: center; justify-content: center; padding: 15px; }
.shop-hot-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (max-width: 991px) {
    .shop-swipe-wrapper { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
    .shop-swipe-wrapper::-webkit-scrollbar { display: none; }
    .shop-hot-card { flex: 0 0 160px; scroll-snap-align: start; }
}

/* ===================================================
   [최종] 2. 달팁 큐레이션 (Swiper.js 전용)
   =================================================== */
.curation-magazine-container { background-color: #ffffff; border-radius: 16px; padding: 10px 0 20px 0; position: relative; overflow: hidden; }
.swiper.curation-cards-swiper { width: 100%; padding: 20px 10px 40px 10px; }

/* 8단 레이아웃(약 800px)에 맞춘 카드 사이즈 */
.swiper-slide.curation-magazine-card { width: 230px; height: 320px; border-radius: 16px; background-size: cover; background-position: center; background-color: #cbd5e1; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); position: relative; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: block; }
.swiper-slide.curation-magazine-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); }

.curation-card-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 40%, transparent 60%); padding: 20px 15px 15px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none !important; }
.curation-card-title { color: #fff; font-size: 1.1rem; font-weight: 800; line-height: 1.4; margin-bottom: 8px; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.9); }
.curation-card-summary { color: #cbd5e1; font-size: 0.8rem; line-height: 1.4; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.9); }

.curation-cards-swiper .swiper-pagination-bullet { background-color: #cbd5e1; opacity: 0.6; transition: all 0.3s ease; }
.curation-cards-swiper .swiper-pagination-bullet-active { background-color: #f59e0b; opacity: 1; width: 20px; border-radius: 4px; }
.full-moon-icon { color: #fde047 !important; text-shadow: 0 0 12px rgba(245, 158, 11, 0.8); font-size: 1.8rem; vertical-align: middle; }

/* ===================================================
   달이 뜨는 밤 (다크 3단 나열 박스)
   =================================================== */
.night-curation-wrapper { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border-radius: 20px; padding: 30px; box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15); position: relative; overflow: hidden; }
.night-curation-wrapper::before { content: ''; position: absolute; top: -60px; left: -60px; width: 250px; height: 250px; background: radial-gradient(circle, rgba(253, 186, 116, 0.15) 0%, rgba(253, 186, 116, 0) 70%); border-radius: 50%; z-index: 0; pointer-events: none; }
.night-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 16px; padding: 20px; height: 100%; display: flex; flex-direction: column; transition: 0.3s; position: relative; z-index: 1; }
.night-card:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(253, 186, 116, 0.3); transform: translateY(-3px); }
.night-card-title { font-size: 0.95rem; font-weight: 800; display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }

/* ===================================================
   3. 달팁 명예의 전당 & 박스오피스 스크롤 (최종 수정본)
   =================================================== */
/* 💡 내부 패딩을 15px 20px로 조절하여 상하 공간 확보 */
.hof-card { background: #1e293b; border-radius: 16px; padding: 15px 20px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border: 1px solid #334155; height: 100%; position: relative; }
.hof-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 12px; margin-bottom: 15px; }
.hof-title { font-weight: 800; color: #f8fafc; font-size: 1.1rem; margin: 0; }
.hof-list { list-style: none; padding: 0; margin: 0; }
.hof-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.hof-item:last-child { border-bottom: none; }
.hof-rank { width: 40px; text-align: center; display: flex; justify-content: center; align-items: center; }
.hof-moon { font-size: 1.4rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.hof-star { font-size: 0.95rem; color: #ffffff; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.hof-name { flex-grow: 1; color: #cbd5e1; font-size: 0.9rem; margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.hof-score { color: #38bdf8; font-weight: 800; font-size: 0.95rem; text-align: right; }

/* 명예의 전당 스와이프 복구 */
.hof-swipe-container { position: relative; overflow: hidden; width: 100%; }
.hof-swipe-wrapper { 
    display: flex; 
    scroll-behavior: smooth; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    -webkit-overflow-scrolling: touch; 
    gap: 20px; /* 💡 gap: 0을 20px로 수정! (스와이프 시 겹침 방지) */
}
.hof-swipe-wrapper::-webkit-scrollbar { display: none; }
.hof-swipe-item { flex: 0 0 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; }

/* 💡 클릭 가능함을 직관적으로 보여주기 위해 hover 애니메이션(transition) 추가 */
.hof-next-hint { display: block; text-align: right; font-size: 0.8rem; color: #94a3b8; margin-top: 15px; cursor: pointer; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,0.05); transition: 0.2s; }
.hof-next-hint:hover { opacity: 0.8; }
.hof-next-hint span { color: #fbbf24; font-weight: 700; }

.btn-challenge { color: #ffd700; border: 1px solid #ffd700; background-color: rgba(255, 215, 0, 0.1); border-radius: 50rem; transition: all 0.2s ease-in-out; }
.btn-challenge:hover { background-color: #ffd700; color: #1e293b; box-shadow: 0 0 8px rgba(255, 215, 0, 0.6); }

/* 박스오피스 10개 스크롤 영역 복구 */
.boxoffice-scroll-area { max-height: 300px; overflow-y: auto; padding-right: 4px; }
.boxoffice-scroll-area::-webkit-scrollbar { width: 4px; }
.boxoffice-scroll-area::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }

/* ===================================================
   4. AI 뉴스 브리핑 (달달한 팁 사이즈 동기화)
   =================================================== */
.ai-magazine-container { background-color: transparent; position: relative; overflow: hidden; }
.swiper.ai-cards-swiper { width: 100%; padding: 10px 5px 30px 5px; }

/* 💡 카드 규격을 큐레이션(달달한 팁)과 100% 동일하게 230x320으로 동기화 */
.swiper-slide.ai-magazine-card { width: 230px; height: 320px; border-radius: 16px; background-size: cover; background-position: center; background-color: #cbd5e1; box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); overflow: hidden; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; display: block; }
.swiper-slide.ai-magazine-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); }

.ai-card-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 60%, transparent 100%); padding: 20px 15px 15px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none !important; }
.ai-card-badge { display: inline-block; background: #3b82f6; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; width: fit-content; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.ai-card-title { color: #fff; font-size: 1.1rem; font-weight: 800; line-height: 1.4; margin-bottom: 8px; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.9); }
.ai-card-summary { color: #cbd5e1; font-size: 0.8rem; line-height: 1.4; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.9); }

.ai-cards-swiper .swiper-pagination-bullet { background-color: #cbd5e1; opacity: 0.6; transition: all 0.3s ease; }
.ai-cards-swiper .swiper-pagination-bullet-active { background-color: #3b82f6; opacity: 1; width: 20px; border-radius: 4px; }