/**
 * Sunucu Ekle / Düzenle Form — Premium Tasarım
 * v2.9.28 — MC-TR seviyesi modern, MCSepeti tema uyumlu
 */

.srvf-main {
  max-width: 980px;
  padding-bottom: 80px;
}

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */

.srvf-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  background: linear-gradient(135deg, rgba(61, 214, 140, 0.1), rgba(91, 159, 255, 0.06));
  border: 1px solid rgba(61, 214, 140, 0.2);
  border-radius: 16px;
  margin: 18px 0 24px;
}

.srvf-hero__icon {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(61, 214, 140, 0.3));
  flex-shrink: 0;
}

.srvf-hero__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text, #fff);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: var(--font-display, inherit);
}

.srvf-hero__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.55;
}

.srvf-hero__desc strong { color: var(--text, #e6ecf3); }

/* ════════════════════════════════════════════════════════════════
   FORM SECTION
   ════════════════════════════════════════════════════════════════ */

.srvf-form { display: flex; flex-direction: column; gap: 18px; }

.srvf-section {
  padding: 22px 24px;
  background: var(--bg-card, #1a1f2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
}

.srvf-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text, #e6ecf3);
  letter-spacing: -0.01em;
  font-family: var(--font-display, inherit);
}

.srvf-section__title small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0;
}

.srvf-section__num {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3DD68C, #2bb077);
  color: #0a0e13;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(61, 214, 140, 0.3);
}

.srvf-section__title i { font-size: 20px; }

.srvf-section__hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.6;
}

.srvf-section__hint i { font-size: 14px; color: #5B9FFF; }
.srvf-section__hint strong { color: var(--text, #e6ecf3); }

/* ════════════════════════════════════════════════════════════════
   FORM CONTROLS
   ════════════════════════════════════════════════════════════════ */

.srvf-row {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.srvf-row:last-child { margin-bottom: 0; }
.srvf-row--2col { grid-template-columns: 1fr 1fr; }
.srvf-row--3col { grid-template-columns: 1fr 1fr 1fr; }

.srvf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.srvf-field:last-child { margin-bottom: 0; }

.srvf-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text, #e6ecf3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.srvf-label small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
  text-transform: none;
  letter-spacing: 0;
}

.srvf-label i { font-size: 14px; color: #5B9FFF; }
.srvf-label .req { color: #ef4444; }

.srvf-input,
.srvf-textarea,
.srvf-select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text, #e6ecf3);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.srvf-input::placeholder,
.srvf-textarea::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.srvf-input:focus,
.srvf-textarea:focus,
.srvf-select:focus {
  outline: none;
  border-color: #3DD68C;
  background: rgba(61, 214, 140, 0.04);
}

.srvf-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.srvf-mono { font-family: ui-monospace, 'Courier New', monospace; font-size: 12px; }

.srvf-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.srvf-select option { background: #0a0e13; color: #fff; }

.srvf-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
}

.srvf-hint i { font-size: 12px; color: #5B9FFF; }
.srvf-hint strong { color: var(--text, #e6ecf3); }

.srvf-counter {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--text-muted, #94a3b8);
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.srvf-counter.is-near-limit { color: #fbbf24; }
.srvf-counter span { font-weight: 800; }

/* ════════════════════════════════════════════════════════════════
   OYUN MODLARI — Checkbox grid
   ════════════════════════════════════════════════════════════════ */

.srvf-mode-counter {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(61, 214, 140, 0.12);
  color: #3DD68C;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(61, 214, 140, 0.25);
}

.srvf-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.srvf-mode {
  cursor: pointer;
  display: block;
  position: relative;
}

.srvf-mode input { position: absolute; opacity: 0; pointer-events: none; }

.srvf-mode__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.15s ease;
}

.srvf-mode:hover .srvf-mode__inner {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(61, 214, 140, 0.3);
}

.srvf-mode.is-checked .srvf-mode__inner {
  background: linear-gradient(135deg, rgba(61, 214, 140, 0.18), rgba(61, 214, 140, 0.06));
  border-color: #3DD68C;
  box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.3), 0 4px 12px rgba(61, 214, 140, 0.15);
}

.srvf-mode.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.srvf-mode.is-disabled .srvf-mode__inner {
  background: rgba(255, 255, 255, 0.02);
}

.srvf-mode__icon { font-size: 18px; line-height: 1; flex-shrink: 0; }

.srvf-mode__name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text, #e6ecf3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.srvf-mode.is-checked .srvf-mode__name { color: #3DD68C; }

/* ════════════════════════════════════════════════════════════════
   VERSİYONLAR
   ════════════════════════════════════════════════════════════════ */

.srvf-ver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.srvf-ver {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.15s ease;
  position: relative;
}

.srvf-ver input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  position: relative;
}

.srvf-ver input:checked {
  background: #3DD68C;
  border-color: #3DD68C;
}

.srvf-ver input:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: solid #0a0e13;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.srvf-ver span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #e6ecf3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.srvf-ver:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(61, 214, 140, 0.3);
}

.srvf-ver.is-checked {
  background: linear-gradient(135deg, rgba(61, 214, 140, 0.15), rgba(61, 214, 140, 0.04));
  border-color: #3DD68C;
}

/* ════════════════════════════════════════════════════════════════
   UPLOAD ALANI
   ════════════════════════════════════════════════════════════════ */

.srvf-upload {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(61, 214, 140, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.15s ease;
  min-height: 100px;
}

.srvf-upload:hover {
  border-color: #3DD68C;
  background: rgba(61, 214, 140, 0.04);
}

.srvf-upload.is-loaded {
  border-style: solid;
  border-color: #3DD68C;
}

.srvf-upload__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 14px;
  cursor: pointer;
  text-align: center;
}

.srvf-upload__inner i {
  font-size: 28px;
  color: #3DD68C;
}

.srvf-upload__inner strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #e6ecf3);
}

.srvf-upload__inner small {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}

.srvf-upload__preview {
  display: none;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  background: #0a0e13;
}

.srvf-upload--square {
  aspect-ratio: 1;
  max-width: 200px;
}

.srvf-upload--square .srvf-upload__preview {
  aspect-ratio: 1;
  object-fit: cover;
  max-height: none;
  height: 100%;
}

/* ════════════════════════════════════════════════════════════════
   INFO BOX (Discord uyarısı)
   ════════════════════════════════════════════════════════════════ */

.srvf-info-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(88, 101, 242, 0.04));
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: 12px;
  margin-top: 14px;
}

.srvf-info-box__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(88, 101, 242, 0.18);
  border-radius: 8px;
  flex-shrink: 0;
}

.srvf-info-box__icon i {
  font-size: 20px;
  color: #5865F2;
}

.srvf-info-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text, #e6ecf3);
  font-size: 13px;
}

.srvf-info-box p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.7;
}

.srvf-info-box p strong {
  display: inline;
  color: #fbbf24;
  font-weight: 700;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════
   VOTIFIER TEST BUTONU
   ════════════════════════════════════════════════════════════════ */

.srvf-test-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: rgba(61, 214, 140, 0.15);
  color: #3DD68C;
  border: 1.5px solid rgba(61, 214, 140, 0.4);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.srvf-test-btn:hover:not(:disabled) {
  background: rgba(61, 214, 140, 0.25);
  border-color: #3DD68C;
  transform: translateY(-1px);
}

.srvf-test-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.srvf-test-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.srvf-test-msg--loading {
  background: rgba(91, 159, 255, 0.1);
  color: #5B9FFF;
  border: 1px solid rgba(91, 159, 255, 0.2);
}

.srvf-test-msg--ok {
  background: rgba(61, 214, 140, 0.12);
  color: #3DD68C;
  border: 1px solid rgba(61, 214, 140, 0.3);
}

.srvf-test-msg--err {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.srvf-test-msg i { font-size: 18px; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════
   SUBMIT
   ════════════════════════════════════════════════════════════════ */

.srvf-submit-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.srvf-cancel {
  color: var(--text-muted, #94a3b8) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.srvf-cancel:hover {
  color: var(--text, #e6ecf3) !important;
  background: rgba(255, 255, 255, 0.05);
}

.srvf-submit {
  flex: 1;
  max-width: 480px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #3DD68C 0%, #2bb077 100%);
  color: #0a0e13;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 24px rgba(61, 214, 140, 0.35),
              0 0 0 1px rgba(61, 214, 140, 0.2);
  letter-spacing: 0.04em;
  font-family: inherit;
}

.srvf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(61, 214, 140, 0.5),
              0 0 0 1px rgba(61, 214, 140, 0.4);
}

.srvf-submit i { font-size: 18px; }

@keyframes ph-spin { to { transform: rotate(360deg); } }
.ph-spin { animation: ph-spin 0.8s linear infinite; display: inline-block; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .srvf-row--2col,
  .srvf-row--3col { grid-template-columns: 1fr; }
  .srvf-hero { flex-direction: column; text-align: center; padding: 20px; }
  .srvf-mode-grid { grid-template-columns: repeat(2, 1fr); }
  .srvf-ver-grid { grid-template-columns: repeat(3, 1fr); }
  .srvf-section { padding: 18px 16px; }
  .srvf-section__title { font-size: 15px; }
  .srvf-submit-wrap { flex-direction: column-reverse; }
  .srvf-submit { width: 100%; }
}

@media (max-width: 575px) {
  .srvf-ver-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════════
   LIGHT TEMA
   ════════════════════════════════════════════════════════════════ */

[data-theme="light"] .srvf-section { background: #ffffff; border-color: rgba(15, 23, 42, 0.08); }
[data-theme="light"] .srvf-input,
[data-theme="light"] .srvf-textarea,
[data-theme="light"] .srvf-select { background: rgba(15, 23, 42, 0.03); color: #0f172a; border-color: rgba(15, 23, 42, 0.1); }
[data-theme="light"] .srvf-mode__inner { background: rgba(15, 23, 42, 0.03); border-color: rgba(15, 23, 42, 0.1); }
[data-theme="light"] .srvf-ver { background: rgba(15, 23, 42, 0.03); border-color: rgba(15, 23, 42, 0.1); }
[data-theme="light"] .srvf-upload { background: rgba(15, 23, 42, 0.02); }
