/* Welcome Sequence Generator Styles */

.wsg-container {
  max-width: 950px;
  margin: 0 auto;
  padding: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.wsg-intro {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border-left: 4px solid #a855f7;
  padding: 1.25rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.5rem;
}

.wsg-intro p {
  margin: 0;
  color: #6b21a8;
  line-height: 1.6;
}

.wsg-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wsg-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

/* Sequence Type Grid */
.wsg-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.wsg-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.wsg-type-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.wsg-type-btn.active {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border-color: #a855f7;
}

.wsg-type-icon {
  font-size: 2rem;
}

.wsg-type-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #111827;
}

.wsg-type-desc {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Form */
.wsg-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.wsg-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.wsg-field label {
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
}

.wsg-input {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wsg-input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.wsg-generate-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

/* Buttons */
.wsg-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  color: #374151;
}

.wsg-btn:hover:not(:disabled) {
  background: #f3f4f6;
}

.wsg-btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  border: none;
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.wsg-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
}

/* Output Section */
.wsg-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.wsg-output-header .wsg-section-title {
  margin: 0;
  padding: 0;
  border: none;
}

.wsg-output-actions {
  display: flex;
  gap: 0.5rem;
}

.wsg-sequence-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.wsg-info-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: #f3f4f6;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4b5563;
}

/* Email Tabs */
.wsg-email-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.75rem;
}

.wsg-email-tab {
  padding: 0.625rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.2s;
}

.wsg-email-tab:hover {
  background: #f3f4f6;
}

.wsg-email-tab.active {
  background: #a855f7;
  border-color: #a855f7;
  color: #fff;
}

/* Email Content */
.wsg-email-content {
  background: #f9fafb;
  border-radius: 10px;
  overflow: hidden;
}

.wsg-email-item {
  display: none;
  padding: 1.5rem;
}

.wsg-email-item.active {
  display: block;
}

.wsg-email-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.wsg-email-meta {
  flex: 1;
}

.wsg-email-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.wsg-email-timing {
  font-size: 0.8125rem;
  color: #6b7280;
}

.wsg-email-timing strong {
  color: #374151;
}

.wsg-email-copy-btn {
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
}

.wsg-email-copy-btn:hover {
  background: #f3f4f6;
}

.wsg-email-subject-wrap {
  margin-bottom: 1rem;
}

.wsg-email-subject-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.wsg-email-subject {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  padding: 0.75rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.wsg-email-body-wrap {
  margin-bottom: 1rem;
}

.wsg-email-body-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.wsg-email-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #374151;
  padding: 1rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
}

.wsg-email-goal {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: #6b21a8;
}

.wsg-email-goal strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Tips */
.wsg-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.wsg-tip {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.wsg-tip h3 {
  font-size: 0.9375rem;
  margin: 0 0 0.75rem 0;
  color: #111827;
}

.wsg-tip ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.7;
}

/* FAQ */
.wsg-faq details {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.wsg-faq details:last-child {
  border-bottom: none;
}

.wsg-faq summary {
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wsg-faq summary::-webkit-details-marker {
  display: none;
}

.wsg-faq summary::after {
  content: '+';
  font-size: 1.25rem;
  color: #6b7280;
}

.wsg-faq details[open] summary::after {
  content: '−';
}

.wsg-faq details p {
  margin: 0.75rem 0 0 0;
  color: #4b5563;
  line-height: 1.6;
}

/* Toast */
.wsg-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #a855f7;
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 9999;
}

.wsg-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .wsg-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wsg-output-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .wsg-output-actions {
    width: 100%;
  }
  
  .wsg-output-actions .wsg-btn {
    flex: 1;
    text-align: center;
  }
  
  .wsg-email-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }
  
  .wsg-email-tab {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .wsg-type-grid {
    grid-template-columns: 1fr;
  }
  
  .wsg-form-grid {
    grid-template-columns: 1fr;
  }
}
