  
  

  
/* ============================
   🔍 검색창 + 캐릭터 위치
============================ */
.search-form {
    display: flex;
    align-items: center;
    margin-top: 50px;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 0 0.75rem; /* ✅ 좌우 패딩 줄임 */
    border: 2px solid #c28383;
    border-radius: 999px;
    background-color: white;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* ✅ 넘침 방지 */
  }
  
  .search-wrapper {
    width: 100%;
    max-width: 100%;         /* ✅ 모바일에서 꽉 채우되 넘치지 않게 */
    padding: 0 12px;         /* ✅ 좌우 여백 줘서 버튼 붙는 거 방지 */
    box-sizing: border-box; /* ✅ padding 포함 */
  }

  .search-box {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    padding: 0.4rem 0.5rem;
    background: transparent;
    color: #333;
    min-width: 0; /* ✅ flex 안에서 overflow 방지 */
  }
  
  .icon-submit-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #9d6bff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    flex-shrink: 0;  /* ✅ 크기 고정 */
  }
  
  .icon-submit-btn i {
    pointer-events: none;
    transform: none;
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
  }
  
  .icon-submit-btn:hover i {
    color: #caa8ff;
    transform: scale(1.15);
  }
  
  
  /* 모바일 대응 */
  @media (max-width: 640px) {
    .search-wrapper {
      max-width: 90vw;
    }
  
    .search-box {
      font-size: 0.9rem;
    }
  }
  

/* ============================
   🧾 탭 + 게시판 (데스크탑)
============================ */
.tab-board {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
    font-family: 'Noto Sans KR', sans-serif;
  }
  
  .tabs-wrapper {
    display: block;
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 0 0.2rem;
    margin-bottom: 0.1rem;
    box-sizing: border-box;
  }
  
  .tabs-container {
    position: relative;
    width: 100%;
  }
  
  .tabs-blur-left,
  .tabs-blur-right {
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    pointer-events: none;
    z-index: 5;
  }
  
  .tabs-blur-left {
    left: 0;
    background: linear-gradient(to right, rgba(44, 47, 51, 1), rgba(44, 47, 51, 0.6), rgba(44, 47, 51, 0.2), rgba(44, 47, 51, 0));
  }
  
  .tabs-blur-right {
    right: 0;
    background: linear-gradient(to left, rgba(44, 47, 51, 1), rgba(44, 47, 51, 0.6), rgba(44, 47, 51, 0.2), rgba(44, 47, 51, 0));
  }
  

   
  
 
  
.tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 0.5rem;
  padding: 1rem 0;
}

.tab {
  margin-top: 2rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #d0cce6;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  font-size: 0.7rem !important;
  font-weight: 500;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease-in-out;
  text-decoration: none !important;
}

.tab:hover {
  color: white;
  background-color: rgba(247, 243, 255, 0.3);
  border-color: #c4b2ff;
  text-decoration: none;
}

.tab.active {
  background: #f6f6f6;
  color: black;
  border-color: #ff9999;
  font-weight: bold;
}

  
  .tabs::-webkit-scrollbar {
    display: none;
  }
  
  .tab-spacer {
    display: inline-block;
    width: 1rem; /* 원하는 만큼 */
    height: 1px; /* 높이는 최소 */
    background: transparent; /* 안 보이게 */
    flex-shrink: 0; /* 줄어들지 않도록 */
  }
  
  @media (max-width: 640px) {
    .tabs-wrapper {
      max-width: 95vw;
      overflow-x: auto;
      scrollbar-width: none;
    }
  
    .tabs-wrapper::-webkit-scrollbar {
      display: none;
    }
  
    .tab {
      font-size: 0.7rem;
      padding: 0.25rem 0.7rem;
    }
  }
  
  /* 📱 모바일 게시판 (예시용 일부만 포함) */
  .mobile-board-list {
    display: block;
    padding: 0 0.1rem;
    margin-top: 1rem;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 3;
  }
  
  .mobile-post-item {
    padding: 0.3rem 0;
    position: relative;
    width: 100%;
  }
  
  .mobile-post-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0.5px;
    background-color: #870000;
  }
  
  html.dark .mobile-post-item::after {
    background-color: #ddd;
  }
  
  .mobile-post-item .post-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .mobile-post-item .post-title:hover {
    color: #a26bff;
    text-decoration: underline;
  }
  
  .mobile-post-item .post-info {
    font-size: 0.7rem;
    color: #777;
  }
  
  @media (max-width: 640px) {
    .board-table {
      display: none;
    }
  
    .main-panel {
      min-width: 320px;
      margin-top: 0.5rem;
    }
  
    .tabs {
      padding: 0 1rem;
      width: max-content;
    }
  }
  
  