﻿/* 상단 헤더 및 검색바 */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  color: #764ba2;
  text-decoration: none;
  font-style: italic;
}

.search-container {
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #eee;
  border-radius: 30px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
}

.search-input:focus {
  border-color: #764ba2;
}

/* 카테고리 탭 */
.category-tabs {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
}

.category-tab.active {
  background: white;
  color: #764ba2;
}

/* 메인 리스트 그리드 */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

/* 가게 카드 디자인 */
.store-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.store-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.store-icon {
  font-size: 60px;
  margin-bottom: 20px;
}
.store-name {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
}

.store-category {
  font-size: 14px;
  color: #764ba2;
  font-weight: bold;
  background: #f0ebf8;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.store-message {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  .search-container {
    margin: 0;
    width: 100%;
  }
  .store-grid {
    grid-template-columns: 1fr;
  }
}
