/* 메인 페이지 스타일 */

/* 뉴스 목록 */
.news-container {
  padding: 15px;
}

.news-section {
  margin-bottom: 25px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
}

.more-link {
  font-size: 12px;
  color: #666;
  text-decoration: none;
}

/* 핫토픽 */
.hot-topic {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.hot-topic img {
  width: 100%;
  height: auto;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.hot-topic-title {
  padding: 12px;
  font-size: 14px;
  font-weight: bold;
  border-top: 1px solid #eee;
}

/* 주요 기사 */
.news-list {
  margin-bottom: 20px;
}

.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.news-title {
  flex: 1;
  font-size: 14px;
}

.news-comment {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 12px;
}

.comment-icon {
  color: #888;
  font-size: 14px;
}

.comment-count {
  color: #666;
}

/* 투표 섹션 */
.poll-section {
  margin-top: 20px;
}

.poll-list {
  margin-bottom: 20px;
}

.poll-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.poll-title {
  flex: 1;
  font-size: 14px;
}

.poll-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #666;
  font-size: 12px;
}

.poll-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  font-weight: bold;
}

.poll-active {
  background-color: #34c759;
}

.poll-closed {
  background-color: #8e8e93;
}

/* 로딩 상태 */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  color: #adb5bd;
  font-size: 14px;
}

.loading i {
  font-size: 24px;
  margin-bottom: 10px;
}

/* 푸터 스타일 수정 - 아래 공백 제거 */
.main-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #eaeaea;
  padding: 20px 15px;
  margin-top: 20px;
  margin-bottom: 0; /* 하단 마진 제거 */
  width: 100%;
  box-sizing: border-box;
}

/* main-container 스타일 수정 */
.main-container {
  max-width: 480px;
  margin: 0 auto;
  background-color: white;
  min-height: 100vh; /* 최소 높이 설정 */
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  display: flex; /* 추가 */
  flex-direction: column; /* 추가 */
}

/* news-container가 남은 공간을 채우도록 flex-grow 설정 */
.news-container {
  padding: 15px;
  flex-grow: 1; /* 추가: 가능한 공간을 모두 채우도록 */
}

/* 푸터를 항상 컨테이너 맨 아래에 배치하기 위한 스타일 */
.main-footer {
  margin-top: auto; /* 상단 마진을 자동으로 확장하여 푸터를 아래로 밀기 */
  margin-bottom: 0; /* 하단 마진 제거 */
  padding-bottom: 0; /* 하단 패딩 제거 */
}

.footer-content {
  max-width: 100%;
}

.company-info {
  margin-bottom: 12px;
}

.info-item {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 5px;
  line-height: 1.5;
}

.info-item strong {
  font-weight: 500;
  color: #495057;
}

.copyright {
  font-size: 11px;
  color: #adb5bd;
  text-align: center;
  margin-top: 10px;
  padding-bottom: 10px; /* 저작권 문구에 하단 여백 추가 */
}

/* 반응형 조정 */
@media (max-width: 480px) {
  .news-container {
    padding: 10px;
  }

  .section-title {
    font-size: 15px;
  }

  .news-title,
  .poll-title {
    font-size: 13px;
  }

  .main-footer {
    padding: 15px 10px 0; /* 하단 패딩 제거 */
  }

  .info-item {
    font-size: 11px;
  }
}