@charset "UTF-8";

.search-box{
	position: relative; 
	display:flex;
	flex-direction: column;
	gap: 10px;
}

.search-box > .search-terms {
	flex-direction: column;
	gap: 30px;
}

#detail-toggle-button {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    padding: 6px 15px;
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    z-index: 10;
}

#detail-toggle-button:hover {
    background-color: #fff;
    color: #333;
}

.search-input{
	max-height: 0;
	margin-top:10px;
	overflow: hidden;
	opacity: 0;
	display: flex;
	border-top: 2px solid #d1d1d1;
	padding-top: 0; 
	padding-bottom: 0; 
	flex-wrap: wrap; 
	gap: 20px; 
	transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding-top 0.4s ease-in-out, padding-bottom 0.4s ease-in-out;
}

.search-input.expanded {
	display: flex; 
	max-height: 500px; 
	opacity: 1;
	padding-top: 20px; 
	padding-bottom: 20px;
}

.searchInput{
	flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
}
.clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #9ca3af;
    transition: color 0.2s;
}
.clear-btn.hidden{
	display: none;
}
.clear-btn:hover {
    color: #4b5563;
}

/* 전체 감싸는 요소 → 드롭다운 위치의 기준점 */
.search-input-wrapper {
    position: relative; 
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
}

.search-label {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 6px;
}

/* input + clear 버튼 컨테이너 */
.searchInput-area {
	display: flex;
	align-items: center;
	border: 1.5px solid #d1d5db;
	border-radius: 8px;
	padding: 6px 15px;
	transition: border-color 0.2s;
	background-color: white;
}
.search-input-area:focus-within {
    border-color: #3b82f6; /* 포커스 시 파란색 강조 */
}

.main-container {
    width: 100%;
    max-width: 1280px;
    margin-top: 32px;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
    white-space: nowrap;
}

.tab-buttons > a {
	border: solid 1px #333333; 
	display: block; 
	width: 100%; 
	text-align: center; 
	padding: 10px 0; 
	border-right: 0; 
	border-radius: 15px 15px 0 0;
}

.tab-buttons > a:last-of-type{ border-right: solid 1px; }

.tab-buttons > a.active { background-color: #223f81; }

.tab-buttons > a > span { 
	font-size: 18px; 
	position: relative; 
}

.tab-buttons > a.active > span { 
	color: #ffffff; 
	font-weight: 700; 
}

.tab-content-wrapper {
    position: relative;
    min-height: 250px; 
}

.tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    
    visibility: hidden;
    opacity: 0;
    transition: opacity 300ms, visibility 300ms;
    pointer-events: none; 
}

.tab-content.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.carousel-container {
    margin-left: auto;
    margin-right: auto;
    padding-top: 16px;
    padding-bottom: 16px;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 8px; 
}
@media (min-width: 768px) {
    .slider-wrapper {
         gap: 16px;
    }
}
      
.card-slider {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px;
    width: 100%;
    gap: 16px;
    flex-grow: 1;
}

@media (min-width: 768px) {
    .card-slider {
        gap: 24px;
    }
}

.card-slider::-webkit-scrollbar {
    display: none;
}

.card-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.card {
    flex-shrink: 0;
    width: 256px;
    height: 200px;
    scroll-snap-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: transform 300ms, box-shadow 300ms;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 300ms;
}
.card:hover .overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.card .thumb-box {position:relative;float:left;width:100%;height:100%;border-radius:15px;}
.card .thumb-box img {width:100%;height:100%;left:0;top:0;transform:inherit;object-fit:cover;}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    overflow: hidden;
    display:-webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
@media (min-width: 768px) {
    .card-title {
        font-size: 1.3rem;
    }
}

.card-keywords {
    font-size: 0.875rem;
    font-weight: 300;
    color: rgba(229, 231, 235, 1);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}
.meta-item {
    display: flex;
    align-items: center;
}
.meta-icon {
    height: 16px;
    width: 16px;
    margin-right: 4px;
    color: rgba(229, 231, 235, 1);
}
.none-data{
	height:200px;
}

.scroll-button {
    z-index: 10;
    padding: 8px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.9); 
    transition: background-color 300ms, box-shadow 300ms;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
    flex-shrink: 0; 
}

.scroll-button:hover {
    background-color: white;
}

.arrow-icon {
    height: 24px;
    width: 24px;
    color: rgba(55, 65, 81, 1);
}

.scroll-button { display: none; }
@media (min-width: 768px) {
    .scroll-button { display: block; }
}
.scroll-button.left { left: 0; }
.scroll-button.right { right: 0; }

 /* 드롭다운 목록을 감싸는 컨테이너 */
.dropdown-container {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
     
    width: 100%;                 /* w-full */
    margin-top: 0.5rem;          /* mt-2 (8px) */
    background-color: #ffffff;   /* bg-white */
    border: 1px solid #e5e7eb;   /* border + border-gray-200 */
    border-radius: 0.75rem;      /* rounded-xl ≈ 12px */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    overflow: hidden;            /* overflow-hidden */
}

.dropdown-container.hidden{
    display: none;               /* hidden */
	
}
        
/* 자동완성 드롭다운 목록 */
.suggestion-dropdown {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    list-style: none;
    padding: 18px;
    margin: 0;
    overflow: hidden;
}

/* 리스트 공통 스타일 */
.suggestion-item {
    padding: 12px;                  /* p-3 */
    display: flex;                  /* flex */
    justify-content: space-between; /* justify-between */
    align-items: center;            /* items-center */
    cursor: pointer;                /* cursor-pointer */
    transition: background-color 0.15s ease, border-left 0.15s ease; /* transition-all-fast */
}

/* Hover 시 스타일 */
.suggestion-item:hover {
    background-color: #eef2ff;     /* hover:bg-indigo-50 */
    border-left: 4px solid #c7d2fe; /* hover:border-l-4 + hover:border-indigo-300 */
}

/* 자동으로 첫 번째 값에 강조할 때 */
.suggestion-active {
    background-color: #eef2ff;      /* bg-indigo-50 */
    border-left: 4px solid #4f46e5; /* border-indigo-600 */
}

/* 왼쪽 텍스트 */
.suggestion-item .left {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #374151; /* text-gray-700 */
}

/* 오른쪽 정보 (키워드 등) */
.suggestion-item .right {
    display: flex;
    align-items: center;
    font-size: 12px; /* text-xs */
    color: #9ca3af;  /* text-gray-400 */
}

/* 키워드 뱃지 스타일 */
.keyword-badge {
    display: inline-block;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 500;
    background-color: #f3f4f6; /* bg-gray-100 */
    color: #6b7280;            /* text-gray-500 */
    padding: 2px 8px;          /* px-2 py-0.5 */
    border-radius: 6px;
}

.suggestion-info {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #1f2937;
}

.suggestion-text {
    margin-right: 10px;
}

/* 검색 결과 없을 때 li 스타일 */
.no-result-item {
    padding: 16px;               /* p-4 */
    text-align: center;          /* text-center */
    font-size: 14px;
    color: #6b7280;              /* text-gray-500 */
    line-height: 1.5;
}

/* 강조되는 검색어 부분 */
.no-result-query {
    font-weight: 600;            /* font-semibold */
    color: #374151;              /* text-gray-700 */
}

/* 텍스트 하이라이팅 */
.highlight {
    font-weight: 700;
    color: #007bff; 
}

/* 카테고리 태그 */
.category-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 10px;
    color: #ffffff;
    min-width: 50px;
    text-align: center;
}

.cat-tech { background-color: #10b981; } /* 에메랄드 */
.cat-ux { background-color: #3b82f6; } /* 파랑 */
.cat-biz { background-color: #f59e0b; } /* 호박 */
.cat-marketing { background-color: #ef4444; } /* 빨강 */
.cat-recent { background-color: #9ca3af; } /* 회색 (최근 검색어) */
.cat-popular { background-color: #6366f1; } /* 보라 (인기 검색어) */

/* 검색 결과 건수 */
.count {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

/* 결과 없음 메시지 */
.no-results {
    padding: 15px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}
