/* === footer.css: Footer Styles === */

/* 푸터는 항상 하단에 위치 */
footer {
  margin-top: auto !important;
  position: static !important;
  width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

/* 푸터 스타일 */
footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0;
  width: 100vw; /* 전체 너비 */
  margin-left: calc(50% - 50vw); /* 좌우 여백 제거 */
  margin-right: calc(50% - 50vw);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #3617ce;
  transform: translateY(-3px);
}

.social-links i {
  font-size: 1.2rem;
}

/* 개선된 소셜 링크 스타일 */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: 0.18s ease;
}

.social-links a i {
  font-size: 22px;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* 소셜 링크 컬러 */
.social-links a[title="네이버 블로그"] i {
  color: #03c75a;
}
.social-links a[title="트위터"] i {
  color: #111111;
}
.social-links a[title="유튜브"] i {
  color: #ff0000;
}

/* 인스타그램 로고 그라데이션 느낌 */
.social-links a[title="인스타그램"] i {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 티스토리 T 로고 */
.tistory-logo {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: #ff5a2c; /* 티스토리 느낌 오렌지 */
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Noto Sans KR",
    sans-serif;
}

/* 모바일에서 푸터 조정 */
@media (max-width: 768px) {
  footer {
    position: static !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }

  footer {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    overflow-x: hidden;
    margin-bottom: 70px;
  }

  footer .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}

/* 320px 이하 푸터 최적화 */
@media (max-width: 320px) {
  .hero,
  .section,
  .region-hub,
  .main-cta,
  footer {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
}
