/**
 * StarShed Products & Feature Layouts
 * Inspired by Converta SaaS Theme (preview.codeless.co/converta/default/saas/)
 *
 * Kidzlive AI School ERP, StarBill GST ERP, StarCraft Creative Studio.
 *
 * @package StarShed
 * @since 2.3.0
 */

/* ==========================================================================
   1. PRODUCT TABS COMPONENT (Converta Clean Tabs Hub)
   ========================================================================== */
.product-tabs-container {
  margin-top: 2rem;
}

.product-tab-triggers {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-trigger {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.65rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.tab-trigger:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tab-trigger.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: var(--shadow-pill);
}

.tab-trigger .tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.tab-trigger.is-active .tab-icon {
  background: rgba(255, 255, 255, 0.2);
}

.tab-trigger-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.tab-trigger.is-active .tab-trigger-title {
  color: #ffffff;
}

.tab-trigger-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tab-trigger.is-active .tab-trigger-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* Tab Panels */
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-panel.is-active {
  display: block;
}

/* Converta Showcase Bento / Glass Card */
.spotlight-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.spotlight-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
  background: var(--brand-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.spotlight-title {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 2.7vw, 2.35rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--text-main);
  margin-bottom: 1.15rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.spotlight-former {
  font-size: 0.76em;
  font-weight: 500;
  font-style: italic;
  color: var(--text-muted);
}

.spotlight-dash {
  color: var(--border-strong, #cbd5e1);
  font-weight: 400;
  margin: 0 0.25rem;
}

.spotlight-tagline {
  font-weight: 700;
}

.spotlight-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Simulated SaaS App Dashboard inside Spotlights */
.dashboard-mockup {
  background: #0f172a;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.75rem;
  color: #f8fafc;
  box-shadow: var(--shadow-converta), 0 20px 40px -10px rgba(15, 23, 42, 0.2);
}

.status-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Mockup Tables */
.table-sim {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.table-sim th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  color: #94a3b8;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-sim td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.status-pill-ok {
  display: inline-block;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
}

.status-pill-sync {
  display: inline-block;
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
}

/* ==========================================================================
   2. DEDICATED PRODUCT SECTIONS (KIDZLIVE, STARBILL, STARCRAFT)
   ========================================================================== */
.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.product-feature-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.product-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-md);
}

.product-feature-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.product-feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.product-feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* StarCraft Studio Showcase */
.creative-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.creative-deck-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.creative-deck-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(124, 58, 237, 0.35);
}

.creative-deck-preview {
  height: 190px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.creative-deck-meta {
  padding: 1.5rem;
}

.creative-deck-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.creative-deck-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   3. KIDZLIVE OPERATIONAL ERP MODULES GRID (HIGH-IMPACT SAAS CARDS)
   ========================================================================== */
.erp-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.erp-module-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
  position: relative;
  overflow: hidden;
  border-left: 4.5px solid var(--mod-accent, #6366f1);
}

.erp-module-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at top right, var(--mod-bg, rgba(99, 102, 241, 0.1)), transparent 70%);
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.erp-module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px -10px rgba(15, 23, 42, 0.1), 0 6px 16px -4px rgba(15, 23, 42, 0.04);
  border-color: rgba(99, 102, 241, 0.3);
}

.erp-module-card:hover::after {
  opacity: 1;
}

.erp-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.95rem;
}

.erp-module-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: var(--mod-bg, #f1f5f9);
  border: 1px solid var(--mod-border, #e2e8f0);
  box-shadow: 0 2px 8px -1px rgba(15, 23, 42, 0.04);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.erp-module-card:hover .erp-module-icon-box {
  transform: scale(1.1) rotate(-3deg);
}

.erp-module-pill {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  background: var(--mod-bg, #f8fafc);
  color: var(--mod-accent, #475569);
  border: 1px solid var(--mod-border, #e2e8f0);
}

.erp-module-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.45rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.erp-module-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.erp-module-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  margin-top: auto;
  border-top: 1px dashed rgba(226, 232, 240, 0.9);
  font-size: 0.74rem;
  color: #94a3b8;
}

.erp-module-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #059669;
  font-weight: 700;
  font-size: 0.74rem;
}

.erp-module-live-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

