/* =============================================
   PPCS (피피씨에스) - Main Stylesheet
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol { list-style: none; }

img { display: block; max-width: 100%; }

/* =============================================
   NAVIGATION
   ============================================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  height: 72px;
}

.nav-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---- Logo ---- */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* ---- Center Menu ---- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-menu li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: #f0f4ff;
  color: #1b4dca;
}

/* ---- Right Actions ---- */
.nav-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions .btn-login {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #1b4dca;
  border: 1.5px solid #1b4dca;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-actions .btn-login:hover {
  background: #1b4dca;
  color: #fff;
}

.nav-actions .btn-join {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #1b4dca;
  border: 1.5px solid #1b4dca;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.nav-actions .btn-join:hover {
  background: #1340a8;
  border-color: #1340a8;
}

/* ---- Hamburger (mobile) ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- Mobile Nav Overlay ---- */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
}

.nav-mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: #fff;
  padding: 28px 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-mobile-overlay.open { display: block; }
.nav-mobile-overlay.open .nav-mobile-panel { transform: translateX(0); }

.nav-mobile-panel ul { display: flex; flex-direction: column; gap: 4px; }

.nav-mobile-panel ul li a {
  display: block;
  padding: 12px 10px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  border-radius: 6px;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s;
}

.nav-mobile-panel ul li a:hover { color: #1b4dca; }

.nav-mobile-panel .mobile-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.nav-mobile-panel .mobile-actions a {
  flex: 1;
  text-align: center;
  padding: 11px 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
}

.nav-mobile-panel .mobile-actions .btn-login {
  color: #1b4dca;
  border: 1.5px solid #1b4dca;
}

.nav-mobile-panel .mobile-actions .btn-join {
  color: #fff;
  background: #1b4dca;
  border: 1.5px solid #1b4dca;
}

/* =============================================
   HERO SWIPER
   ============================================= */

.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: calc(var(--vh, 1vh) * 100 - 72px);
  min-height: 420px;
}

.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

.hero-swiper .swiper-slide img.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease;
}

/* Ken Burns 효과 */
.hero-swiper .swiper-slide-active img.slide-bg {
  transform: scale(1.07);
}

/* Gradient Overlay */
.hero-swiper .swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 30, 80, 0.72) 0%,
    rgba(13, 30, 80, 0.35) 60%,
    transparent 100%
  );
}

.slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
  max-width: 860px;
}

.slide-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  width: fit-content;
  backdrop-filter: blur(4px);
}

.slide-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.slide-title em {
  font-style: normal;
  color: #7eb3ff;
}

.slide-desc {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 32px;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: #1b4dca;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  width: fit-content;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(27, 77, 202, 0.45);
}

.slide-cta:hover {
  background: #1340a8;
  transform: translateY(-2px);
}

.slide-cta i { font-size: 13px; }

/* Swiper navigation buttons */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 14px;
  color: #fff;
  font-weight: 700;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Swiper pagination */
.hero-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  transition: width 0.3s, background 0.3s;
  border-radius: 4px;
}

.hero-swiper .swiper-pagination-bullet-active {
  width: 28px;
  background: #fff;
}

/* =============================================
   SLIDE ANIMATION
   ============================================= */

.swiper-slide .slide-content > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.swiper-slide-active .slide-content .slide-badge  { opacity: 1; transform: none; transition-delay: 0.15s; }
.swiper-slide-active .slide-content .slide-title  { opacity: 1; transform: none; transition-delay: 0.3s; }
.swiper-slide-active .slide-content .slide-desc   { opacity: 1; transform: none; transition-delay: 0.45s; }
.swiper-slide-active .slide-content .slide-cta    { opacity: 1; transform: none; transition-delay: 0.6s; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
  .nav-menu li a { padding: 8px 10px; font-size: 14px; }
}

@media (max-width: 900px) {
  .nav-menu,
  .nav-actions {
    display: none;
  }

  .nav-hamburger { display: flex; }

  .slide-content { padding: 0 40px; }
}

@media (max-width: 600px) {
  .site-nav { height: 62px; }

  .nav-inner { padding: 0 20px; }

  .nav-logo img { height: 32px; }

  .hero-swiper { height: calc(var(--vh, 1vh) * 100 - 62px); min-height: 320px; }

  .slide-content { padding: 0 24px; }

  .slide-cta { padding: 11px 22px; font-size: 14px; }

  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next { display: none; }
}

/* =============================================
   MEMBER AUTH PAGES
   ============================================= */

.auth-wrap {
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(27, 77, 202, 0.1);
  padding: 52px 44px 44px;
}

.auth-card.wide {
  max-width: 760px;
}

/* 2열 그리드 row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 13.5px;
  color: #888;
  text-align: center;
  line-height: 1.65;
  margin-bottom: 52px;
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #dde2ee;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a2e;
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.auth-form input:focus {
  border-color: #1b4dca;
  box-shadow: 0 0 0 3px rgba(27, 77, 202, 0.1);
  background: #fff;
}

.auth-form input.is-error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.auth-hint {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}

.auth-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #1b4dca;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
}

.auth-btn:hover  { background: #1340a8; transform: translateY(-1px); }
.auth-btn:active { transform: none; }
.auth-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.auth-alert {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.5;
}

.auth-alert.error {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
}

.auth-alert.success {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #276749;
}

.auth-links {
  text-align: center;
  margin-top: 24px;
  font-size: 13.5px;
  color: #888;
}

.auth-links a {
  color: #1b4dca;
  font-weight: 600;
  margin-left: 4px;
}

.auth-links a:hover { text-decoration: underline; }

.auth-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 28px 0;
}

@media (max-width: 520px) {
  .auth-card {
    padding: 36px 24px 32px;
    border-radius: 16px;
  }

  .auth-title { font-size: 21px; }

  .form-row { grid-template-columns: 1fr; }
}
