/* === COMIC STYLE V2 === */
body.comic-mode {
  font-family: 'Montserrat', sans-serif;
  background: radial-gradient(circle at center, #0f0f0f, #050505);
  color: #fff;
  margin: 0;
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
html {
  height: 100%;
}
body {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh; /* ensures full scrollability */
}

body::-webkit-scrollbar {
  display: none;
}

body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

h1, h2, h3, label {
  font-family: 'Bangers', cursive;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.glow-title-wrapper {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f5026d, #00e5ff);
  box-shadow: 0 0 25px #f5026d, 0 0 10px #00e5ff;
}

.glow-title {
  font-size: 3.5rem;
  color: #fff;
  text-shadow: 0 0 6px #f5026d, 0 0 14px #f5026d, 0 0 28px #00e5ff;
}

.glow-sub {
  color: #ffd700;
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.comic-container {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.comic-button-row {
  text-align: center;
  margin-bottom: 2rem;
}

.comic-btn {
  background: linear-gradient(135deg, #ffd700, #ff00aa);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: 'Bangers', cursive;
  font-size: 1.25rem;
  color: #0f0f0f;
  cursor: pointer;
  box-shadow: 0 0 15px #ff00aa;
  transition: transform 0.2s ease;
}

.comic-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #ff00aa;
}

/* ============= CARD GRID ============= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: auto;
  gap: 1.5rem;
  justify-items: center;
  margin-bottom: 3rem;
}

.toggle-group {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

/* Larger checkboxes */
.toggle-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #ffc107;
  cursor: pointer;
  vertical-align: middle;
  margin: 0;
}

.card {
  position: relative;
  width: 180px;
  height: 260px;
  background: #1c1c1c;
  border: 2px solid #444;
  box-shadow:
    0 0 10px rgba(255, 223, 0, 0.3),
    0 0 4px rgba(255, 223, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 223, 0, 0.6);
}

.card-img {
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.comic-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.comic-modal-backdrop.active {
  display: flex;
}

.comic-modal {
  background: #1a1a1a;
  padding: 2rem;
  border: 4px dashed #ff00aa;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 30px #00e5ff;
  position: relative;
}

.modal-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #ffd700;
}

.comic-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #ff00aa;
  cursor: pointer;
}

.form-cluster {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-cluster input {
  background: #2a2a2a;
  border: 1px solid #444;
  padding: 0.75rem;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
}

.comic-only {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comic-only input {
  background: #2a2a2a;
  border: 1px solid #444;
  padding: 0.75rem;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
}


.legendary-toggle {
  margin-top: 0.5rem;
  font-weight: bold;
  color: #00e5ff;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.toggle-switch input {
  width: 40px;
  height: 20px;
  appearance: none;
  background: #444;
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
}

.toggle-switch input:checked {
  background: #f5026d;
}

.toggle-switch input::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 1px;
  transition: 0.3s;
}

.toggle-switch input:checked::before {
  transform: translateX(20px);
}

.toggle-text {
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  color: #ffd700;
}

.form-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.comic-preview-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.comic-preview-modal.active {
  display: flex;
}

.preview-content {
  position: relative;
  width: 80vw;
  max-width: 800px;
  height: auto;
  padding: 1rem;
  background: transparent;
}

.preview-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  border: 4px solid white;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  border-radius: 8px;
  object-fit: contain;
}


.close-preview {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 2rem;
  color: white;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 0 10px;
  line-height: 1.5;
  cursor: pointer;
  z-index: 1;
}
.social-blurb {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  max-width: 100%;
}

.social-blurb a {
  color: #ffdd57;
  text-decoration: none;
}

.social-blurb a:hover {
  text-decoration: underline;
}
/* === HEADER UPGRADE === */
.halftone-bg {
  background-image: radial-gradient(#111 1px, transparent 1px),
                    radial-gradient(#111 1px, transparent 1px);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  background-color: #0f0f0f;
  padding: 3rem 1rem;
  border-bottom: 5px solid #ffd700;
}

.header-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.glow-title-box {
  background: linear-gradient(135deg, #f5026d, #00e5ff);
  padding: 1.5rem 2.5rem;
  border-radius: 10px;
  box-shadow:
    0 0 20px #f5026d,
    0 0 40px #00e5ff;
  transform: rotate(-1.5deg);
  border: 3px dashed #ffd700;
  text-align: center;
}

.glow-title-box h1 {
  font-size: 4.5rem;
  margin: 0;
  color: white;
  text-shadow:
    2px 2px 0 #000,
    0 0 10px #f5026d,
    0 0 25px #00e5ff;
}

.glow-title-box .glow-sub {
  margin-top: 0.25rem;
  font-size: 1.5rem;
  color: #ffd700;
  text-shadow: 1px 1px 0 #000;
}

/* Fancy comic corner badge */
.fancy-corner {
  position: relative;
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  max-width: 500px;
  box-shadow:
    4px 4px 0 #ff00aa,
    8px 8px 0 #ffd700;
}

.fancy-corner::after {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  width: 30px;
  height: 30px;
  background: #f5026d;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}
body.comic-mode {
  background-color: #0f0f0f;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 0, 170, 0.08), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.08), transparent 30%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size: cover;
  background-blend-mode: screen;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* TITLE BLOCK */
.header-title-block {
  text-align: center;
  background: linear-gradient(135deg, #f5026d, #00e5ff);
  padding: 2rem 3rem;
  border: 4px dashed #ffd700;
  transform: rotate(-1.5deg);
  box-shadow: 0 0 30px #00e5ff, 0 0 60px #f5026d;
  border-radius: 12px;
  z-index: 2;
}

.header-title-block h1 {
  font-size: 5rem;
  color: white;
  margin: 0;
  text-shadow:
    2px 2px 0 #000,
    0 0 10px #f5026d,
    0 0 25px #00e5ff;
}

.header-title-block .glow-sub {
  font-size: 1.5rem;
  color: #ffd700;
  margin-top: 0.5rem;
  text-shadow: 1px 1px 0 #000;
}

/* TAGS */
.header-tags {
  display: flex;
  gap: 1rem;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 3;
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  text-transform: uppercase;
}

.issue-tag, .price-tag, .nyc-approval {
  padding: 0.3rem 0.6rem;
  background: #000;
  color: #ffd700;
  border: 2px solid #fff;
  box-shadow: 2px 2px 0 #ff00aa;
  transform: rotate(-6deg);
}

.price-tag {
  background: #f5026d;
  color: white;
  transform: rotate(8deg);
}

.nyc-approval {
  background: #00e5ff;
  color: #0f0f0f;
  transform: rotate(-3deg);
}
