/* Techspace Membership - Frontend shortcode styles */

.tsm-wrap {
  max-width: 560px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.tsm-form-card,
.tsm-user-view {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tsm-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.tsm-description,
.tsm-email-display {
  margin: 0 0 1.5rem;
  color: #64748b;
  font-size: 0.95rem;
}

.tsm-form {
  margin: 0;
}

.tsm-field {
  margin-bottom: 1.25rem;
}

.tsm-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: #374151;
}

.tsm-field input,
.tsm-field select {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
}

.tsm-field input:focus,
.tsm-field select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tsm-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.tsm-btn-primary {
  background-color: #2563eb;
  color: #fff;
}

.tsm-btn-primary:hover {
  background-color: #1d4ed8;
}

.tsm-btn-cancel {
  background-color: transparent;
  color: #dc2626;
  border: 1px solid #dc2626;
  margin-top: 0.75rem;
}

.tsm-btn-cancel:hover {
  background-color: #fef2f2;
}

.tsm-cancel-form {
  margin-top: 0.75rem;
}

.tsm-message {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.tsm-message-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.tsm-message-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.tsm-message-info {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.tsm-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.tsm-section-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  color: #1a1a1a;
}

.tsm-membership-grid {
  display: grid;
  gap: 1rem;
}

.tsm-membership-card {
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.tsm-membership-card.tsm-expired {
  background: #fef2f2;
  border-color: #fecaca;
}

.tsm-membership-card.tsm-unpaid {
  background: #fffbeb;
  border-color: #fcd34d;
}

.tsm-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.tsm-card-details {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.5rem;
}

.tsm-card-details dt {
  font-weight: 500;
  color: #64748b;
}

.tsm-card-details dd {
  margin: 0;
}

.tsm-expired-badge {
  margin: 0.75rem 0 0;
  padding: 0.25rem 0.5rem;
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.tsm-invoice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tsm-invoice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.tsm-invoice-item:last-child {
  border-bottom: none;
}

.tsm-invoice-item a {
  text-decoration: none;
  color: #2563eb;
}

.tsm-invoice-item a:hover {
  text-decoration: underline;
}

.tsm-invoice-item.tsm-unpaid a {
  font-weight: 600;
}

.tsm-invoice-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tsm-invoice-date {
  font-size: 0.8rem;
  color: #64748b;
}

.tsm-invoice-price {
  font-weight: 500;
  color: #1a1a1a;
}

.tsm-invoice-status {
  font-size: 0.8rem;
  color: #64748b;
}

.tsm-form-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: #64748b;
}

.tsm-back-link {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.tsm-back-link a {
  color: #64748b;
  text-decoration: none;
}

.tsm-back-link a:hover {
  color: #2563eb;
}
