/* ============================================================
   Custom WordPress Plugin Development - Dedicated Template Styles
   ============================================================ */

.wppd-page-wrapper {
  color: var(--text-primary, #0f172a);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  background: #ffffff;
}

.wppd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.wppd-section-padding {
  padding: 90px 0;
}

.wppd-bg-alt {
  background: var(--bg-alt, #f8fafc);
}

/* Section Header Base */
.wppd-header-center {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 56px auto;
}

.wppd-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 132, 199, 0.08);
  color: var(--secondary, #0284c7);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  border: 1px solid rgba(2, 132, 199, 0.16);
}

.wppd-title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary, #0f172a);
  margin-bottom: 20px;
}

.wppd-title-gradient {
  background: linear-gradient(135deg, #004F61 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wppd-desc {
  font-size: 1.08rem;
  color: var(--text-secondary, #475569);
  line-height: 1.75;
  margin: 0 auto;
}

/* Hero Section */
.wppd-hero {
  padding: 130px 0 80px;
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
  position: relative;
  overflow: hidden;
}

.wppd-hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.wppd-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 24px;
  font-weight: 500;
}

.wppd-breadcrumb a {
  color: var(--primary, #004F61);
  text-decoration: none;
}

.wppd-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.wppd-hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary, #475569);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 860px;
}

.wppd-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.wppd-btn-primary {
  background: var(--primary, #004F61);
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 79, 97, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wppd-btn-primary:hover {
  background: #003643;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 79, 97, 0.35);
  color: #ffffff;
}

.wppd-btn-secondary {
  background: #ffffff;
  color: var(--primary, #004F61);
  padding: 16px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--primary, #004F61);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wppd-btn-secondary:hover {
  background: rgba(0, 79, 97, 0.05);
  transform: translateY(-2px);
  color: var(--primary, #004F61);
}

.wppd-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wppd-stat-item {
  text-align: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.wppd-stat-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary, #004F61);
  line-height: 1.1;
  margin-bottom: 6px;
}

.wppd-stat-lbl {
  font-size: 0.88rem;
  color: var(--text-secondary, #64748b);
  font-weight: 600;
}

/* Section 1 Split & Flowchart */
.wppd-sec1-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.wppd-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: #1e293b;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
  transition: all 0.25s ease;
}

.wppd-bullet-item:hover {
  border-color: #0284c7;
  background: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.wppd-bullet-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.wppd-flowchart-card {
  background: #002b36;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 43, 54, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.wppd-flowchart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wppd-flowchart-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wppd-flowchart-badge {
  background: rgba(2, 132, 199, 0.25);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.wppd-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wppd-flow-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
}

.wppd-flow-step:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #38bdf8;
  transform: translateX(4px);
}

.wppd-flow-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #004F61 0%, #0284c7 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
}

.wppd-flow-content h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.wppd-flow-content code {
  font-size: 0.78rem;
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.wppd-flow-arrow {
  text-align: center;
  color: #38bdf8;
  font-size: 0.95rem;
  margin: -6px 0;
  opacity: 0.7;
}

/* Cards Grids */
.wppd-cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.wppd-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.wppd-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: var(--primary, #004F61);
}

.wppd-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 79, 97, 0.08);
  color: var(--primary, #004F61);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.wppd-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #0f172a;
}

.wppd-card p {
  font-size: 0.94rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* Comparison Table */
.wppd-table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.wppd-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
  background: #ffffff;
}

.wppd-table th {
  background: #004F61;
  color: #ffffff;
  padding: 18px 24px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.wppd-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.wppd-table tr:nth-child(even) {
  background: #f8fafc;
}

.wppd-table td strong {
  color: #0f172a;
}

/* Tech Stack Grid & Filter Tabs */
.wppd-tech-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.wppd-tech-tab-btn {
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.wppd-tech-tab-btn:hover {
  border-color: #004F61;
  color: #004F61;
}

.wppd-tech-tab-btn.active {
  background: #004F61;
  color: #ffffff;
  border-color: #004F61;
  box-shadow: 0 4px 14px rgba(0, 79, 97, 0.25);
}

.wppd-tech-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.wppd-tech-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.wppd-tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 79, 97, 0.1);
  border-color: #0284c7;
}

.wppd-tech-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.08);
  color: #004F61;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.wppd-tech-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.wppd-tech-card-sub {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
  margin-top: 2px;
}

.wppd-tech-tag-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

.wppd-tech-tag-badge.backend { background: #e0f2fe; color: #0369a1; }
.wppd-tech-tag-badge.frontend { background: #f0fdf4; color: #15803d; }
.wppd-tech-tag-badge.api { background: #fae8ff; color: #86198f; }
.wppd-tech-tag-badge.tooling { background: #fef3c7; color: #b45309; }

/* VS Code Editor Component */
.wppd-editor-window {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  margin: 32px 0;
}

.wppd-editor-header {
  background: #0f172a;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.wppd-editor-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wppd-dot { width: 12px; height: 12px; border-radius: 50%; }
.wppd-dot.red { background: #ef4444; }
.wppd-dot.yellow { background: #f59e0b; }
.wppd-dot.green { background: #10b981; }

.wppd-editor-title {
  font-family: monospace;
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wppd-editor-body {
  padding: 24px;
  overflow-x: auto;
}

.wppd-editor-body pre {
  margin: 0;
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #e2e8f0;
  white-space: pre;
}

.wppd-code-kw { color: #f472b6; font-weight: 700; }
.wppd-code-fn { color: #38bdf8; }
.wppd-code-str { color: #a3e635; }
.wppd-code-cm { color: #64748b; font-style: italic; }

/* Process Steps Grid */
.wppd-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.wppd-process-step {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
}

.wppd-step-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: var(--primary, #004F61);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.wppd-process-step h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.wppd-process-step p {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* FAQ Accordion */
.wppd-faq-wrapper {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.wppd-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.wppd-faq-question {
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.08rem;
  color: #0f172a;
  user-select: none;
}

.wppd-faq-question:hover {
  background: #f8fafc;
}

.wppd-faq-icon {
  font-size: 1.5rem;
  color: var(--primary, #004F61);
  transition: transform 0.3s ease;
}

.wppd-faq-answer {
  padding: 0 28px 24px 28px;
  display: none;
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.75;
  border-top: 1px solid #f1f5f9;
}

/* Final CTA Banner */
.wppd-cta-banner {
  background: linear-gradient(135deg, #004F61 0%, #0284c7 100%);
  border-radius: 24px;
  padding: 70px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0,79,97,0.25);
}

.wppd-cta-banner h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  margin-bottom: 20px;
  color: #ffffff;
}

.wppd-cta-banner p {
  font-size: 1.12rem;
  max-width: 760px;
  margin: 0 auto 36px auto;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.wppd-cta-banner .wppd-btn-white {
  background: #ffffff;
  color: #004F61;
  padding: 16px 36px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.wppd-cta-banner .wppd-btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .wppd-sec1-split, .wppd-cards-grid-3, .wppd-process-grid {
    grid-template-columns: 1fr;
  }
  .wppd-tech-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wppd-tech-card-grid, .wppd-hero-stats {
    grid-template-columns: 1fr;
  }
  .wppd-hero {
    padding: 100px 0 50px;
  }
  .wppd-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .wppd-btn-primary, .wppd-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
