/* =========================
   SUBMISSIONS SECTION
========================= */
.submissions {
  padding: 50px 0 120px;
  text-align: center;
}

.submissions h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
}

.submissions .intro {
  max-width: 900px;
  margin: 0 auto 35px;
  padding: 0 25px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
}

/* =========================
   FORM CARD
========================= */
.form-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 25px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 1);
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 25px;
}

/* =========================
   FORM FIELDS
========================= */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  opacity: 0.95;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  color: white;

  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(186, 85, 211, 0.9);
  box-shadow: 0 0 18px rgba(186, 85, 211, 0.35);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.full {
  grid-column: 1 / -1;
}

.hint {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.4;
}

/* =========================
   STATUS MESSAGES
========================= */
.error-box,
.success-box {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: white;
}

.error-box {
  border: 1px solid rgba(255, 80, 80, 0.8);
  background: rgba(255, 80, 80, 0.12);
  box-shadow: 0 0 18px rgba(255, 80, 80, 0.15);
}

.success-box {
  border: 1px solid rgba(80, 255, 150, 0.65);
  background: rgba(80, 255, 150, 0.10);
  box-shadow: 0 0 18px rgba(80, 255, 150, 0.12);
}

/* =========================
   ACTION BUTTONS
========================= */
.actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.btn {
  padding: 12px 18px;
  font-size: 15px;
  color: white;
  cursor: pointer;

  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);

  transition: transform 0.25s, box-shadow 0.25s, text-shadow 0.25s;
  text-decoration: none;
  user-select: none;
}

.social-summary {
  cursor: pointer;
  padding: 6px 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, text-shadow 0.25s ease;
}

.social-summary:hover {
  text-shadow: 0 0 15px purple;
  box-shadow: 0 0 30px rgba(186, 85, 211, 0.45);
}

.btn:hover {
  transform: scale(1.02);
  text-shadow: 0 0 15px purple;
  box-shadow: 0 0 30px rgba(186, 85, 211, 0.45);
}

.btn-primary {
  border-color: rgba(186, 85, 211, 0.9);
  background: rgba(186, 85, 211, 0.18);
}

.mini {
  font-size: 14px;
  opacity: 0.85;
}

/* =========================
   SUBSCRIBE PROMPT (MODAL)
========================= */
.subscribe-prompt {
  position: fixed;
  inset: 0;
  display: none; /* JS toggles */
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.75);
  z-index: 2147483647;
}

.prompt-card {
  max-width: 480px;
  width: 90%;
  padding: 32px;

  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  text-align: center;

  box-shadow: 0 0 40px rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
}

.prompt-card h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

.prompt-card p {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.95;
}

.prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
/* =========================
   SUBSCRIBE MODAL – HARD FIX
========================= */
#subscribePrompt {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.85);

  z-index: 999999 !important;

  /* BREAK OUT of all parent contexts */
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  isolation: isolate;

  pointer-events: auto;
}

#subscribePrompt .prompt-card {
  background: rgba(0, 0, 0, 0.9);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);

  max-width: 480px;
  width: 90%;
  padding: 32px;

  text-align: center;
  box-shadow: 0 0 60px rgba(0,0,0,0.95);
  backdrop-filter: blur(8px);
}

/* Submitting state */
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* =========================
   FEATURED SUBMISSIONS GRID
========================= */
.submission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto; /* centers grid */
  justify-items: center; /* centers cards */
}

/* Limit to 3 per row on large screens */
@media (min-width: 900px) {
  .submission-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   FEATURED CARD
========================= */
.submission-card {
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.submission-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

.submission-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* =========================
   CARD TEXT
========================= */
.submission-card .card-body {
  padding: 14px 16px 18px;
  text-align: center;
}

.submission-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.submission-card .subtitle {
  font-size: 14px;
  opacity: 0.75;
}
