/**
 * Pass Preview Styles
 * Visual representation of wallet passes
 */

.pass-preview-page {
  max-width: 1400px;
  margin: 0 auto;
}

.preview-controls {
  margin-bottom: 24px;
}

.preview-controls h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.control-group {
  margin-bottom: 16px;
}

.control-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.member-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f5f5f7;
  border-radius: 8px;
}

.member-id {
  color: #86868b;
  font-size: 14px;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.preview-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-card h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #1d1d1f;
}

.wallet-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  background: #f5f5f7;
  border-radius: 12px;
  padding: 24px;
}

/* Apple Wallet Pass Styles */
.apple-pass {
  width: 100%;
  max-width: 350px;
  background: linear-gradient(135deg, #3c414c 0%, #2c3038 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: white;
}

.pass-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.pass-logo {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-placeholder {
  font-size: 24px;
}

.pass-org-name {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.pass-body {
  padding: 20px;
}

.pass-primary-field {
  margin-bottom: 20px;
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.field-value {
  font-size: 16px;
  font-weight: 500;
}

.field-value.primary {
  font-size: 20px;
  font-weight: 600;
}

.pass-secondary-field {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pass-qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  margin-top: 20px;
}

.pass-qr-code canvas {
  border-radius: 8px;
}

.qr-label {
  font-size: 12px;
  color: #86868b;
  font-family: monospace;
}

.pass-back-preview {
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-toggle {
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 12px;
  cursor: pointer;
}

.pass-back-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.back-field {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-field:last-child {
  border-bottom: none;
}

/* Google Wallet Pass Styles */
.google-pass {
  width: 100%;
  max-width: 350px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pass-hero {
  height: 120px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  opacity: 0.7;
}

.hero-placeholder {
  padding: 20px;
}

.google-pass .pass-body {
  padding: 20px;
  color: #1d1d1f;
}

.pass-title {
  font-size: 12px;
  color: #86868b;
  margin-bottom: 4px;
  font-weight: 500;
}

.pass-header-value {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1d1d1f;
}

.pass-modules {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.text-module {
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e7;
}

.text-module:last-child {
  border-bottom: none;
}

.module-header {
  font-size: 11px;
  color: #86868b;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.module-body {
  font-size: 16px;
  color: #1d1d1f;
  font-weight: 500;
}

.google-pass .pass-qr-code {
  background: #f5f5f7;
  margin: 0 -20px -20px -20px;
  padding: 20px;
}

.preview-info {
  margin-top: 24px;
}

.preview-info h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.preview-info ul {
  list-style: none;
  padding: 0;
}

.preview-info li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.preview-info li:before {
  content: "•";
  position: absolute;
  left: 8px;
  color: #0071e3;
  font-weight: bold;
}

@media (max-width: 768px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
}
