/* =====================================================
   GROUP CREATE — Match Create Post visual language
   (Still isolated to .gc-* so it won't affect other pages)
   ===================================================== */


.gc-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 12px;
}



.gc-input,
.select {
  background: #1a1a1d;
  color: #e7e7e7;
  border: 1px solid #2d2d31;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gc-input::placeholder {
  color: #888;
}

.gc-input:focus,
.gc-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ffd74033;
  border-color: #ffd740;
  background: #1a1a1d;
  color: #fff;
}




/* Card: match the Post card "yellow border" feel */
.gc-card {
  background: rgba(15, 15, 18, 0.72);
  border: 1px solid rgba(255, 215, 64, 0.55); /* closer to post yellow */
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gc-card:hover {
  border-color: #ffd740;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 2px #ffd74033;
}

.gc-form {
  padding: 18px;
}

.gc-field {
  margin-bottom: 16px;
}

.gc-label {
  display: block;
  margin-bottom: 8px;
  color: #e7e7e7;
  /* font-weight: 600; */
}

/* ---- Inputs: same tokens as create_post.css ---- */
/* IMPORTANT: We do NOT force file inputs into the same styling,
   because Bootstrap's file input looks better when left alone. */

.gc-form input[type="text"],
.gc-form input[type="password"],
.gc-form input[type="url"],
.gc-form textarea,
.gc-form select {
  background: #1a1a1d;
  color: #e7e7e7;
  border: 1px solid #2d2d31;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  display: block;
  padding: 10px 12px;
}

.gc-form input[type="text"]::placeholder,
.gc-form input[type="password"]::placeholder,
.gc-form input[type="url"]::placeholder,
.gc-form textarea::placeholder {
  color: #888;
}

.gc-form input[type="text"]:focus,
.gc-form input[type="password"]:focus,
.gc-form input[type="url"]:focus,
.gc-form textarea:focus,
.gc-form select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ffd74033;
  border-color: #ffd740;
  background: #1a1a1d;
  color: #fff;
}

.gc-form select option {
  background: #1a1a1d;
  color: #e7e7e7;
}

.gc-form textarea {
  min-height: 170px;
  resize: vertical;
}

/* ---- File input: make it match Create Post ----
   Create Post uses: class="form-control post-input" on the file input.
   Since we can't rely on widget classes here, we selectively style file inputs
   but keep the native Bootstrap structure (Choose file / No file chosen).
*/
.gc-form input[type="file"] {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid #2d2d31;
  background: #1a1a1d;
  color: #e7e7e7;
  padding: 6px 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Modern browsers: style the button part */
.gc-form input[type="file"]::file-selector-button {
  background: #ffd740;
  color: #111;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 600;
  margin-right: 10px;
  cursor: pointer;
}

.gc-form input[type="file"]::file-selector-button:hover {
  background: #f2c400;
}

.gc-form input[type="file"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ffd74033;
  border-color: #ffd740;
}

/* Help + errors */
.gc-help {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #9aa0a6;
}

.gc-error {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #ffd740;
}

.gc-alert {
  background: rgba(220, 53, 69, 0.14);
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* Actions: match Create Post button feel */
.gc-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.gc-btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 16px;
}

/* Primary */
.gc-btn-primary {
  background-color: #ffd740;
  border: none;
  color: #111 !important;
}

.gc-btn-primary:hover {
  background-color: #f2c400;
}

/* Secondary */
.gc-btn-secondary {
  background: transparent;
  border: 1px solid #2d2d31;
  color: #e7e7e7 !important;
}

.gc-btn-secondary:hover {
  border-color: #ffd740;
}
