/* ============================================================
   Gooner Lounge — Auth & Profile Styles
   Matches main site theme (purple/pink gradients, glassmorphism)
   ============================================================ */

/* Reuse root variables from styles.css */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  z-index: 2;
}

/* ---------- GATEWAY (landing before login) ---------- */
.gateway {
  text-align: center;
  max-width: 440px;
  width: 100%;
}

.gateway-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}

.gateway-logo {
  width: 180px;
  height: 180px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(145, 70, 255, 0.3),
    0 8px 50px rgba(145, 70, 255, 0.5),
    0 20px 80px rgba(0, 0, 0, 0.6);
  animation: logoPulse 5s ease-in-out infinite;
}

.gateway-logo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 32px;
  background: conic-gradient(
    #9146ff 0deg,
    #ff2d78 90deg,
    #00c896 180deg,
    #9146ff 270deg,
    #9146ff 360deg
  );
  opacity: 0.35;
  z-index: -1;
  filter: blur(14px);
  animation: spinRing 8s linear infinite;
}

.gateway-brand {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.6rem, 9vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #c084fc 0%, #9146ff 40%, #ff2d78 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease infinite;
  filter: drop-shadow(0 0 24px rgba(145, 70, 255, 0.6));
}

.gateway-domain {
  font-size: 0.78rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 36px;
}

.gateway-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  max-width: 340px;
  margin: 0 auto 32px;
}

.gateway-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-signup {
  background: linear-gradient(135deg, #9146ff 0%, #ff2d78 100%);
  box-shadow: 0 6px 30px rgba(145, 70, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(145, 70, 255, 0.5);
  font-size: 1.05rem;
  padding: 18px 20px;
}

.btn-login-alt {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gateway-footer {
  margin-top: 36px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1.5px;
}

.gateway-footer a {
  color: rgba(145, 70, 255, 0.9);
  text-decoration: none;
}

/* ---------- FORM CARD ---------- */
.form-card {
  background: var(--glass, rgba(8, 8, 18, 0.72));
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 36px 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(145, 70, 255, 0.65), transparent);
}

.form-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border 0.2s, background 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(145, 70, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  font-family: 'Inter', sans-serif;
}

.form-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 6px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 18px 0;
  cursor: pointer;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #9146ff;
  cursor: pointer;
}

.form-submit {
  background: linear-gradient(135deg, #9146ff 0%, #ff2d78 100%);
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  box-shadow: 0 6px 30px rgba(145, 70, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.1s ease, filter 0.1s ease;
}

.form-submit:active {
  transform: scale(0.97);
  filter: brightness(0.9);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.form-link a {
  color: #c084fc;
  text-decoration: none;
  font-weight: 600;
}

.form-link a:hover {
  color: #fff;
}

.form-msg {
  text-align: center;
  font-size: 0.88rem;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  min-height: 20px;
}

.form-msg.error {
  background: rgba(255, 71, 87, 0.12);
  color: #ff6b7a;
  border: 1px solid rgba(255, 71, 87, 0.25);
}

.form-msg.success {
  background: rgba(0, 200, 150, 0.12);
  color: #00c896;
  border: 1px solid rgba(0, 200, 150, 0.25);
}

/* ---------- PROFILE PAGE ---------- */
.profile-container {
  width: 100%;
  max-width: 660px;
  margin: 60px auto;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

.profile-banner {
  width: 100%;
  height: 180px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(135deg, #9146ff 0%, #ff2d78 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.profile-banner-upload {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-card {
  background: var(--glass, rgba(8, 8, 18, 0.72));
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 22px 22px;
  padding: 0 28px 32px;
  position: relative;
}

.profile-pic-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin: -65px auto 16px;
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0a0a0f;
  background: #1a1a2e;
  box-shadow: 0 10px 40px rgba(145, 70, 255, 0.35);
}

.profile-pic-upload {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #9146ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #0a0a0f;
  font-size: 0.85rem;
}

.profile-username {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.5px;
}

.profile-handle {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.profile-bio {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 16px auto;
  max-width: 480px;
  white-space: pre-wrap;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(145, 70, 255, 0.12);
  color: #c084fc;
  border: 1px solid rgba(145, 70, 255, 0.28);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 auto 18px;
}

.profile-status-wrap {
  text-align: center;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.profile-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-tag.selected {
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.25), rgba(255, 45, 120, 0.25));
  border-color: rgba(145, 70, 255, 0.5);
  color: #fff;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-actions .btn-action {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-action.primary {
  background: linear-gradient(135deg, #9146ff 0%, #ff2d78 100%);
  border-color: rgba(145, 70, 255, 0.5);
}

.btn-action.danger {
  background: rgba(255, 71, 87, 0.15);
  border-color: rgba(255, 71, 87, 0.4);
  color: #ff6b7a;
}

/* Back link */
.back-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(5, 5, 15, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.back-link:hover { color: #fff; }

@media (max-width: 480px) {
  .form-card { padding: 28px 22px; }
  .form-title { font-size: 1.65rem; }
  .profile-banner { height: 140px; }
}

/* ===== PROFILE v2 ===== */

/* Custom tag chips */
.custom-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chip-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.40);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  margin-left: 2px;
  transition: color 0.15s;
  font-family: 'Inter', sans-serif;
}
.chip-remove:hover { color: #ff6b7a; }

/* Custom tag text input */
.custom-tag-input-wrap { margin-top: 10px; }
.custom-tag-input { font-size: 0.88rem; padding: 10px 14px; }

/* Social links */
.social-links-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.social-link-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
}
.social-icon {
  width: 28px;
  text-align: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.social-icon-ig {
  background: var(--ig-grad, linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.social-link-row .form-input {
  padding: 10px 14px;
  font-size: 0.88rem;
}
.social-coming-soon {
  font-size: 0.62rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,0.22);
  margin-left: 8px;
  vertical-align: middle;
}

/* Location field */
.location-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.location-row .form-input { flex: 1; }
.geo-btn {
  flex-shrink: 0;
  background: rgba(0,200,150,0.08);
  border: 1px solid rgba(0,200,150,0.25);
  color: var(--teal, #00c896);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.80rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.geo-btn:hover {
  background: rgba(0,200,150,0.16);
  border-color: rgba(0,200,150,0.45);
}
.geo-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Upload loading state */
.profile-banner-upload.loading,
.profile-pic-upload.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Select option background for dark theme */
.form-select option {
  background-color: #0d0d1a;
  color: #f0eeff;
}
/* === Gateway logo fix === */
.gateway-logo-wrap {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 28px;
}
.gateway-logo {
  width: 100%;
  height: auto;
  max-height: 340px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(0,0,0,0.2);
}
.gateway-logo-ring {
  inset: -6px;
  border-radius: 28px;
}
.gateway-domain { display: none; }
.gateway-brand { margin-top: 0; }

/* === Main site nav overlap fix === */
.page { padding-top: 110px !important; }
@media (max-width: 480px) {
  .page { padding-top: 120px !important; }
}
