/* spot-submit.css
   投稿バナー、投稿モーダル、画像カルーセル のスタイル。
   既存の spot.html の paper/ink パレットを踏襲する。 */

/* ============ カルーセル ============ */
.gallery-carousel {
  position: relative;
  margin-bottom: 1.5rem;
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
}
.gallery-slide img,
.gallery-slide video {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border: 1.5px solid var(--ink, #141414);
  background: var(--paper-2, #E8DCBC);
  display: block;
}
.gallery-slide .gallery-caption {
  font-family: var(--ff-mono, "Space Mono", monospace);
  font-size: 0.68rem;
  color: var(--ink-faint, #8a8075);
  margin-top: 0.3rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0 0.5rem;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  background: rgba(20,20,20,0.78);
  color: #F1E8D0;
  border: 1.5px solid #F1E8D0;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  user-select: none;
  transition: background 0.15s;
}
.gallery-arrow:hover { background: #141414; }
.gallery-arrow.prev { left: 0.4rem; }
.gallery-arrow.next { right: 0.4rem; }
.gallery-arrow[disabled] { opacity: 0.25; cursor: default; }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.gallery-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(27, 58, 92, 0.25);
  cursor: pointer;
  transition: background 0.15s;
}
.gallery-dot.active { background: var(--blue, #1B3A5C); }
@media (min-width: 700px) {
  .gallery-slide { flex-basis: 70%; }
}

/* ============ 投稿バナー ============ */
.submit-banner {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.1rem;
  background: var(--paper-2, #E8DCBC);
  border: 1.5px solid var(--blue, #1B3A5C);
  border-left: 6px solid var(--red, #E04A2E);
  box-shadow: 3px 3px 0 var(--blue, #1B3A5C);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.submit-banner-head {
  font-family: var(--ff-mono, "Space Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--blue, #1B3A5C);
  text-transform: uppercase;
}
.submit-banner-title {
  font-family: var(--ff-display, "Shippori Mincho B1", serif);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink, #141414);
}
.submit-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}
.submit-banner-btn {
  font-family: var(--ff-mono, "Space Mono", monospace);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  border: 1.5px solid var(--ink, #141414);
  background: var(--paper, #F1E8D0);
  box-shadow: 3px 3px 0 var(--blue, #1B3A5C);
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--ink, #141414);
  transition: transform 0.12s, box-shadow 0.12s;
}
.submit-banner-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--blue, #1B3A5C);
}

/* ============ モーダル ============ */
.submit-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 20, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  overflow-y: auto;
}
.submit-modal-overlay[hidden] { display: none; }
.submit-modal {
  background: var(--paper, #F1E8D0);
  border: 1.5px solid var(--ink, #141414);
  box-shadow: 6px 6px 0 var(--blue, #1B3A5C);
  max-width: 540px;
  width: 100%;
  padding: 1.2rem 1.3rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.submit-modal-close {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink, #141414);
  width: 36px; height: 36px;
  line-height: 1;
}
.submit-modal h2 {
  font-family: var(--ff-display, serif);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--ink, #141414);
}
.submit-intro {
  font-size: 0.85rem;
  color: var(--ink-dim, #4a4540);
  margin-bottom: 0.85rem;
  line-height: 1.6;
}
.submit-section {
  border: 1.5px solid var(--ink-dim, #4a4540);
  padding: 0.6rem 0.9rem 0.85rem;
  margin: 0 0 0.9rem;
}
.submit-section legend {
  font-family: var(--ff-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 0.5rem;
  color: var(--blue, #1B3A5C);
}
.submit-thanks {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
}
.submit-thanks-icon {
  font-size: 2.5rem;
  color: var(--blue, #1B3A5C);
  background: var(--paper-2, #E8DCBC);
  border: 2px solid var(--blue, #1B3A5C);
  border-radius: 50%;
  width: 64px; height: 64px;
  line-height: 60px;
  margin: 0 auto 0.8rem;
  font-weight: 700;
}
.submit-thanks h3 {
  font-family: var(--ff-display, serif);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--ink, #141414);
}
.submit-thanks p {
  color: var(--ink-dim, #4a4540);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.submit-form label {
  display: block;
  font-family: var(--ff-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--blue, #1B3A5C);
  margin: 0.7rem 0 0.25rem;
  text-transform: uppercase;
}
.submit-form input[type="text"],
.submit-form input[type="number"],
.submit-form select,
.submit-form textarea {
  width: 100%;
  font-family: var(--ff-body, sans-serif);
  font-size: 0.92rem;
  padding: 0.45rem 0.6rem;
  border: 1.5px solid var(--ink-dim, #4a4540);
  background: #fff;
  color: var(--ink, #141414);
  box-sizing: border-box;
}
.submit-form textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}
.submit-form input[type="file"] {
  font-family: var(--ff-mono, monospace);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}
.submit-preview {
  margin-top: 0.5rem;
  max-width: 100%;
  max-height: 220px;
  border: 1.5px solid var(--ink-dim, #4a4540);
  display: none;
}
.submit-preview.active { display: block; }
.submit-captcha {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.submit-captcha .question {
  font-family: var(--ff-mono, monospace);
  font-size: 0.95rem;
  color: var(--ink, #141414);
  font-weight: 700;
}
.submit-captcha input {
  width: 80px !important;
  text-align: center;
}
.submit-note {
  font-size: 0.75rem;
  color: var(--ink-faint, #8a8075);
  line-height: 1.6;
  margin-top: 0.8rem;
}
.submit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}
.submit-btn-primary, .submit-btn-secondary {
  font-family: var(--ff-mono, monospace);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 0.55rem 1.2rem;
  border: 1.5px solid var(--ink, #141414);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.submit-btn-primary {
  background: var(--blue, #1B3A5C);
  color: var(--paper, #F1E8D0);
  box-shadow: 3px 3px 0 var(--ink, #141414);
}
.submit-btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink, #141414);
}
.submit-btn-secondary {
  background: transparent;
  color: var(--ink, #141414);
}
.submit-btn-primary[disabled] {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}
.submit-status {
  margin-top: 0.6rem;
  font-family: var(--ff-mono, monospace);
  font-size: 0.78rem;
  min-height: 1.3em;
}
.submit-status.error { color: var(--red, #E04A2E); }
.submit-status.ok    { color: var(--blue, #1B3A5C); font-weight: 700; }
