/* notice.css - 정리된 버전 */

/* 공통 스타일 (모바일 기준: 425px 이하) */
.notice-container {
  width: 100%;
  padding: 40px 0;
  background-color: #f9f9f9;
}

/* 검색 기능 */
.search-container {
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}

.search-category {
  min-width: 90px;
  padding: 12px;
  border: none;
  border-right: 1px solid #ddd;
  background-color: #f9f9f9;
  font-size: 14px;
  color: #555;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  font-size: 14px;
  color: #333;
}

.search-input::placeholder {
  color: #999;
}

.search-input:focus {
  outline: none;
  border-color: #2F6022;
}

.search-button {
  background-color: #2F6022;
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #245018;
}

/* 공지사항 목록 */
.notice-list {
  margin-bottom: 40px;
}

.notice-item {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notice-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.notice-item:active {
  transform: translateY(1px);
}

/* 중요 공지사항 */
.notice-item.important {
  border-left-color: #e74c3c;
  background-color: #fef9f9;
}

/* 이벤트 상태 */
.active-event {
  border-left-color: #27ae60;
}

.active-event .notice-title {
  color: #27ae60;
}

/* 배지 스타일 */
.notice-badge {
  display: inline-block;
  background-color: #e74c3c;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.notice-badge.ended {
  background-color: #95a5a6;
  color: white;
}

/* 공지사항 내용 */
.notice-content {
  width: 100%;
}

.notice-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.notice-item.important .notice-title {
  color: #d63031;
}

.notice-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: #777;
}

.notice-date {
  font-weight: 500;
}

.notice-views {
  color: #999;
}

.notice-updated {
  color: #999;
  font-size: 12px;
  margin-left: 10px;
}

.notice-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 결과 없음 표시 */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #777;
  background-color: #fff;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.no-results p {
  font-size: 16px;
  margin: 0;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
  gap: 5px;
}

.page-nav, .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 3px;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #777;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.page-number.active {
  background-color: #2F6022;
  border-color: #2F6022;
  color: white;
  font-weight: 500;
  cursor: default;
}

.page-nav:hover:not(.disabled), 
.page-number:hover:not(.active) {
  background-color: #f0f8f0;
  border-color: #2F6022;
  color: #2F6022;
}

.page-number.active:hover {
  background-color: #2F6022;
}

/* 모바일 최적화 (480px 이하) */
@media (max-width: 480px) {
  .notice-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .notice-updated {
    margin-left: 0;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 3px;
  }
  
  .page-nav, .page-number {
    width: 35px;
    height: 35px;
    font-size: 13px;
  }
}

/* 태블릿 버전 (768px 이상) */
@media (min-width: 768px) {
  .notice-container {
    padding: 60px 0;
  }
  
  .search-container {
    max-width: 500px;
    margin: 0 auto 40px;
  }
  
  .search-category {
    min-width: 120px;
    font-size: 15px;
  }
  
  .search-input {
    padding: 15px 20px;
    font-size: 15px;
  }
  
  .search-button {
    padding: 0 25px;
  }
  
  .notice-item {
    padding: 25px;
    margin-bottom: 20px;
  }
  
  .notice-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .notice-meta {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .notice-desc {
    font-size: 15px;
  }
  
  .notice-updated {
    font-size: 13px;
  }
  
  .no-results {
    padding: 80px 20px;
  }
  
  .no-results p {
    font-size: 18px;
  }
  
  .page-nav, .page-number {
    width: 42px;
    height: 42px;
    margin: 0 4px;
  }
}

/* PC 버전 (1024px 이상) */
@media (min-width: 1024px) {
  .notice-container {
    padding: 80px 0;
  }
  
  .search-container {
    max-width: 600px;
    margin: 0 auto 50px;
  }
  
  .search-category {
    min-width: 140px;
    padding: 15px;
    font-size: 16px;
  }
  
  .search-input {
    padding: 15px 25px;
    font-size: 16px;
  }
  
  .search-button {
    padding: 0 30px;
  }
  
  .notice-list {
    max-width: 900px;
    margin: 0 auto 50px;
  }
  
  .notice-item {
    padding: 30px;
    margin-bottom: 25px;
  }
  
  .notice-badge {
    font-size: 13px;
    padding: 6px 15px;
  }
  
  .notice-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .notice-meta {
    font-size: 15px;
    margin-bottom: 18px;
  }
  
  .notice-desc {
    font-size: 16px;
    -webkit-line-clamp: 3;
  }
  
  .notice-updated {
    font-size: 14px;
  }
  
  .no-results {
    padding: 100px 20px;
  }
  
  .no-results p {
    font-size: 20px;
  }
  
  .pagination {
    margin: 60px 0 30px;
  }
  
  .page-nav, .page-number {
    width: 45px;
    height: 45px;
    font-size: 15px;
  }
}