<!doctype html>
<html lang="ko">
  <head>
    <?php include(__DIR__ . "/_include/_head.php") ?>
    <link rel="stylesheet" type="text/css" href="/css/main.css" />
  </head>
  <body>
    <div class="wrap search-result">
      <?php include(__DIR__ . "/_include/_header.php") ?>
      <!-- container -->
      <div class="container">
        <div class="search-result-wrap">
          <!-- 페이지 헤더 -->
          <div class="page-header">
            <div class="page-title">
              <h3 class="blind">검색결과</h3>
              <p class="search-summary">
                '<em class="search-keyword">AI 테크</em>'에 대한 검색결과가 <em class="search-count">14</em>건 있습니다.
              </p>
            </div>
          </div>

          <!-- 필터 탭 -->
          <div class="filter-tabs">
            <button class="filter-tab active" data-filter="all">
              전체 <span class="count">24</span>
            </button>
            <button class="filter-tab" data-filter="leadership">
              리더십 <span class="count">11</span>
            </button>
            <button class="filter-tab" data-filter="insight">
              인사이트 <span class="count">3</span>
            </button>

          </div>

          <!-- 검색 결과 섹션 -->
          <div class="search-sections">
            <!-- 리더십 섹션 -->
            <section class="content-section" data-section="leadership">
              <div class="section-header">
                <h3 class="section-title">리더십 <span class="section-count">21</span></h3>
                <div class="list-options">
                  <div class="select-wrap">
                    <select class="select-sort" title="정렬">
                    <option>조회수</option>
                    <option selected>업데이트</option>
                    <option>내가본컨텐츠</option>
                    <option>안본컨텐츠</option>
                    </select>
                  </div>
                </div>
              </div>
              <ul class="video-grid">
                <li class="video-item">
                  <a href="#" class="card-link">
                    <label class="bookmark" for="like_chk_s1" onclick="event.stopPropagation();"><input type="checkbox" id="like_chk_s1" title="좋아요"></label>
                    <div class="item-thumb">
                      <img src="/img/video/img_thumb_03.png" alt="" />
                      <div class="gauge-bar rect"><div class="gauge-fill" style="width: 50%"></div></div>
                    </div>
                    <div class="item-info">
                      <strong class="item-title">
                        미국 <span>AI테크</span> 집중 투자하며 월배당까지 추구! 미국 <span>AI테크</span> TOP10커버드콜 ETF
                      </strong>
                      <div class="tag-list">
                        <span class="tag">웰니스</span>
                        <span class="tag">협업</span>
                      </div>
                    </div>
                  </a>
                </li>
                <li class="video-item">
                  <a href="#" class="card-link">
                    <label class="bookmark" for="like_chk_s2" onclick="event.stopPropagation();"><input type="checkbox" id="like_chk_s2" title="좋아요"></label>
                    <div class="item-thumb">
                      <img src="/img/video/img_thumb_02.png" alt="" />
                      <div class="gauge-bar rect"><div class="gauge-fill" style="width: 10%"></div></div>
                    </div>
                    <div class="item-info">
                      <strong class="item-title">
                        <span>AI</span> 시대 투자, 이제는 선택이 아닌 필수, ACE 미국 <span>AI테크</span>핵심산업액티
                      </strong>
                      <div class="tag-list">
                        <span class="tag">웰니스</span>
                        <span class="tag">협업</span>
                      </div>
                    </div>
                  </a>
                </li>
                <li class="video-item">
                  <a href="#" class="card-link">
                    <label class="bookmark" for="like_chk_s3" onclick="event.stopPropagation();"><input type="checkbox" id="like_chk_s3" checked title="좋아요 취소"></label>
                    <div class="item-thumb"><img src="/img/video/img_thumb_03.png" alt="" /></div>
                    <div class="item-info">
                      <strong class="item-title">
                        빅<span>테크</span>는 고졸자를 뽑는다, <span>AI</span>가 무너뜨린 학벌주의하라
                      </strong>
                      <div class="tag-list">
                        <span class="tag">웰니스</span>
                        <span class="tag">협업</span>
                      </div>
                    </div>
                  </a>
                </li>
                <li class="video-item">
                  <a href="#" class="card-link">
                    <label class="bookmark" for="like_chk_s4" onclick="event.stopPropagation();"><input type="checkbox" id="like_chk_s4" checked title="좋아요 취소"></label>
                    <div class="item-thumb"><img src="/img/video/img_thumb_04.png" alt="" /></div>
                    <div class="item-info">
                      <strong class="item-title">
                        아마존부터 오픈<span>AI</span>까지... 글로벌 빅<span>테크</span>들이 한국에 <span>AI</span> 데이터센터 짓는 이유
                      </strong>
                      <div class="tag-list">
                        <span class="tag">웰니스</span>
                        <span class="tag">협업</span>
                      </div>
                    </div>
                  </a>
                </li>
                <li class="video-item">
                  <a href="#" class="card-link">
                    <label class="bookmark" for="like_chk_s5" onclick="event.stopPropagation();"><input type="checkbox" id="like_chk_s5" title="좋아요"></label>
                    <div class="item-thumb"><img src="/img/video/img_thumb_01.png" alt="" /></div>
                    <div class="item-info">
                      <strong class="item-title"><span>AI</span> 학벌파괴, 이걸 눈치챈 사람이 큰 돌을 벌겁니다.</strong>
                      <div class="tag-list">
                        <span class="tag">웰니스</span>
                        <span class="tag">협업</span>
                      </div>
                    </div>
                  </a>
                </li>
                <li class="video-item">
                  <a href="#" class="card-link">
                    <label class="bookmark" for="like_chk_s6" onclick="event.stopPropagation();"><input type="checkbox" id="like_chk_s6" title="좋아요"></label>
                    <div class="item-thumb"><img src="/img/video/img_thumb_02.png" alt="" /></div>
                    <div class="item-info">
                      <strong class="item-title">
                        <span>AI</span> 시대 ‘조직’은 망한다. 가벼운 ‘개인’만 살아남을 것
                      </strong>
                      <div class="tag-list">
                        <span class="tag">웰니스</span>
                        <span class="tag">협업</span>
                      </div>
                    </div>
                  </a>
                </li>
                <li class="video-item">
                  <a href="#" class="card-link">
                    <label class="bookmark" for="like_chk_s7" onclick="event.stopPropagation();"><input type="checkbox" id="like_chk_s7" checked title="좋아요 취소"></label>
                    <div class="item-thumb"><img src="/img/video/img_thumb_03.png" alt="" /></div>
                    <div class="item-info">
                      <strong class="item-title">
                        아는 자만이 살아남는다. 초압축 <span>AI</span> 몰입 강연
                      </strong>
                      <div class="tag-list">
                        <span class="tag">웰니스</span>
                        <span class="tag">협업</span>
                      </div>
                    </div>
                  </a>
                </li>
                <li class="video-item">
                  <a href="#" class="card-link">
                    <label class="bookmark" for="like_chk_s8" onclick="event.stopPropagation();"><input type="checkbox" id="like_chk_s8" checked title="좋아요 취소"></label>
                    <div class="item-thumb"><img src="/img/video/img_thumb_04.png" alt="" /></div>
                    <div class="item-info">
                      <strong class="item-title">
                        격변의 <span>AI</span> 시대, 증폭되는 불평등
                      </strong>
                      <div class="tag-list">
                        <span class="tag">웰니스</span>
                        <span class="tag">협업</span>
                      </div>
                    </div>
                  </a>
                </li>
              </ul>
            </section>

            <!-- 인사이트 섹션 -->
            <section class="content-section" data-section="insight">
              <div class="section-header">
                <h3 class="section-title">인사이트 <span class="section-count">4</span></h3>
                <div class="list-options">
                  <div class="select-wrap">
                    <select class="select-sort" title="정렬">
                    <option>조회수</option>
                    <option selected>업데이트</option>
                    <option>내가본컨텐츠</option>
                    <option>안본컨텐츠</option>
                    </select>
                  </div>
                </div>
              </div>
              <ul class="video-grid">
                <li class="video-item">
                  <a href="#" class="card-link">
                    <label class="bookmark" for="like_chk_s11" onclick="event.stopPropagation();"><input type="checkbox" id="like_chk_s11" title="좋아요"></label>
                    <div class="item-thumb"><img src="/img/video/img_thumb_01.png" alt="" /></div>
                    <div class="item-info">
                      <strong class="item-title"><span>AI</span> 학벌파괴, 이걸 눈치챈 사람이 큰 돌을 벌겁니다.</strong>
                      <div class="tag-list">
                        <span class="tag">웰니스</span>
                        <span class="tag">협업</span>
                      </div>
                    </div>
                  </a>
                </li>
                <li class="video-item">
                  <a href="#" class="card-link">
                    <label class="bookmark" for="like_chk_s12" onclick="event.stopPropagation();"><input type="checkbox" id="like_chk_s12" title="좋아요"></label>
                    <div class="item-thumb"><img src="/img/video/img_thumb_02.png" alt="" /></div>
                    <div class="item-info">
                      <strong class="item-title"><span>AI</span> 시대 ‘조직’은 망한다. 가벼운 ‘개인’만 살아남을 것</strong>
                      <div class="tag-list">
                        <span class="tag">웰니스</span>
                        <span class="tag">협업</span>
                      </div>
                    </div>
                  </a>
                </li>
                <li class="video-item">
                  <a href="#" class="card-link">
                    <label class="bookmark" for="like_chk_s13" onclick="event.stopPropagation();"><input type="checkbox" id="like_chk_s13" checked title="좋아요 취소"></label>
                    <div class="item-thumb"><img src="/img/video/img_thumb_03.png" alt="" /></div>
                    <div class="item-info">
                      <strong class="item-title">아는 자만이 살아남는다. 초압축 <span>AI</span> 몰입 강연</strong>
                      <div class="tag-list">
                        <span class="tag">웰니스</span>
                        <span class="tag">협업</span>
                      </div>
                    </div>
                  </a>
                </li>
                <li class="video-item">
                  <a href="#" class="card-link">
                    <label class="bookmark" for="like_chk_s14" onclick="event.stopPropagation();"><input type="checkbox" id="like_chk_s14" checked title="좋아요 취소"></label>
                    <div class="item-thumb"><img src="/img/video/img_thumb_03.png" alt="" /></div>
                    <div class="item-info">
                      <strong class="item-title">격변의 <span>AI</span> 시대, 증폭되는 불평등</strong>
                      <div class="tag-list">
                        <span class="tag">웰니스</span>
                        <span class="tag">협업</span>
                      </div>
                    </div>
                  </a>
                </li>
              </ul>
            </section>
          </div>
        </div>
      </div>
      <!-- // container -->
    </div>

    <script>
      // 검색어를 헤더 검색창에 표시
      document.addEventListener('DOMContentLoaded', function() {
        const searchInput = document.querySelector('.input-group input[type="text"]');
        const clearBtn = document.querySelector('.btn-clear');
        
        if (searchInput) {
          // 검색어 
          searchInput.value = 'AI 테크';
          // 검색어가 있을 때 X 버튼 표시
          if (clearBtn) {
            clearBtn.style.display = 'block';
          }
        }
        
        // X 버튼 클릭 시 검색어 지우기
        if (clearBtn) {
          clearBtn.addEventListener('click', function(e) {
            e.preventDefault();
            e.stopPropagation();
            if (searchInput) {
              searchInput.value = '';
              clearBtn.style.display = 'none';
            }
          });
        }
        
        // 검색어 입력 시 X 버튼 표시/숨김
        if (searchInput) {
          searchInput.addEventListener('input', function() {
            if (this.value.trim() !== '') {
              if (clearBtn) clearBtn.style.display = 'block';
            } else {
              if (clearBtn) clearBtn.style.display = 'none';
            }
          });
        }

        // 필터 탭 클릭 이벤트
        const filterTabs = document.querySelectorAll('.filter-tab');
        filterTabs.forEach(tab => {
          tab.addEventListener('click', function() {
            filterTabs.forEach(t => t.classList.remove('active'));
            this.classList.add('active');
            
            const filter = this.dataset.filter;
            const sections = document.querySelectorAll('.content-section');
            
            if (filter === 'all') {
              sections.forEach(section => section.style.display = 'block');
            } else {
              sections.forEach(section => {
                if (section.dataset.section === filter) {
                  section.style.display = 'block';
                } else {
                  section.style.display = 'none';
                }
              });
            }
          });
        });
      });
    </script>
  </body>
</html>