/* PC Guardian AI — 홈페이지 공통 스타일 */
/* 에스제이소프트 (SJSoft) | 2026-05-31 */

/* ========== CSS 변수 ========== */
:root {
  --navy: #1F4E79;
  --navy-dark: #0D2B45;
  --blue: #2E75B6;
  --sky: #5AABDF;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --text: #0D1B2A;
  --muted: #6B7A8D;
  --border: #E2E8F0;
  --green: #15803D;
  --green-bg: #F0FDF4;
  --amber: #B45309;
  --amber-bg: #FFFBEB;
  --red: #B91C1C;
}

/* ========== 리셋 ========== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ========== GNB (상단 네비게이션) ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 68px;
}

.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a.active {
  color: var(--navy);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-outline {
  padding: 9px 22px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-fill {
  padding: 9px 22px;
  background: var(--navy);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  font-family: 'Noto Sans KR', sans-serif;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-fill:hover {
  background: var(--navy-dark);
}

/* ========== Footer ========== */
.footer-full {
  background: #0D1B2A;
  padding: 60px 60px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {}

.footer-brand-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-brand-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
}

.footer-brand-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-brand-corp {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col-links a:hover {
  color: #fff;
}

.footer-login-section {}

.footer-login-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-login-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-login-btn-user {
  padding: 10px 16px;
  background: var(--navy);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  text-align: center;
  transition: background 0.2s;
  text-decoration: none;
  display: block;
}

.footer-login-btn-user:hover {
  background: #2E75B6;
}

.footer-login-btn-admin {
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}

.footer-login-btn-admin:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

.footer-agent-dl {
  margin-top: 8px;
  padding: 10px 16px;
  background: rgba(90, 171, 223, 0.12);
  border: 1px solid rgba(90, 171, 223, 0.25);
  border-radius: 8px;
  color: rgba(90, 171, 223, 0.9);
  font-size: 13px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}

.footer-agent-dl:hover {
  background: rgba(90, 171, 223, 0.2);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-left {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}

.footer-bottom-right {
  display: flex;
  gap: 20px;
}

.footer-bottom-right a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-right a:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* ========== 반응형 (태블릿) ========== */
@media (max-width: 1024px) {
  nav {
    padding: 0 30px;
  }

  .footer-full {
    padding: 40px 30px 0;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ========== 햄버거 메뉴 버튼 ========== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== 반응형 (모바일) ========== */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  * { box-sizing: border-box; }
  img, video, iframe { max-width: 100%; height: auto; }

  nav {
    padding: 0 20px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  .btn-outline,
  .btn-fill {
    padding: 8px 16px;
    font-size: 13px;
  }

  .footer-full {
    padding: 30px 20px 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom-right {
    flex-direction: column;
    gap: 8px;
  }
}
