/* ââ LLAF Launcher Gallery âââââââââââââââââââââââââââââââââââââââ */
/* Matches Less Lethal AF site design:
   Fonts: Rubik (body), "Fjalla One" (headings)
   Brand orange: #ff6401
   Dark: #16181c
   Body text: #393e46
   Accent red (used in llp-*): #e84040
*/

.llaf-gallery-wrap,
.llaf-submit-wrap {
  font-family: Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #393e46;
}

/* ââ Page intro header âââââââââââââââââââââââââââââââââââââââââââ */
.llaf-gallery-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 3px solid #ff6401;
}
.llaf-gallery-header h2 {
  font-family: "Fjalla One", serif;
  font-size: 2em;
  color: #16181c;
  margin: 0 0 8px;
  letter-spacing: .02em;
}
.llaf-gallery-header p {
  font-size: 14px;
  color: #393e46;
  margin: 0;
  line-height: 1.6;
}

/* ââ Controls / Filters âââââââââââââââââââââââââââââââââââââââââââ */
.llaf-gallery-controls {
  margin-bottom: 22px;
  padding: 14px 16px;
  background: #f7f7f8;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.llaf-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.llaf-filter-row label {
  font-weight: 700;
  color: #16181c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.llaf-filter-row select {
  padding: 7px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-family: Rubik, sans-serif;
  background: #fff;
  color: #393e46;
  cursor: pointer;
  transition: border-color .15s;
}
.llaf-filter-row select:focus {
  outline: none;
  border-color: #ff6401;
  box-shadow: 0 0 0 3px rgba(255,100,1,.12);
}
.llaf-filter-divider {
  width: 1px;
  height: 20px;
  background: #d1d5db;
  margin: 0 4px;
}

/* ââ Grid âââââââââââââââââââââââââââââââââââââââââââââââââââââââ */
.llaf-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.llaf-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 48px 20px;
  font-size: 15px;
}
.llaf-empty-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

/* ââ Card ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */
.llaf-card {
  background: #fff;
  border: 1px solid #e2e4e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.llaf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(0,0,0,.12);
}

.llaf-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.llaf-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform .2s;
  padding: 6px;
  box-sizing: border-box;
}
.llaf-card:hover .llaf-card-img img {
  transform: scale(1.03);
}

.llaf-lightbox-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgba(22,24,28,.65);
  color: #fff;
  border: none;
  border-radius: 5px;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}
.llaf-card:hover .llaf-lightbox-btn { opacity: 1; }

.llaf-card-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.llaf-card-launcher {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #ff6401;
}
.llaf-card-caption {
  font-size: 13px;
  color: #393e46;
  line-height: 1.45;
  flex: 1;
}
.llaf-card-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.llaf-mod-tag {
  font-size: 10px;
  background: #fff8f2;
  color: #7a3000;
  border: 1px solid #ffd0a8;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 600;
}
.llaf-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f2;
}
.llaf-card-name {
  font-size: 11px;
  color: #393e46 !important;
}

/* ââ Vote button âââââââââââââââââââââââââââââââââââââââââââââââââ */
.llaf-vote-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid #e2e4e8;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #393e46;
  font-family: Rubik, sans-serif;
  transition: all .15s;
}
.llaf-vote-btn:hover,
.llaf-vote-btn.voted {
  background: #fff4f0;
  border-color: #ff6401;
  color: #cc4d00;
}
.llaf-heart { font-size: 13px; }

/* ââ Lightbox âââââââââââââââââââââââââââââââââââââââââââââââââââââ */
.llaf-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.llaf-lightbox-inner {
  background: #fff;
  border-radius: 10px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}
.llaf-lb-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #393e46;
  line-height: 1;
  z-index: 2;
}
.llaf-lb-close:hover { color: #16181c; }
.llaf-lb-img-wrap {
  background: #f4f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.llaf-lb-img-wrap img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}
.llaf-lb-details {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 3px solid #ff6401;
}
.llaf-lb-launcher {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #ff6401;
}
.llaf-lb-caption {
  font-family: "Fjalla One", serif;
  font-size: 18px;
  color: #16181c;
  line-height: 1.4;
}
.llaf-lb-mods {
  font-size: 13px;
  color: #393e46;
}
.llaf-lb-name {
  font-size: 12px;
  color: #555b65;
}

/* ââ Submit heading section âââââââââââââââââââââââââââââââââââââââ */
.llaf-submit-header {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid #ff6401;
}
.llaf-submit-header h2 {
  font-family: "Fjalla One", serif;
  font-size: 1.8em;
  color: #16181c;
  margin: 0 0 6px;
  letter-spacing: .02em;
}
.llaf-submit-intro {
  font-size: 14px;
  color: #393e46;
  margin: 0;
  line-height: 1.6;
}

/* ââ Submission Form âââââââââââââââââââââââââââââââââââââââââââââââ */
.llaf-submit-wrap {
  max-width: 700px;
}
.llaf-form-row { margin-bottom: 18px; }
.llaf-form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .llaf-form-two-col { grid-template-columns: 1fr; }
}
.llaf-form-group { display: flex; flex-direction: column; gap: 5px; }
.llaf-form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #16181c;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.llaf-req { color: #e84040; }
.llaf-hint { font-weight: 400; color: #555b65; font-size: 12px; text-transform: none; letter-spacing: 0; }

.llaf-form-group input[type="text"],
.llaf-form-group input[type="email"],
.llaf-form-group select,
.llaf-form-group textarea {
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: Rubik, sans-serif;
  color: #393e46;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  box-sizing: border-box;
}
.llaf-form-group input:focus,
.llaf-form-group select:focus,
.llaf-form-group textarea:focus {
  outline: none;
  border-color: #ff6401;
  box-shadow: 0 0 0 3px rgba(255,100,1,.12);
}

/* Mods grid */
.llaf-mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  padding: 12px;
  background: #f7f7f8;
  border: 1px solid #e2e4e8;
  border-radius: 6px;
}
.llaf-mod-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #393e46;
  cursor: pointer;
}
.llaf-mod-check input { cursor: pointer; accent-color: #ff6401; }

/* Upload area */
.llaf-upload-area {
  position: relative;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  background: #f7f7f8;
  transition: border-color .15s, background .15s;
  overflow: hidden;
}
.llaf-upload-area:hover,
.llaf-upload-area.dragover {
  border-color: #ff6401;
  background: #fff8f2;
}
.llaf-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}
.llaf-upload-label {
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #393e46;
  font-size: 14px;
  pointer-events: none;
}
.llaf-upload-icon { font-size: 28px; }
.llaf-upload-preview {
  padding: 14px;
  text-align: center;
}
.llaf-upload-preview img {
  max-height: 180px;
  max-width: 100%;
  border-radius: 6px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}
.llaf-upload-preview button {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  color: #393e46;
  font-family: Rubik, sans-serif;
}
.llaf-upload-preview button:hover { color: #e84040; border-color: #e84040; }

/* Submit button â matches site's orange-on-dark style */
.llaf-submit-btn {
  background: #ff6401;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: "Fjalla One", serif;
  letter-spacing: .04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, box-shadow .15s;
}
.llaf-submit-btn:hover:not(:disabled) {
  background: #cc4d00;
  box-shadow: 0 3px 10px rgba(255,100,1,.3);
}
.llaf-submit-btn:disabled { opacity: .7; cursor: not-allowed; }

.llaf-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: llaf-spin .65s linear infinite;
}
@keyframes llaf-spin { to { transform: rotate(360deg); } }

.llaf-form-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fff0f0;
  border: 1px solid #f5c2c2;
  border-left: 4px solid #e84040;
  border-radius: 6px;
  color: #c0392b;
  font-size: 13px;
}
.llaf-submit-success {
  padding: 16px 20px;
  background: #f2faf2;
  border: 1px solid #a3d9a3;
  border-left: 4px solid #27ae60;
  border-radius: 6px;
  color: #1e5e1e;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.llaf-success-icon { font-size: 22px; color: #27ae60; }

/* ââ Section divider (between gallery and form on same page) ââââââ */
.llaf-section-divider {
  margin: 48px 0 32px;
  border: none;
  border-top: 2px solid #e2e4e8;
  position: relative;
}
.llaf-section-divider::before {
  content: attr(data-label);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 16px;
  font-family: "Fjalla One", serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #555b65;
}

/* ââ Responsive âââââââââââââââââââââââââââââââââââââââââââââââââââ */
@media (max-width: 600px) {
  .llaf-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  .llaf-filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .llaf-filter-divider { display: none; }
}
