/* ==========================================================================
   Showcase Section: Interactive Device Mockup (Tablet Kiosk vs Mobile)
   ========================================================================== */

.showcase-section {
  padding: 40px 0 72px;
  text-align: center;
}

.showcase-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.showcase-header {
  max-width: 680px;
}

.showcase-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 38px);
  color: var(--text-main);
  margin-bottom: 12px;
}

.showcase-header p {
  font-size: 17px;
  color: var(--text-muted);
}

/* Mode Switcher Tabs */
.showcase-tabs {
  display: inline-flex;
  background: rgba(226, 232, 240, 0.6);
  padding: 6px;
  border-radius: var(--radius-pill);
  gap: 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-body);
  transition: var(--transition-normal);
  cursor: pointer;
  background: transparent;
  border: none;
}

.tab-btn.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tab-btn:hover:not(.active) {
  color: var(--primary);
}

/* Stage Area */
.mockup-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  min-height: 480px;
}

.mockup-view {
  display: none;
  width: 100%;
  max-width: 900px;
  animation: fadeIn 0.35s ease-out forwards;
}

.mockup-view.active {
  display: flex;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tablet Device Frame */
.tablet-frame {
  width: 100%;
  max-width: 820px;
  background: #0F172A;
  border-radius: 36px;
  padding: 18px;
  box-shadow: var(--shadow-floating), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.tablet-camera-notch {
  width: 10px;
  height: 10px;
  background: #1E293B;
  border-radius: 50%;
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
}

.tablet-screen {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
  border-radius: 24px;
  overflow: hidden;
  padding: 24px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

/* Tablet App UI */
.kiosk-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.kid-profile-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kid-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FBBF24;
  border: 3px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.kid-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.kid-track-badge {
  font-size: 12px;
  font-weight: 700;
  color: #A5B4FC;
}

.kiosk-balance-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.star-wallet-pill {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid #F59E0B;
  color: #FDE047;
  font-weight: 800;
  font-size: 17px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
}

.parent-pin-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* XP Level Bar */
.xp-level-container {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.xp-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #C7D2FE;
}

.xp-progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.xp-progress-fill {
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%);
  border-radius: var(--radius-pill);
}

/* Chore Cards Grid */
.chore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.chore-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s ease;
}

.chore-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.chore-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
}

.chore-reward-badge {
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.3);
  border: 1px solid #FBBF24;
  color: #FDE047;
  font-size: 14px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Phone Device Frame */
.phone-frame {
  width: 100%;
  max-width: 380px;
  background: #0F172A;
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-floating), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.phone-island {
  width: 90px;
  height: 22px;
  background: #000000;
  border-radius: 12px;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  background: #F8FAFC;
  border-radius: 32px;
  overflow: hidden;
  padding: 48px 16px 24px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.parent-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.parent-hub-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.approval-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.approval-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.approval-name {
  font-weight: 700;
  font-size: 14px;
}

.approval-badge {
  font-size: 12px;
  font-weight: 800;
  background: #FEF3C7;
  color: #B45309;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.btn-approve {
  background: #10B981;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  padding: 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
}

.btn-approve:hover {
  background: #059669;
}

/* Reward item in phone mockup */
.mockup-reward-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.reward-info h4 {
  font-size: 14px;
  font-weight: 700;
}

.reward-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-claim-reward {
  background: #4F46E5;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Responsive Adaptations for Viewports < 640px
   ========================================================================== */
@media (max-width: 640px) {
  .showcase-tabs {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    border-radius: var(--radius-lg);
  }

  .tab-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
  }

  .tablet-frame {
    padding: 10px;
    border-radius: 20px;
  }

  .tablet-screen {
    padding: 14px;
    gap: 14px;
    border-radius: 16px;
  }

  .kiosk-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
  }

  .kid-profile-info {
    width: 100%;
  }

  .kiosk-balance-group {
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .star-wallet-pill {
    padding: 6px 12px;
    font-size: 15px;
  }

  .parent-pin-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .chore-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    max-width: 320px;
  }
}

