/**
 * ReyBlock Launchpad Admin Stylesheet
 */

:root {
  --fb-lp-primary: #2563eb;
  --fb-lp-primary-hover: #1d4ed8;
  --fb-lp-bg: #f8fafc;
  --fb-lp-surface: #ffffff;
  --fb-lp-border: #e2e8f0;
  --fb-lp-text-main: #0f172a;
  --fb-lp-text-muted: #64748b;
  --fb-lp-radius: 12px;
  --fb-lp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --fb-lp-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --fb-lp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.reyblock-launchpad-wrap {
  font-family: var(--fb-lp-font);
  color: var(--fb-lp-text-main);
  max-width: 1280px;
  margin: 24px auto 48px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Header Banner */
.reyblock-lp-header {
  background: var(--fb-lp-surface);
  border: 1px solid var(--fb-lp-border);
  border-radius: var(--fb-lp-radius);
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--fb-lp-shadow);
  margin-bottom: 24px;
}

.reyblock-lp-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.reyblock-lp-logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.35);
}

.reyblock-lp-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reyblock-lp-title-row h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  color: var(--fb-lp-text-main);
  letter-spacing: -0.02em;
}

.reyblock-lp-badge {
  background: #eff6ff;
  color: var(--fb-lp-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
}

.reyblock-lp-subtitle {
  margin: 6px 0 0;
  color: var(--fb-lp-text-muted);
  font-size: 14px;
}

.reyblock-lp-header-actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.reyblock-lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
  border: none;
}

.reyblock-lp-btn-primary {
  background: var(--fb-lp-primary);
  color: #ffffff !important;
}

.reyblock-lp-btn-primary:hover {
  background: var(--fb-lp-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.reyblock-lp-btn-outline {
  background: transparent;
  color: var(--fb-lp-text-main);
  border: 1px solid var(--fb-lp-border);
}

.reyblock-lp-btn-outline:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.reyblock-lp-btn-outline-danger {
  background: transparent;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.reyblock-lp-btn-outline-danger:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.reyblock-lp-btn-link {
  background: transparent;
  border: none;
  color: var(--fb-lp-primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.reyblock-lp-btn-link:hover {
  text-decoration: underline;
}

/* Tabs */
.reyblock-lp-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--fb-lp-border);
  margin-bottom: 28px;
}

.reyblock-lp-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fb-lp-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.reyblock-lp-tab:hover {
  color: var(--fb-lp-text-main);
}

.reyblock-lp-tab.is-active {
  color: var(--fb-lp-primary);
  border-bottom-color: var(--fb-lp-primary);
}

.reyblock-lp-tab-count {
  background: #f1f5f9;
  color: var(--fb-lp-text-muted);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}

.reyblock-lp-tab.is-active .reyblock-lp-tab-count {
  background: #eff6ff;
  color: var(--fb-lp-primary);
}

.reyblock-lp-tab-content {
  display: none;
}

.reyblock-lp-tab-content.is-active {
  display: block;
  animation: fbLpFadeIn 0.3s ease;
}

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

/* Category Filters */
.reyblock-lp-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.reyblock-lp-filter-btn {
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--fb-lp-surface);
  border: 1px solid var(--fb-lp-border);
  color: var(--fb-lp-text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reyblock-lp-filter-btn:hover {
  border-color: #cbd5e1;
  color: var(--fb-lp-text-main);
}

.reyblock-lp-filter-btn.is-active {
  background: var(--fb-lp-text-main);
  color: #ffffff;
  border-color: var(--fb-lp-text-main);
}

/* Grid of Demos */
.reyblock-lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.reyblock-lp-card {
  background: var(--fb-lp-surface);
  border: 1px solid var(--fb-lp-border);
  border-radius: var(--fb-lp-radius);
  overflow: hidden;
  box-shadow: var(--fb-lp-shadow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.reyblock-lp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fb-lp-shadow-lg);
  border-color: #cbd5e1;
}

.reyblock-lp-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}

.reyblock-lp-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.reyblock-lp-card:hover .reyblock-lp-card-thumb img {
  transform: scale(1.03);
}

.reyblock-lp-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.reyblock-lp-card:hover .reyblock-lp-card-overlay {
  opacity: 1;
}

.reyblock-lp-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.reyblock-lp-card-active-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #10b981;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.reyblock-lp-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.reyblock-lp-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--fb-lp-text-main);
}

.reyblock-lp-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fb-lp-text-muted);
  margin: 0 0 20px;
  flex-grow: 1;
}

.reyblock-lp-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.reyblock-lp-card-tags {
  display: flex;
  gap: 6px;
}

.reyblock-lp-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

/* System Status Table */
.reyblock-lp-status-box {
  background: var(--fb-lp-surface);
  border: 1px solid var(--fb-lp-border);
  border-radius: var(--fb-lp-radius);
  padding: 32px;
  box-shadow: var(--fb-lp-shadow);
}

.reyblock-lp-status-box h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.reyblock-lp-status-intro {
  color: var(--fb-lp-text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.reyblock-lp-status-table {
  width: 100%;
  border-collapse: collapse;
}

.reyblock-lp-status-table th,
.reyblock-lp-status-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--fb-lp-border);
}

.reyblock-lp-status-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fb-lp-text-muted);
  font-weight: 700;
  background: #f8fafc;
}

.reyblock-lp-status-label {
  font-weight: 600;
  font-size: 14px;
}

.reyblock-lp-status-val code {
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: #0f172a;
}

.reyblock-lp-status-rec {
  color: var(--fb-lp-text-muted);
  font-size: 13px;
}

.reyblock-lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}

.reyblock-lp-pill.is-good {
  background: #ecfdf5;
  color: #059669;
}

.reyblock-lp-pill.is-warning {
  background: #fffbeb;
  color: #d97706;
}

.reyblock-lp-pill.is-bad {
  background: #fef2f2;
  color: #dc2626;
}

/* Modal */
.reyblock-lp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.reyblock-lp-modal-backdrop.is-open {
  display: flex;
}

.reyblock-lp-modal {
  background: var(--fb-lp-surface);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  animation: fbLpModalZoom 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fbLpModalZoom {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.reyblock-lp-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fb-lp-text-muted);
  transition: all 0.2s;
  z-index: 2;
}

.reyblock-lp-modal-close:hover {
  background: #e2e8f0;
  color: var(--fb-lp-text-main);
}

.reyblock-lp-modal-step {
  display: none;
  padding: 32px;
}

.reyblock-lp-modal-step.is-active {
  display: block;
}

.reyblock-lp-modal-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}

.reyblock-lp-modal-header p {
  color: var(--fb-lp-text-muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.reyblock-lp-modal-preview {
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #f8fafc;
  border: 1px solid var(--fb-lp-border);
}

.reyblock-lp-modal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reyblock-lp-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.reyblock-lp-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--fb-lp-border);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
}

.reyblock-lp-checkbox-row input {
  margin-top: 3px;
}

.reyblock-lp-checkbox-row strong {
  display: block;
  font-size: 14px;
  color: var(--fb-lp-text-main);
}

.reyblock-lp-checkbox-row span {
  display: block;
  font-size: 12px;
  color: var(--fb-lp-text-muted);
}

.reyblock-lp-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.text-center {
  text-align: center;
}

/* Progress Step */
.reyblock-lp-rocket-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--fb-lp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: fbLpPulse 2s infinite ease-in-out;
}

@keyframes fbLpPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
}

.reyblock-lp-progress-bar-wrap {
  height: 10px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin: 24px 0 28px;
}

.reyblock-lp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.reyblock-lp-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.reyblock-lp-step-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fb-lp-text-muted);
}

.reyblock-lp-step-list li.is-active {
  color: var(--fb-lp-primary);
  font-weight: 600;
}

.reyblock-lp-step-list li.is-done {
  color: #059669;
}

.reyblock-lp-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.reyblock-lp-step-list li.is-active .reyblock-lp-step-icon {
  background: var(--fb-lp-primary);
  color: #ffffff;
}

.reyblock-lp-step-list li.is-done .reyblock-lp-step-icon {
  background: #10b981;
  color: #ffffff;
}

/* Success Step */
.reyblock-lp-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
