/* ─────────────────────────────────────────────────────────────────────────────
   BTT Submit Form Styles
   Matches blacktraveltube.com dark theme: bg #111, accent #C8A95B (gold)
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --btt-bg:         #111111;
  --btt-card:       #1a1a1a;
  --btt-border:     #2a2a2a;
  --btt-accent:     #C8A95B;
  --btt-accent-dk:  #a88940;
  --btt-text:       #f0f0f0;
  --btt-muted:      #888888;
  --btt-success:    #46b450;
  --btt-error:      #e63946;
  --btt-radius:     10px;
  --btt-transition: 0.25s ease;
}

/* ── Wrapper ───────────────────────────────────────────────────────────────── */

.btt-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--btt-text);
}

/* ── URL input zone ────────────────────────────────────────────────────────── */

.btt-url-zone {
  background: var(--btt-card);
  border: 1px solid var(--btt-border);
  border-radius: var(--btt-radius);
  padding: 28px 24px;
  margin-bottom: 16px;
}

.btt-field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--btt-muted);
  margin-bottom: 8px;
}

.btt-field-label span.required {
  color: var(--btt-accent);
  margin-left: 2px;
}

.btt-url-input {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--btt-border);
  border-radius: 8px;
  color: var(--btt-text);
  font-size: 15px;
  padding: 14px 16px;
  transition: border-color var(--btt-transition);
  box-sizing: border-box;
}

.btt-url-input:focus {
  outline: none;
  border-color: var(--btt-accent);
}

.btt-url-input::placeholder { color: #555; }

/* ── Spinner ───────────────────────────────────────────────────────────────── */

#btt-spinner {
  display: none;
  text-align: center;
  padding: 12px 0;
  color: var(--btt-muted);
  font-size: 13px;
}

#btt-spinner.btt-visible { display: block; }

#btt-spinner::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--btt-border);
  border-top-color: var(--btt-accent);
  border-radius: 50%;
  animation: btt-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes btt-spin { to { transform: rotate(360deg); } }

/* ── Video preview card ────────────────────────────────────────────────────── */

#btt-video-preview {
  display: none;
  background: var(--btt-card);
  border: 1px solid var(--btt-accent);
  border-radius: var(--btt-radius);
  overflow: hidden;
  margin-bottom: 16px;
  animation: btt-fade-in 0.3s ease;
}

#btt-video-preview.btt-visible { display: block; }

.btt-preview-inner {
  display: flex;
  gap: 0;
}

.btt-preview-thumb {
  position: relative;
  flex: 0 0 200px;
  overflow: hidden;
}

.btt-preview-thumb img {
  width: 200px;
  height: 113px;
  object-fit: cover;
  display: block;
}

.btt-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}

.btt-preview-info {
  padding: 14px 16px;
  flex: 1;
  min-width: 0;
}

.btt-preview-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btt-preview-channel {
  font-size: 12px;
  color: var(--btt-muted);
  margin-bottom: 10px;
}

.btt-preview-channel a { color: var(--btt-accent); text-decoration: none; }
.btt-preview-channel a:hover { text-decoration: underline; }

.btt-preview-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.btt-badge-success {
  background: rgba(70,180,80,0.15);
  color: var(--btt-success);
  border: 1px solid rgba(70,180,80,0.3);
}

/* ── User fields panel ─────────────────────────────────────────────────────── */

#btt-user-fields {
  display: none;
  animation: btt-fade-in 0.35s ease;
}

#btt-user-fields.btt-visible { display: block; }

.btt-fields-card {
  background: var(--btt-card);
  border: 1px solid var(--btt-border);
  border-radius: var(--btt-radius);
  padding: 28px 24px;
  margin-bottom: 16px;
}

.btt-fields-card h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--btt-accent);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--btt-border);
}

/* ── Field grid ────────────────────────────────────────────────────────────── */

.btt-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.btt-field-row.full { grid-template-columns: 1fr; }

@media (max-width: 520px) {
  .btt-field-row { grid-template-columns: 1fr; }
}

.btt-field-group { display: flex; flex-direction: column; }

/* ── Input / Select ────────────────────────────────────────────────────────── */

.btt-input,
.btt-select {
  background: #0d0d0d;
  border: 1px solid var(--btt-border);
  border-radius: 8px;
  color: var(--btt-text);
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color var(--btt-transition);
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.btt-input:focus,
.btt-select:focus {
  outline: none;
  border-color: var(--btt-accent);
  box-shadow: 0 0 0 2px rgba(200,169,91,0.15);
}

.btt-input::placeholder { color: #555; }

.btt-select option { background: #1a1a1a; }

.btt-field-hint {
  font-size: 11px;
  color: var(--btt-muted);
  margin-top: 5px;
}

/* ── Travel style checkboxes ───────────────────────────────────────────────── */

.btt-style-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.btt-style-chip {
  position: relative;
}

.btt-style-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.btt-style-chip label {
  display: inline-block;
  padding: 7px 14px;
  background: #0d0d0d;
  border: 1px solid var(--btt-border);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--btt-transition);
  user-select: none;
}

.btt-style-chip input:checked + label {
  background: rgba(200,169,91,0.15);
  border-color: var(--btt-accent);
  color: var(--btt-accent);
}

.btt-style-chip label:hover {
  border-color: var(--btt-accent);
}

/* ── OAuth verify section ──────────────────────────────────────────────────── */

.btt-verify-section {
  background: rgba(200,169,91,0.07);
  border: 1px solid rgba(200,169,91,0.2);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btt-verify-text {
  flex: 1;
  font-size: 13px;
  color: var(--btt-muted);
  min-width: 200px;
}

.btt-verify-text strong {
  color: var(--btt-text);
  display: block;
  margin-bottom: 2px;
}

#btt-oauth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--btt-transition);
}

#btt-oauth-btn:hover { opacity: 0.9; }

#btt-oauth-btn svg { width: 18px; height: 18px; }

#btt-verified-badge {
  display: none;
  background: rgba(70,180,80,0.15);
  border: 1px solid rgba(70,180,80,0.3);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--btt-success);
}

#btt-verified-badge.btt-visible { display: inline-flex; align-items: center; gap: 6px; }

.btt-verified-icon { font-size: 16px; }

/* ── Submit button ─────────────────────────────────────────────────────────── */

#btt-submit-btn {
  width: 100%;
  background: var(--btt-accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 16px;
  cursor: pointer;
  transition: background var(--btt-transition), transform var(--btt-transition);
  text-transform: uppercase;
}

#btt-submit-btn:hover:not(:disabled) {
  background: var(--btt-accent-dk);
  transform: translateY(-1px);
}

#btt-submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* ── Messages ──────────────────────────────────────────────────────────────── */

.btt-message {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.btt-message.btt-visible { display: block; }

.btt-message-error {
  background: rgba(230,57,70,0.12);
  border: 1px solid rgba(230,57,70,0.3);
  color: #ff6b6b;
}

.btt-message-success {
  background: rgba(70,180,80,0.12);
  border: 1px solid rgba(70,180,80,0.3);
  color: var(--btt-success);
}

.btt-message-info {
  background: rgba(200,169,91,0.1);
  border: 1px solid rgba(200,169,91,0.25);
  color: var(--btt-accent);
}

/* ── Success state ─────────────────────────────────────────────────────────── */

.btt-success-state {
  text-align: center;
  padding: 60px 20px;
}

.btt-success-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.btt-success-state h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--btt-accent);
}

.btt-success-state p {
  font-size: 16px;
  color: var(--btt-muted);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Animations ────────────────────────────────────────────────────────────── */

@keyframes btt-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Admin styles (minimal — loaded only in WP admin) ──────────────────────── */

.btt-admin .btt-tier {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.btt-tier-influencer { background: #fff3cd; color: #856404; }
.btt-tier-creator    { background: #cfe2ff; color: #084298; }
.btt-tier-traveler   { background: #d1e7dd; color: #0f5132; }
