/* 2026 해병대 AI 아이디어 공모전 — 포스터 동일 톤 */
:root {
  --navy: #070d1c;
  --navy-2: #0a162f;
  --navy-3: #0d1f3c;
  --cyan: #7ec8ff;
  --cyan-bright: #9ad4ff;
  --cyan-label: #5eb0e8;
  --cyan-soft: rgba(126, 200, 255, 0.18);
  --cyan-border: rgba(126, 200, 255, 0.55);
  --white: #ffffff;
  --text: #e8f4ff;
  --muted: #a8c6e0;
  --nav-h: 64px;
  --font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: #010a19;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  background: rgba(7, 13, 28, 0.92);
  border-bottom: 1px solid var(--cyan-border);
  backdrop-filter: blur(12px);
}

.site-nav__brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.site-nav__brand-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav__brand-sub {
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(180deg, #1a3a5c 0%, #122844 100%);
  border: 1px solid var(--cyan-border);
  border-radius: 6px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.site-nav__links a:hover,
.site-nav__links a.is-active {
  background: linear-gradient(180deg, #2a5a88 0%, #1a4068 100%);
  box-shadow: 0 0 16px rgba(126, 200, 255, 0.35);
}

.site-nav__links a.nav-admin {
  background: transparent;
  border-color: rgba(126, 200, 255, 0.35);
  color: var(--muted);
  font-weight: 600;
}

.site-nav__links a.nav-admin:hover {
  color: var(--cyan-bright);
  background: rgba(126, 200, 255, 0.08);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

/* —— Page shell / circuit bg —— */
.page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 70% 8%, rgba(60, 140, 220, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 60%, rgba(30, 80, 140, 0.15), transparent 50%),
    var(--navy-2);
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%237ec8ff' stroke-opacity='0.12' stroke-width='1'%3E%3Cpath d='M10 30h40l20 20v40l-15 15M90 10v35l25 25h40M140 100l25 25v35M50 140h50l20 20M0 90h30l15-15h40'/%3E%3Ccircle cx='70' cy='50' r='2.5' fill='%237ec8ff' fill-opacity='0.25' stroke='none'/%3E%3Ccircle cx='115' cy='70' r='2' fill='%237ec8ff' fill-opacity='0.2' stroke='none'/%3E%3Ccircle cx='165' cy='125' r='2' fill='%237ec8ff' fill-opacity='0.2' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
  opacity: 0.9;
}

.page__inner {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.1rem 2.5rem;
}

/* —— Hero —— */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.5rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.hero__title {
  margin: 0;
  padding-top: 0.4rem;
}

.hero__eyebrow {
  display: block;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 800;
  color: var(--cyan-bright);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero__main {
  display: block;
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  font-weight: 900;
  color: var(--cyan-bright);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-shadow: 0 0 40px rgba(126, 200, 255, 0.35);
}

.hero__visual {
  justify-self: end;
  width: min(100%, 340px);
  margin-top: -0.5rem;
}

.hero__visual img {
  width: 100%;
  filter: drop-shadow(0 0 28px rgba(80, 170, 255, 0.45));
}

/* —— Meta info row —— */
.meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

.meta-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: stretch;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(126, 200, 255, 0.35);
}

.meta-item__label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #6bb8e8 0%, #4a9fd4 100%);
  color: #0a162f;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.55rem 0.4rem;
}

.meta-item__value {
  display: flex;
  align-items: center;
  background: rgba(8, 20, 40, 0.65);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem;
}

/* —— Two columns —— */
.content-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.panel {
  background: rgba(6, 14, 30, 0.55);
  border: 1px solid var(--cyan-border);
  border-radius: 6px;
  overflow: hidden;
}

.panel__head {
  background: linear-gradient(180deg, #6bb8e8 0%, #4a9fd4 100%);
  color: #0a162f;
  font-weight: 900;
  font-size: 1.05rem;
  text-align: center;
  padding: 0.55rem 0.75rem;
  letter-spacing: -0.02em;
}

.panel__body {
  padding: 0.75rem;
}

/* Schedule table — white for readability like poster */
.schedule-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 2px;
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  color: #1a1a1a;
  min-width: 480px;
}

.schedule th {
  background: #5aa8d8;
  color: #fff;
  font-weight: 800;
  padding: 0.55rem 0.45rem;
  border: 1px solid #3d8ab8;
  text-align: center;
  white-space: nowrap;
}

.schedule td {
  padding: 0.55rem 0.45rem;
  border: 1px solid #c5d5e5;
  vertical-align: top;
  background: #fff;
}

.schedule td:first-child {
  white-space: nowrap;
  font-weight: 700;
  text-align: center;
  background: #f3f8fc;
  width: 7.5rem;
}

.schedule td:last-child {
  width: 8.5rem;
  font-size: 0.72rem;
}

.schedule .sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: #555;
}

.benefits {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  background: rgba(10, 28, 52, 0.7);
  border: 1px solid rgba(126, 200, 255, 0.3);
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text);
}

.benefits p {
  margin: 0 0 0.35rem;
}

.benefits p:last-child {
  margin-bottom: 0;
}

.benefits strong {
  color: var(--cyan-bright);
}

.benefits .note {
  color: var(--muted);
  font-size: 0.7rem;
}

/* Registration panel */
.reg-block {
  margin-bottom: 0.9rem;
}

.reg-block:last-child {
  margin-bottom: 0;
}

.reg-block__title {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.7rem;
  background: linear-gradient(180deg, #6bb8e8 0%, #4a9fd4 100%);
  color: #0a162f;
  font-size: 0.88rem;
  font-weight: 900;
  border-radius: 3px;
}

.reg-block p {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.reg-cta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.65rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 6px;
  border: 1px solid var(--cyan-border);
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(126, 200, 255, 0.35);
}

.btn--primary {
  background: linear-gradient(180deg, #7ec8ff 0%, #4a9fd4 100%);
  color: #07101f;
}

.btn--ghost {
  background: rgba(126, 200, 255, 0.08);
  color: var(--cyan-bright);
}

.reg-url {
  font-size: 0.72rem;
  word-break: break-all;
  color: var(--cyan);
}

.contact-box {
  margin-top: 0.55rem;
  padding: 0.7rem 0.75rem;
  background: rgba(126, 200, 255, 0.08);
  border: 1px solid rgba(126, 200, 255, 0.28);
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text);
}

.contact-box p {
  margin: 0 0 0.3rem;
  color: var(--text);
}

.contact-box a {
  color: var(--cyan-bright);
  font-weight: 700;
}

/* —— Footer logos —— */
.sponsors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  padding: 1.25rem 0.5rem 0.5rem;
  border-top: 1px solid rgba(126, 200, 255, 0.25);
  margin-top: 0.5rem;
}

.sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  min-width: 120px;
}

.sponsor__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 900;
  border: 2px solid var(--cyan-border);
  background: rgba(126, 200, 255, 0.08);
  color: var(--cyan-bright);
}

.sponsor__name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.7rem;
  color: var(--muted);
  border-top: 1px solid rgba(126, 200, 255, 0.15);
}

/* —— Menu section cards (접수/다운로드) —— */
.section-page {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 1.75rem 1.1rem 3rem;
}

.section-page h1 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  color: var(--cyan-bright);
}

.section-page .lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.dark-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dark-field {
  background: rgba(8, 20, 40, 0.75);
  border: 1px solid var(--cyan-border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.dark-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.dark-field .req {
  color: #ff6b6b;
}

.dark-field input,
.dark-field textarea,
.dark-field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(126, 200, 255, 0.45);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.45rem 0;
  outline: none;
}

.dark-field input:focus,
.dark-field textarea:focus {
  border-bottom-color: var(--cyan-bright);
}

.dark-field input[type="file"] {
  border-bottom: none;
  font-size: 0.85rem;
  color: var(--muted);
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.download-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(8, 20, 40, 0.75);
  border: 1px solid var(--cyan-border);
  border-radius: 8px;
}

.download-list strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
}

.download-list span {
  font-size: 0.75rem;
  color: var(--muted);
}

.toast {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(80, 180, 120, 0.15);
  border: 1px solid rgba(80, 180, 120, 0.45);
  color: #9eecc0;
  font-size: 0.9rem;
}

.toast.is-visible {
  display: block;
}

.toast--error {
  background: rgba(180, 60, 60, 0.18);
  border-color: rgba(255, 120, 120, 0.45);
  color: #ffb4b4;
}

.download-empty {
  padding: 1rem 1.1rem;
  color: var(--muted);
  border: 1px dashed rgba(126, 200, 255, 0.35);
  justify-content: center;
}

.confirm-card {
  margin-bottom: 1.25rem;
  padding: 1.2rem 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--cyan-border);
  background: rgba(8, 20, 40, 0.75);
}

.confirm-card[hidden] {
  display: none !important;
}

.confirm-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: var(--cyan-bright);
}

.confirm-card__lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.confirm-card--success {
  text-align: center;
}

.confirm-card--success p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.confirm-review {
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.confirm-review__row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: rgba(126, 200, 255, 0.08);
  border: 1px solid rgba(126, 200, 255, 0.18);
}

.confirm-review__row dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.confirm-review__row dd {
  margin: 0;
  font-weight: 700;
  color: var(--white);
  word-break: break-word;
}

.confirm-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.confirm-actions .btn {
  flex: 1;
  min-width: 120px;
}

.dark-form[hidden] {
  display: none !important;
}

/* —— Responsive —— */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    justify-self: center;
    order: -1;
    width: min(100%, 280px);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(7, 13, 28, 0.98);
    border-bottom: 1px solid var(--cyan-border);
  }

  .site-nav__links.is-open {
    display: flex;
  }

  .site-nav__links a {
    width: 100%;
  }

  .meta-item {
    grid-template-columns: 72px 1fr;
  }

  .meta-item__label {
    font-size: 0.8rem;
  }

  .meta-item__value {
    font-size: 0.82rem;
    padding: 0.5rem 0.7rem;
  }
}
