/**
 * WooCommerce Connect & Onboarding Styles
 * Fully Responsive (Mobile, Tablet, Desktop)
 * Supports Dark & Light mode
 */

.woo-auth-card {
  max-width: 960px !important;
  width: 95% !important;
}

.woo-connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
  text-align: right;
}

.woo-col-card {
  background: var(--bg, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] .woo-col-card,
body.dark-mode .woo-col-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-color, #313244);
}

.woo-col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

[data-bs-theme="dark"] .woo-col-header,
body.dark-mode .woo-col-header {
  border-bottom-color: var(--border-color, #313244);
}

.woo-col-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.woo-col-icon.woo-icon-purple {
  background: rgba(127, 84, 179, 0.12);
  color: #7f54b3;
}

.woo-col-icon.woo-icon-blue {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
}

.woo-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0;
}

[data-bs-theme="dark"] .woo-col-title,
body.dark-mode .woo-col-title {
  color: #f1f5f9;
}

.woo-col-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary, #64748b);
  margin: 2px 0 0 0;
}

/* Steps list */
.woo-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.woo-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-primary, #334155);
  line-height: 1.5;
}

[data-bs-theme="dark"] .woo-step-item,
body.dark-mode .woo-step-item {
  color: #cbd5e1;
}

.woo-step-badge {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7f54b3;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

/* Credential Copy Boxes */
.woo-creds-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.woo-cred-box {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-bs-theme="dark"] .woo-cred-box,
body.dark-mode .woo-cred-box {
  background: rgba(0, 0, 0, 0.25);
  border-color: var(--border-color, #313244);
}

.woo-cred-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary, #64748b);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.woo-cred-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.woo-cred-val {
  flex: 1;
  background: transparent;
  border: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  direction: ltr;
  text-align: left;
  outline: none;
  padding: 4px 0;
}

[data-bs-theme="dark"] .woo-cred-val,
body.dark-mode .woo-cred-val {
  color: #38bdf8;
}

.woo-copy-btn {
  background: rgba(127, 84, 179, 0.1);
  color: #7f54b3;
  border: 1px solid rgba(127, 84, 179, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.woo-copy-btn:hover {
  background: #7f54b3;
  color: #ffffff;
}

.woo-copy-btn.copied {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* Download Plugin Card */
.woo-download-hero {
  text-align: center;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.woo-plugin-badge-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7f54b3, #5e3294);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(127, 84, 179, 0.35);
}

.woo-plugin-badge-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.woo-plugin-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin: 0;
}

[data-bs-theme="dark"] .woo-plugin-name,
body.dark-mode .woo-plugin-name {
  color: #ffffff;
}

.woo-plugin-version {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 700;
}

.woo-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.woo-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary, #475569);
}

[data-bs-theme="dark"] .woo-features-list li,
body.dark-mode .woo-features-list li {
  color: #cbd5e1;
}

.woo-features-list li i {
  color: #10b981;
  font-size: 14px;
}

.woo-download-btn {
  background: linear-gradient(135deg, #7f54b3, #65369c);
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(127, 84, 179, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
  margin-top: auto;
}

.woo-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(127, 84, 179, 0.45);
  color: #ffffff !important;
}

/* Actions footer */
.woo-actions-footer {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.woo-verify-btn {
  background: linear-gradient(135deg, #fe5d29, #e04a17);
  color: #ffffff !important;
  border: none;
  height: 52px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(254, 93, 41, 0.32);
  transition: all 0.25s ease;
  width: 100%;
}

.woo-verify-btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 26px rgba(254, 93, 41, 0.42);
}

.woo-verify-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.woo-alert-box {
  display: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
  text-align: right;
  animation: fadeIn 0.3s ease;
}

.woo-alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.woo-alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints */
@media (max-width: 820px) {
  .woo-connect-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .woo-auth-card {
    padding: 24px 18px !important;
  }
}

@media (max-width: 480px) {
  .woo-cred-input-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .woo-copy-btn {
    justify-content: center;
  }
}
