/**
 * Fixperts - 메인 페이지 스타일
 */

/* 전역 스타일은 core/reset.css에서 관리 */

/* 메인 페이지 전용 body 스타일 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* 풀 스크린 배경 이미지 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../images/backgrounds/main-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -2;
}

/* 그라데이션 오버레이 */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* Main content area */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-top: -200px;
  position: relative;
  z-index: 1;
}

/* 메인 페이지용 브랜딩 간격 조정 */
.branding {
  margin-bottom: 40px;
}

/* 브랜딩 텍스트 색상 조정 (배경에 맞춰) */
.branding .branding__logo,
.branding .branding__tagline {
  color: var(--color-text-light);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* 검색 스타일은 search.css에서 관리 */

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(40, 167, 69, 0.1);
  padding: 20px 0;
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer__left {
  color: var(--color-text-secondary);
  font-size: 13px;
}

.footer__links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--color-success);
}

.footer__links a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* Responsive */
@media (max-width: 768px) {
  .main {
    margin-top: -200px;
  }
}
