/* ==========================================================================
   JH WEB SOLUTIONS - SPECIALIZED SERVICE SUITE STYLESHEET
   Supports:
   - website-development.php (Dev Hero, Tech Stack, Architecture Nodes, Terminal)
   - webapplication.php (SME SaaS Dashboard, RBAC Matrix, Workflow Roadmap)
   - e-commerce.php (Store Hero, 35+ Features Grid, 6 Business Benefits)
   Fully responsive down to 320px viewport
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SHARED DESIGN SYSTEM ENHANCEMENTS
   -------------------------------------------------------------------------- */
.jh-badge-code {
  font-family: 'Fira Code', monospace, Consolas, Monaco, monospace;
  font-size: 0.8rem;
  background: rgba(2, 86, 211, 0.08);
  color: #0256d3;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(2, 86, 211, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   2. INTERACTIVE DEV TERMINAL & ARCHITECTURE DECK (website-development.php)
   -------------------------------------------------------------------------- */
.jh-dev-terminal-card {
  background: #0b1120;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(2, 86, 211, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  overflow: hidden;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  width: 100%;
}

.jh-terminal-header {
  background: #0f172a;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jh-terminal-dots {
  display: flex;
  gap: 7px;
}

.jh-terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.jh-dot-red { background: #ef4444; }
.jh-dot-yellow { background: #f59e0b; }
.jh-dot-green { background: #10b981; }

.jh-terminal-title {
  font-size: 0.82rem;
  font-family: 'Fira Code', Consolas, monospace;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 7px;
}

.jh-terminal-title i {
  color: #38bdf8;
}

.jh-terminal-body {
  padding: 20px;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.jh-code-line {
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.jh-code-num {
  color: #475569;
  user-select: none;
  min-width: 20px;
  text-align: right;
}

.jh-code-txt {
  color: #cbd5e1;
  word-break: break-word;
}

.jh-code-kw { color: #f43f5e; font-weight: 600; }
.jh-code-fn { color: #38bdf8; }
.jh-code-str { color: #34d399; }
.jh-code-var { color: #fbbf24; }
.jh-code-comm { color: #64748b; font-style: italic; }

.jh-dev-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jh-dev-status-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}

.jh-dev-stat-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #38bdf8;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.jh-dev-stat-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  margin-top: 2px;
  display: block;
}

/* Tech Stack Showcase Grid */
.jh-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.jh-tech-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

.jh-tech-card:hover {
  transform: translateY(-5px);
  border-color: #0256d3;
  box-shadow: 0 16px 36px -6px rgba(2, 86, 211, 0.12);
}

.jh-tech-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(2, 86, 211, 0.08);
  color: #0256d3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.jh-tech-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.jh-tech-desc {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 16px;
}

.jh-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jh-tech-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #334155;
}

/* --------------------------------------------------------------------------
   3. SME PORTAL & APPLICATION DASHBOARD (webapplication.php)
   -------------------------------------------------------------------------- */
.jh-sme-dash-mockup {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px -15px rgba(2, 86, 211, 0.16), 0 0 0 1px rgba(2, 86, 211, 0.06);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.jh-sme-mockup-top {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jh-sme-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.jh-sme-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.jh-sme-role-tag {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 9px;
  border-radius: 12px;
  color: #93c5fd;
}

.jh-sme-mockup-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #f8fafc;
}

.jh-sme-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.jh-sme-tile-lbl {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
}

.jh-sme-tile-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 4px;
  display: block;
}

.jh-sme-tile-growth {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
}

.jh-sme-workflow-list {
  padding: 16px 20px;
  background: #ffffff;
}

.jh-sme-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
}

.jh-sme-item:last-child {
  border-bottom: none;
}

.jh-sme-status-active {
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.jh-sme-status-pending {
  background: #fffbeb;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   4. E-COMMERCE CONVERSION SUITE (e-commerce.php)
   -------------------------------------------------------------------------- */
.jh-ecom-metrics-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px -15px rgba(16, 185, 129, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.08);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.jh-ecom-topbar {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jh-ecom-store-name {
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jh-ecom-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 20px;
  background: #f0fdf4;
  border-bottom: 1px solid #dcfce7;
}

.jh-ecom-kpi-box {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}

.jh-ecom-kpi-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #065f46;
  display: block;
}

.jh-ecom-kpi-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #166534;
  margin-top: 2px;
  display: block;
}

.jh-ecom-orders-feed {
  padding: 16px 20px;
  background: #ffffff;
}

.jh-ecom-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.84rem;
}

.jh-ecom-order-item:last-child {
  border-bottom: none;
}

.jh-ecom-pill-paid {
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 35+ Features Grid Matrix */
.jh-features-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 35px;
}

.jh-feat-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.25s ease;
}

.jh-feat-chip:hover {
  border-color: #0256d3;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(2, 86, 211, 0.1);
}

.jh-feat-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.jh-feat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.jh-feat-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.45;
}

/* 6 Strategic Benefits Grid */
.jh-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 35px;
}

.jh-benefit-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.jh-benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #0256d3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.jh-benefit-card:hover {
  transform: translateY(-5px);
  border-color: rgba(2, 86, 211, 0.3);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.08);
}

.jh-benefit-card:hover::before {
  opacity: 1;
}

.jh-benefit-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0256d3;
  margin-bottom: 12px;
  opacity: 0.85;
}

.jh-benefit-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.jh-benefit-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. MOBILE & 320PX SCREEN RESPONSIVENESS OPTIMIZATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .jh-dev-status-grid,
  .jh-sme-mockup-grid,
  .jh-ecom-kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .jh-dev-status-grid,
  .jh-sme-mockup-grid,
  .jh-ecom-kpi-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px 10px;
  }
  
  .jh-dev-stat-val,
  .jh-sme-tile-val,
  .jh-ecom-kpi-num {
    font-size: 0.95rem;
  }

  .jh-dev-stat-lbl,
  .jh-sme-tile-lbl,
  .jh-ecom-kpi-lbl {
    font-size: 0.6rem;
  }

  .jh-terminal-body {
    padding: 14px 12px;
    font-size: 0.75rem;
  }

  .jh-tech-grid {
    grid-template-columns: 1fr;
  }

  .jh-benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .jh-dev-status-grid,
  .jh-sme-mockup-grid,
  .jh-ecom-kpi-row {
    grid-template-columns: 1fr;
  }

  .jh-feat-chip {
    padding: 10px 12px;
  }

  .jh-feat-title {
    font-size: 0.88rem;
  }

  .jh-feat-desc {
    font-size: 0.78rem;
  }
}
