/* Glassmorphism marketplace UI */

.wpmm-glass-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1.5rem;
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

.wpmm-form-card {
  margin-bottom: 2rem;
}

.wpmm-form-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.wpmm-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.wpmm-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  grid-column: span 2;
}

.wpmm-input,
.wpmm-textarea {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.35);
  color: #e5e7eb;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.wpmm-textarea {
  border-radius: 16px;
  min-height: 120px;
  resize: vertical;
}

.wpmm-input:focus,
.wpmm-textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.8);
  background: rgba(15, 23, 42, 0.6);
}

.wpmm-type-toggle {
  display: inline-flex;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 999px;
  padding: 0.25rem;
}

.wpmm-type-toggle label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  color: #cbd5f5;
  font-size: 0.85rem;
}

.wpmm-type-toggle input[type="radio"] {
  appearance: none;
  width: 0;
  height: 0;
  margin: 0;
}

.wpmm-type-toggle label span {
  position: relative;
  padding-left: 1.4rem;
}

.wpmm-type-toggle label span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.7);
}

.wpmm-type-toggle label span::after {
  content: "";
  position: absolute;
  left: 0.12rem;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #0ea5e9;
  transition: transform 0.15s ease;
}

.wpmm-type-toggle input[type="radio"]:checked + span {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(59, 130, 246, 0.9));
  color: #0f172a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.45);
}

.wpmm-type-toggle input[type="radio"]:checked + span::before {
  border-color: transparent;
}

.wpmm-type-toggle input[type="radio"]:checked + span::after {
  transform: translateY(-50%) scale(1);
}

.wpmm-button {
  grid-column: span 2;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #eff6ff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  justify-self: flex-start;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.55);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease;
}

.wpmm-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.wpmm-button:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.5);
}

.wpmm-login-message {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.wpmm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.wpmm-listing-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.wpmm-image-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.wpmm-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
}

.wpmm-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.wpmm-badge-ask {
  background: rgba(59, 130, 246, 0.2);
  color: #1d4ed8;
}

.wpmm-badge-sell {
  background: rgba(16, 185, 129, 0.2);
  color: #047857;
}

.wpmm-card-title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.wpmm-card-excerpt {
  font-size: 0.9rem;
  color: #0f172a;
  max-height: 5.3em;
  overflow: hidden;
}

.wpmm-contact {
  margin-top: 0.7rem;
  font-size: 0.85rem;
}

.wpmm-contact-item {
  display: flex;
  gap: 0.35rem;
}

.wpmm-contact-item span {
  font-weight: 600;
}

.wpmm-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0ea5e9;
  text-decoration: none;
}

.wpmm-link::after {
  content: "↗";
  font-size: 0.85em;
}

.wpmm-empty {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(148, 163, 184, 0.7);
}

.wpmm-single-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #0f172a, #020617 55%, #111827);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.wpmm-single-container {
  max-width: 860px;
  width: 100%;
}

.wpmm-single-card {
  padding: 0;
}

.wpmm-single-image img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.wpmm-single-title {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.7rem;
}

.wpmm-single-content {
  font-size: 0.98rem;
  color: #e5e7eb;
  margin-bottom: 1rem;
}

.wpmm-single-contact {
  margin-bottom: 1rem;
}

.wpmm-comments {
  margin-top: 1.4rem;
}

.wpmm-comment-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.wpmm-comment {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.wpmm-comment-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.wpmm-comment-date {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.2rem;
}

.wpmm-comment-content {
  font-size: 0.9rem;
}

.wpmm-comment-form {
  margin-top: 0.5rem;
}

.wpmm-comment-form .wpmm-button {
  justify-self: flex-start;
}

@media (max-width: 768px) {
  .wpmm-form {
    grid-template-columns: 1fr;
  }
  .wpmm-field-group,
  .wpmm-button {
    grid-column: span 1;
  }
}


