/* ==============================
   Global Reset & Base Styles
   ============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans KR', 'Segoe UI', sans-serif;
  color: #e6eefc;
  background:
    linear-gradient(rgba(0, 10, 30, 0.9), rgba(0, 5, 15, 0.95)),
    url('/images/bg_cyber_expo.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==============================
   Navbar
   ============================== */
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: rgba(10, 15, 30, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  height: 36px;
  width: auto;
}

.title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e8f2ff;
  text-shadow: 0 0 8px rgba(0, 140, 255, 0.5);
}

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

.btn-nav {
  text-decoration: none;
  color: #d0d0d0;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: 0.3s;
}

.btn-nav:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.btn-nav.highlight {
  background: linear-gradient(90deg, #0078ff, #00c0ff);
  color: white;
  font-weight: 600;
}

/* ==============================
   Hero Section (Main Title)
   ============================== */
.hero {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: 60px;
}

.hero-content {
  background: rgba(10, 20, 40, 0.8);
  padding: 40px 60px;
  border-radius: 20px;
  max-width: 700px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hero-content h1 {
  font-size: 2rem;
  color: #49a8ff;
  text-shadow: 0 0 8px rgba(0, 120, 255, 0.7);
}

.hero-content p {
  margin-top: 16px;
  line-height: 1.6;
  color: #b0c5e3;
}

.btn.primary {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 24px;
  border-radius: 10px;
  background: linear-gradient(90deg, #0078ff, #00c0ff);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn.primary:hover {
  background: linear-gradient(90deg, #00c0ff, #0078ff);
}

.btn.outline {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 10px;
  border: 1px solid rgba(73, 168, 255, 0.55);
  background: rgba(12, 25, 48, 0.45);
  color: #eaf3ff;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s ease;
}

.btn.outline:hover {
  background: rgba(22, 50, 86, 0.8);
  box-shadow: 0 10px 24px rgba(0, 120, 255, 0.22);
}

/* ==============================
   Auth Pages
   ============================== */
.auth-shell {
  flex: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 72px;
}

.auth-panel {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 460px);
  gap: 28px;
  align-items: stretch;
}

.auth-copy,
.auth-card {
  background: rgba(10, 20, 40, 0.82);
  border: 1px solid rgba(120, 190, 255, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.auth-copy {
  border-radius: 26px;
  padding: 42px 40px;
  position: relative;
  overflow: hidden;
}

.auth-copy::before {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.28), rgba(0, 180, 255, 0));
  pointer-events: none;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8fd3ff;
  background: rgba(0, 120, 255, 0.18);
  border: 1px solid rgba(110, 188, 255, 0.18);
}

.auth-copy h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.15;
  color: #edf6ff;
  text-shadow: 0 0 22px rgba(0, 140, 255, 0.18);
}

.auth-copy p {
  margin-top: 18px;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.75;
  color: #b8cde7;
}

.auth-points {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.auth-points li {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #dcecff;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-card {
  border-radius: 22px;
  padding: 32px 28px;
  align-self: center;
}

.auth-title {
  font-size: 1.7rem;
  color: #eaf3ff;
}

.auth-sub {
  margin-top: 10px;
  color: #a8bfdc;
  line-height: 1.6;
}

.auth-form {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.auth-label {
  font-size: 0.9rem;
  color: #d8e6f9;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #edf5ff;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.auth-form input::placeholder {
  color: #86a5c6;
}

.auth-form input:focus {
  border-color: rgba(77, 174, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(0, 120, 255, 0.14);
  transform: translateY(-1px);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.auth-linkline {
  margin-top: 18px;
  color: #afc6e4;
  line-height: 1.6;
}

.auth-linkline a {
  color: #7ec7ff;
  font-weight: 700;
  text-decoration: none;
}

.auth-linkline a:hover {
  text-decoration: underline;
}

/* ==============================
   Warning Page
   ============================== */
.warning-full {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 56px;
}

.warn-box {
  width: min(760px, 100%);
  padding: 40px 36px;
  border-radius: 24px;
  background: rgba(12, 22, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.35);
  text-align: center;
  backdrop-filter: blur(12px);
}

.warn-box h1 {
  color: #edf6ff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.25;
}

.warn-box p {
  margin-top: 18px;
  color: #c0d2e8;
  line-height: 1.8;
}

/* ==============================
   News / Post Section
   ============================== */
.news {
  max-width: 780px;
  margin: 60px auto;
  padding: 0 20px;
}

.news h2 {
  font-size: 1.3rem;
  color: #49a8ff;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(0, 140, 255, 0.5);
}

/* 카드 전체 클릭 가능 */
.post-card {
  display: flex;
  align-items: center;
  background: rgba(20, 30, 50, 0.8);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  text-decoration: none; /* 링크 밑줄 제거 */
  color: inherit; /* 텍스트 색 유지 */
  transition: all 0.25s ease;
  cursor: pointer;
}

.post-card:hover {
  background: rgba(30, 50, 80, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 150, 255, 0.25);
}

.post-card:active {
  opacity: 0.85;
}

.post-card.highlight-card {
  border: 1px solid rgba(0, 140, 255, 0.4);
}

.thumb {
  width: 85px;
  height: 85px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 14px;
}

.post-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #eaf3ff;
  margin-bottom: 4px;
}

.post-info p {
  color: #b0c5e3;
  font-size: 0.9rem;
  line-height: 1.4;
}

.meta {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #8bbfff;
}

/* ==============================
   Footer
   ============================== */
footer {
  text-align: center;
  color: #aabbd0;
  font-size: 0.85rem;
  padding: 30px 0 20px;
  margin-top: auto;
  background: rgba(10, 15, 30, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==============================
   Responsive (Mobile)
   ============================== */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 12px 20px;
  }

  .nav-left, .nav-right {
    gap: 6px;
  }

  .logo {
    height: 30px;
  }

  .title {
    font-size: 1rem;
  }

  .btn-nav {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .hero-content {
    padding: 30px 20px;
    margin: 20px;
  }

  .auth-shell {
    padding: 24px 16px 48px;
  }

  .auth-panel {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .auth-copy,
  .auth-card,
  .warn-box {
    padding: 28px 22px;
  }

  .auth-copy h1 {
    font-size: 1.8rem;
  }

  .post-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .thumb {
    width: 100%;
    height: 180px;
    margin-bottom: 10px;
  }

  footer {
    font-size: 0.8rem;
  }
}

/* ==============================
   Optional: Scrollbar Styling
   ============================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 150, 255, 0.4);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 150, 255, 0.7);
}
