/* ============================================
   Anzeigen-Karten — Premium redesign
   ============================================ */
.listing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 16px);
  padding: 14px 16px 14px 20px;
  margin-bottom: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: border-color 0.25s ease, background 0.25s ease,
              transform 0.3s var(--ease-spring, cubic-bezier(0.16,1,0.3,1)),
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  will-change: transform;
}

/* Gold left accent strip — dim at rest */
.listing-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  background: var(--color-accent);
  border-radius: 0 3px 3px 0;
  opacity: 0.2;
  transition: opacity 0.25s ease, top 0.25s ease, bottom 0.25s ease;
}

/* Subtle shimmer overlay on hover */
.listing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 197, 66, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .listing-card:hover {
    border-color: var(--color-accent-border, rgba(244,197,66,0.3));
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px) translateX(2px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(244, 197, 66, 0.12);
  }

  .listing-card:hover::before {
    opacity: 1;
    top: 0;
    bottom: 0;
    border-radius: 0 3px 3px 0;
  }

  .listing-card:hover::after {
    opacity: 1;
  }
}

.listing-card:active {
  transform: translateY(0) translateX(0);
  transition-duration: 0.1s;
}

.listing-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.5;
}

/* Price span gets gold color */
.listing-card p > span:first-child:not([class]) {
  color: var(--color-accent);
  font-weight: 700;
}

.favorites-list {
  margin-top: 16px;
}

/* ============================================
   Advertise Form
   ============================================ */
.listing-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 16px);
  padding: 20px;
}

.listing-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

.listing-input {
  background: var(--color-input-bg, rgba(255,255,255,0.04));
  color: var(--text);
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  border-radius: var(--radius-sm, 10px);
  padding: 11px 14px;
  font-size: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.listing-input:focus {
  outline: none;
  border-color: var(--color-accent-border, rgba(244,197,66,0.4));
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(244, 197, 66, 0.08),
              0 0 16px rgba(244, 197, 66, 0.06);
}

.listing-input::placeholder {
  color: var(--color-text-tertiary);
}

.listing-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.listing-status {
  margin: 0;
  min-height: 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: none;
  letter-spacing: normal;
}

.listing-status.error   { color: #ff7a7a; }
.listing-status.success { color: #4ade80; }

.listing-submit {
  background: var(--color-accent);
  border: 0;
  color: #111;
  padding: 13px 18px;
  border-radius: var(--radius-sm, 10px);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(244, 197, 66, 0.25);
}

.listing-submit:hover {
  background: var(--color-accent-hover, #ffd45e);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 197, 66, 0.35);
}

.listing-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(244, 197, 66, 0.2);
}

.listing-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

/* ============================================
   Ad type toggle (Bieten / Suchen)
   ============================================ */
.ad-type-toggle {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.ad-type-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.ad-type-option input[type="radio"] {
  display: none;
}

.ad-type-option span {
  padding: 7px 20px;
  border-radius: 20px;
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
              box-shadow 0.2s ease;
  user-select: none;
  letter-spacing: 0.02em;
}

.ad-type-option input[type="radio"]:checked + span {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #111;
  box-shadow: 0 2px 12px rgba(244, 197, 66, 0.3);
}

.ad-type-option span:hover {
  border-color: var(--color-accent-border, rgba(244,197,66,0.3));
  color: var(--text);
}

/* ============================================
   Type & Status Badges
   ============================================ */
.ad-type-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ad-type-badge--bieten {
  background: rgba(244, 197, 66, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(244, 197, 66, 0.25);
}

.ad-type-badge--suchen {
  background: rgba(99, 179, 237, 0.15);
  color: #63b3ed;
  border: 1px solid rgba(99, 179, 237, 0.25);
}

/* Light mode card */
:root.light-mode .listing-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

:root.light-mode .listing-card:hover {
  background: #fafafa;
  border-color: rgba(224, 168, 0, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(224, 168, 0, 0.12);
}

:root.light-mode .listing-form {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

:root.light-mode .listing-input {
  background: #f9f9f9;
  border-color: rgba(0, 0, 0, 0.1);
}
