/*
Theme Name: Clove Demo
Theme URI: https://codeclove.com
Author: CodeClove
Author URI: https://codeclove.com
Description: Minimal, high-performance WordPress plugin cloud demo showcase and 1-click persona sandbox theme.
Version: 1.8.7
Requires at least: 6.2
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clove-demo
*/

/* ==========================================================================
   1. Canvas & Reset
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8fafc;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
  color: #0f172a;
  line-height: 1.5;
  overflow-x: hidden;
}

body.admin-bar {
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    min-height: calc(100vh - 46px);
    min-height: calc(100dvh - 46px);
  }
}

main.site-main,
#primary {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.cd-container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #0f172a;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 9999;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   2. Header
   ========================================================================== */

.cd-header {
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

body.admin-bar .cd-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .cd-header {
    top: 46px;
  }
}

/* .cd-header container inherits universal 1240px */

.cd-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  gap: 16px;
}

.cd-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.cd-brand-logo-img {
  max-height: 34px;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.cd-brand-icon-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.cd-brand-mark {
  width: 32px;
  height: 32px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.cd-brand-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cd-brand-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  line-height: 1.25;
  white-space: nowrap;
}

.cd-brand-tagline {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
  white-space: nowrap;
}

.cd-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.cd-nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.cd-nav-link:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.cd-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: #0f172a;
  color: #ffffff !important;
  border-radius: 8px;
  text-decoration: none;
  margin-left: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: all 0.15s ease;
}

.cd-header-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.12);
}

@media (max-width: 900px) {
  .cd-header-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cd-header-inner::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 640px) {
  .cd-nav-link {
    display: none;
  }
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */

.cd-hero {
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
}

.cd-hero::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 90vw);
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.cd-hero .cd-container {
  position: relative;
  z-index: 1;
}

.cd-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 12px;
  border-radius: 9999px;
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.cd-hero-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #0f172a;
  margin-bottom: 14px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.cd-hero-desc {
  font-size: 16.5px;
  line-height: 1.6;
  color: #64748b;
  max-width: 660px;
  margin: 0 auto 30px;
}

.cd-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0 20px;
  min-height: 42px;
  height: 42px;
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.cd-btn--primary {
  background: #0f172a;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.cd-btn--primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.cd-btn--secondary {
  background: #ffffff;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.cd-btn--secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-1px);
}

.cd-btn-arrow {
  font-size: 13px;
  transition: transform 0.15s ease;
}

.cd-btn:hover .cd-btn-arrow {
  transform: translateY(2px);
}

/* ==========================================================================
   4. Personas Section
   ========================================================================== */
.cd-section {
  padding: 44px 0 52px;
}

.cd-section-head {
  text-align: center;
  margin-bottom: 32px;
}

.cd-chip-sm {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px 10px;
  border-radius: 9999px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.cd-section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 6px;
}

.cd-section-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #64748b;
  max-width: 540px;
  margin: 0 auto;
}

/* Persona Grid: 2-column on desktop */
.cd-persona-grid {
  display: grid;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
}

.cd-persona-grid--6,
.cd-persona-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cd-persona-grid--4,
.cd-persona-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
}

@media (max-width: 960px) and (min-width: 641px) {
  .cd-persona-grid--6,
  .cd-persona-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cd-persona-grid--6,
  .cd-persona-grid--4,
  .cd-persona-grid--3,
  .cd-persona-grid--2 {
    grid-template-columns: 1fr;
  }
}
.cd-persona-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.02);
}

.cd-persona-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  transform: translateY(-2px);
}

.cd-persona-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cd-persona-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cd-persona-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.cd-persona-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cd-persona-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}

.cd-persona-badge {
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cd-persona-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 10px 0 14px;
}

.cd-persona-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.cd-persona-enter {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s ease;
}

.cd-persona-arrow {
  font-size: 13px;
  transition: transform 0.15s ease;
}

.cd-persona-card:hover .cd-persona-arrow {
  transform: translateX(2px);
}

/* ==========================================================================
   5. Core Modules Section
   ========================================================================== */

.cd-section--features {
  padding-top: 24px;
}

.cd-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 960px) and (min-width: 641px) {
  .cd-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cd-feature-grid {
    grid-template-columns: 1fr;
  }
}

.cd-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cd-feature-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.cd-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  margin-bottom: 14px;
}

.cd-feature-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.cd-feature-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 12px;
}

.cd-feature-tag {
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
  align-self: flex-start;
}

/* ==========================================================================
   6. Footer
   ========================================================================== */

.cd-footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 24px 0;
  margin-top: auto;
}

.cd-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #94a3b8;
  gap: 16px;
  flex-wrap: wrap;
}

.cd-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cd-footer-brand {
  font-weight: 600;
  color: #0f172a;
}

.cd-footer-sep {
  color: #cbd5e1;
}

.cd-footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cd-footer-right a {
  color: #64748b;
  transition: color 0.15s ease;
}

.cd-footer-right a:hover {
  color: #0f172a;
}

/* ==========================================================================
   7. Page Layouts (generic)
   ========================================================================== */

.cd-page {
  padding: 48px 0 80px;
  min-height: 75vh;
}

.cd-page:has(#codeclove-portal-root),
.cd-page:has(#nexora-portal-root) {
  padding: 24px 0 40px;
  max-width: 1440px;
  width: 95%;
}

.cd-page-article {
  max-width: 960px;
  margin: 0 auto;
}

.cd-page:has(#codeclove-portal-root) .cd-page-article,
.cd-page:has(#nexora-portal-root) .cd-page-article {
  max-width: 100%;
}

.cd-page-content {
  width: 100%;
}

.cd-empty-msg {
  padding: 48px 24px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* ==========================================================================
   8. Button Variants & Extras
   ========================================================================== */

.cd-btn--ghost {
  background: transparent;
  color: #475569 !important;
  border: 1px solid #e2e8f0;
}

.cd-btn--ghost:hover {
  background: #f1f5f9;
  color: #0f172a !important;
  border-color: #cbd5e1;
}

.cd-btn--sm {
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  border-radius: 7px;
}

/* ==========================================================================
   9. Central Product Catalog Hub
   ========================================================================== */

.cd-hero--catalog {
  padding: 64px 0 36px;
}

.cd-catalog-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.cd-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.cd-stat-val {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.cd-stat-lbl {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.cd-catalog-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.cd-filter-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  max-width: 100%;
  overflow-x: auto;
}

.cd-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 40px;
  white-space: nowrap;
}

.cd-filter-btn:hover {
  color: #0f172a;
  background: #f8fafc;
}

.cd-filter-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.cd-tab-count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
}

.cd-filter-btn.is-active .cd-tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cd-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.cd-card--product {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cd-card--product:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.cd-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cd-type-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 5px;
}

.cd-type-badge--plugin {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.cd-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.cd-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.cd-status-badge--plugin .cd-status-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.cd-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cd-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-card-category {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 2px;
}

.cd-card-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.25;
  margin: 0;
}

.cd-card-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 16px;
}

.cd-card-highlights {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cd-highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 9px;
}

.cd-highlight-chip--feature {
  color: #64748b;
}

.cd-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cd-card-price-wrap {
  display: flex;
  flex-direction: column;
}

.cd-card-price {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cd-card-price-sub {
  font-size: 10.5px;
  color: #94a3b8;
}

.cd-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   10. Product Metrics & Enhancements
   ========================================================================== */

.cd-product-metrics {
  margin-top: 32px;
}

/* ==========================================================================
   11. Mobile Optimization
   ========================================================================== */

@media (max-width: 768px) {
  .cd-catalog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cd-hero {
    padding: 48px 0 36px;
  }
  .cd-hero-title {
    font-size: 28px;
  }
  .cd-hero-desc {
    font-size: 15px;
  }
  .cd-section {
    padding: 36px 0;
  }
  .cd-section-title {
    font-size: 22px;
  }
  .cd-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .cd-hero-actions .cd-btn {
    width: 100%;
  }
  .cd-footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
