
body {
  font-family: 'Pretendard', sans-serif;
  background: #fffaf5;
  color: #333;
  padding: 2rem;
  max-width: 768px;
  margin: auto;
  line-height: 1.6;
}

h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.hidden {
  display: none;
}

/* ================================ */
/* 뷰 전환 버튼 스타일 */
/* ================================ */
.view-toggle {
  text-align: center;
  margin-bottom: 1rem;
}

.view-toggle button {
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  background: #f0f0f0;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.view-toggle button.active,
.view-toggle button:hover {
  background: #5f7cff;
  color: white;
}

.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.search-bar input {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  outline: none;
  transition: all 0.3s;
}

.search-bar input::placeholder {
  color: #999;
  font-style: italic;
}

.filters {
  text-align: center;
  margin-bottom: 1rem;
}

.filters button {
  background: #fff;
  border: 1px solid #ccc;
  padding: 0.5rem 1.1rem;
  margin: 0 0.3rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, border 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.filters button.active,
.filters button:hover {
  background: #5f7cff;
  color: white;
  border-color: #5f7cff;
}

.exhibition {
  display: flex;
  gap: 1rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  padding: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
  transition: transform 0.3s;
}

.exhibition:hover {
  transform: translateY(-4px);
}

.thumbnail {
  flex: 0 0 120px;
}

.thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.info {
  flex: 1;
}

.exhibition p {
  margin: 0.4rem 0;
}
/* 팝업 스타일 */
.popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background: white;
  max-width: 500px;
  width: 90%;
  padding: 1rem;
  border-radius: 12px;
  position: relative;
  overflow-wrap: break-word;
  max-height: 80vh;
  overflow-y: auto;
}

#popup-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}
/* ================================ */
/* 달력 뷰 스타일 */
/* ================================ */
.calendar-nav {
  text-align: center;
  margin-bottom: 1rem;
}

.calendar-nav button {
  margin: 0 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  transition: 0.3s;
}

.calendar-nav button:hover {
  background: #5f7cff;
  color: white;
}

#monthLabel {
  font-weight: bold;
  font-size: 1.2rem;
}

#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  justify-content: center;
}

.day {
  background: white;
  border-radius: 12px;
  padding: 0.5rem;
  min-height: 100px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: relative;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.day.today {
  border: 2px solid #5f7cff;
}

.day.past {
  opacity: 0.5;
}

.day .date {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.event {
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
  border-left: 5px solid #5f7cff;
  padding-left: 0.3rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event:hover {
  background: #f5f5ff;
}

.more {
  font-size: 0.7rem;
  color: #666;
  cursor: pointer;
}

.category-tag {
  font-size: 0.75rem;
  margin: 2px 0;
  padding-left: 0.5rem;
  border-left: 6px solid #aaa;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.3;
}

.category-tag:hover {
  background: #f0f0ff;
}


