/* Takım Bul — Bizon teması ile uyumlu, kompakt wizard + ilan listesi */

.tf-page-wrap {
  padding-bottom: 72px;
}

.tf-page-wrap .section-header {
  margin-bottom: 28px;
}

.tf-page-wrap .section-desc {
  max-width: 560px;
  font-size: 1rem;
}

/* ─── Wizard kartı (auth-card benzeri) ─── */
.tf-wizard-card {
  width: 100%;
  max-width: 580px;
  margin: 0 auto 40px;
  background: linear-gradient(180deg, rgba(26, 0, 16, 0.92), rgba(17, 0, 8, 0.96));
  border: 1px solid rgba(255, 26, 26, 0.22);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.tf-wizard-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

/* Steps */
.tf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.tf-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background 0.2s;
}

.tf-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
  flex-shrink: 0;
}

.tf-step-icon svg {
  width: 12px;
  height: 12px;
  display: none;
}

.tf-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
}

.tf-step.is-active {
  border-color: rgba(255, 26, 26, 0.45);
  background: rgba(255, 26, 26, 0.08);
}

.tf-step.is-active .tf-step-icon {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.tf-step.is-active .tf-step-label {
  color: var(--white);
}

.tf-step.is-done .tf-step-icon {
  background: rgba(255, 26, 26, 0.15);
  border-color: transparent;
  color: var(--red);
  font-size: 0;
}

.tf-step.is-done .tf-step-icon svg {
  display: block;
}

.tf-step.is-done .tf-step-label {
  color: rgba(248, 240, 242, 0.75);
}

/* Alerts */
.tf-alert {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  margin-bottom: 14px;
  line-height: 1.4;
}

.tf-alert-error {
  background: rgba(255, 26, 26, 0.1);
  color: #ff8a8a;
  border: 1px solid rgba(255, 26, 26, 0.35);
}

.tf-alert-success {
  background: rgba(46, 204, 113, 0.1);
  color: #7af0b8;
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.tf-alert-info {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fde68a;
  margin-bottom: 16px;
}

.tf-wizard-card.is-locked {
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

/* Panes */
.tf-wizard-form {
  position: relative;
}

.tf-pane {
  animation: tfPaneIn 0.24s ease both;
}

.tf-pane[hidden] {
  display: none !important;
}

@keyframes tfPaneIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.tf-pane.is-back {
  animation-name: tfPaneBack;
}

@keyframes tfPaneBack {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.tf-pane-sub {
  font-size: 0.88rem;
  color: var(--gray);
  margin: 0 0 14px;
}

.tf-game-fields[hidden] {
  display: none !important;
}

.tf-about-field {
  margin-top: 14px;
}

/* Fields */
.tf-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

.tf-field--wide {
  grid-column: 1 / -1;
}

.tf-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 6px;
}

.tf-optional {
  font-weight: 500;
  color: var(--gray);
  text-transform: none;
  letter-spacing: 0;
}

.tf-input,
.tf-textarea,
.tf-select {
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, background-color 0.2s;
  color-scheme: dark;
}

.tf-input:focus,
.tf-textarea:focus,
.tf-select:focus {
  outline: none;
  border-color: var(--red);
  background-color: rgba(255, 26, 26, 0.06);
}

.tf-input.is-invalid,
.tf-textarea.is-invalid,
.tf-select.is-invalid {
  border-color: var(--red);
}

.tf-input::placeholder,
.tf-textarea::placeholder {
  color: rgba(153, 119, 136, 0.65);
}

.tf-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23997788' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.tf-select option,
.tf-input option {
  background-color: #1a0010;
  color: #f8f0f2;
}

.tf-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

/* Game tiles */
.tf-game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.tf-game-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}

.tf-game-tile:hover {
  border-color: rgba(255, 26, 26, 0.35);
  transform: translateY(-2px);
}

.tf-game-tile.is-selected {
  border-color: var(--red);
  background: rgba(255, 26, 26, 0.1);
  box-shadow: 0 0 0 2px rgba(255, 26, 26, 0.15);
}

.tf-game-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.tf-game-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
}

.tf-game-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}

.tf-game-tile.is-selected .tf-game-check {
  display: flex;
}

.tf-game-check svg {
  width: 10px;
  height: 10px;
}

/* Nav buttons */
.tf-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tf-wizard-nav-primary {
  display: flex;
  margin-left: auto;
  min-width: 0;
}

.tf-wizard-nav-primary .tf-btn-primary {
  margin-left: 0;
  min-width: 148px;
}

#tf-btn-next[hidden],
#tf-btn-submit[hidden] {
  display: none !important;
}

.tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s, background 0.2s;
}

.tf-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tf-btn-primary {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: #fff;
  margin-left: auto;
}

.tf-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 26, 26, 0.3);
}

.tf-btn-ghost {
  background: transparent;
  color: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tf-btn-ghost:hover:not(:disabled) {
  color: var(--white);
  border-color: rgba(255, 26, 26, 0.4);
}

/* ─── İlan listesi ─── */
.tf-listings-block {
  margin-top: 8px;
}

.tf-listings-block .tl-section-head {
  margin-bottom: 16px;
  align-items: flex-end;
}

.tf-listings-note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--gray);
}

.tf-listings-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tf-filter-input,
.tf-filter-select {
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  min-width: 120px;
}

.tf-filter-input::placeholder {
  color: var(--gray);
}

.tf-filter-input:focus,
.tf-filter-select:focus {
  outline: none;
  border-color: rgba(255, 26, 26, 0.45);
}

/* ─── İlan kartları ─── */
.tf-ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.tf-ad {
  background: linear-gradient(180deg, rgba(26, 0, 16, 0.88), rgba(17, 0, 8, 0.94));
  border: 1px solid rgba(255, 26, 26, 0.18);
  border-radius: 16px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}

.tf-ad:hover {
  border-color: rgba(255, 26, 26, 0.38);
  transform: translateY(-2px);
}

.tf-ad-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tf-ad-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tf-ad-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tf-ad-who {
  min-width: 0;
}

.tf-ad-name {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  overflow-wrap: anywhere;
}

.tf-ad-game {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.tf-ad-expiry {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.tf-ad-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.tf-ad-details li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tf-ad-detail--ig {
  grid-column: 1 / -1;
  gap: 6px !important;
}

.tf-ad-k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}

.tf-ad-v {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  overflow-wrap: anywhere;
}

.tf-ad-about {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tf-ad-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 26, 26, 0.08);
  border: 1px solid rgba(255, 26, 26, 0.22);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tf-ad-ig:hover {
  background: rgba(255, 26, 26, 0.16);
  border-color: var(--red);
  color: #fff;
}

.tf-ad-ig svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--red);
}

.tf-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 16px;
  color: var(--gray);
  font-size: 0.92rem;
}

.tf-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: tfShimmer 1.2s infinite;
  border-radius: 16px;
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@keyframes tfShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* legacy cleanup */
.tf-ad-card,
.tf-ad-stats {
  display: none;
}

/* Responsive */
@media (max-width: 720px) {
  .tf-wizard-card {
    padding: 18px 16px 16px;
  }

  .tf-field-grid {
    grid-template-columns: 1fr;
  }

  .tf-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tf-listings-filter {
    width: 100%;
  }

  .tf-filter-input,
  .tf-filter-select {
    flex: 1;
    min-width: 0;
  }

  .tf-wizard-nav {
    flex-wrap: wrap;
  }

  .tf-wizard-nav-primary {
    width: 100%;
  }

  .tf-wizard-nav-primary .tf-btn-primary {
    width: 100%;
    min-width: 0;
  }

  .tf-btn-ghost {
    order: 1;
  }

  .tf-ad-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tf-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tf-step-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tf-pane,
  .tf-game-tile,
  .tf-btn {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
