/*
Theme Name: Plugeo
Theme URI: https://plugeo.dev
Author: plugeo.dev
Author URI: https://plugeo.dev
Description: Premium theme for selling WordPress plugins, CMS extensions and web applications. Built for Easy Digital Downloads.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plugeo
Tags: dark, e-commerce, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   GOOGLE FONTS + RESET
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a2e;
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: all 0.2s; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --accent:      #7c3aed;
  --accent-h:    #6d28d9;
  --text-dark:   #111827;
  --text-mid:    #374151;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --surface:     #f9fafb;
  --yellow:      #f59e0b;
  --radius:      10px;
  --radius-lg:   16px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
#page { min-height: 100vh; }

/* ============================================================
   NAVBAR — white, clean, matches image
   ============================================================ */
#masthead {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.site-header-inner {
  display: flex; align-items: center;
  height: 64px; max-width: 1200px;
  margin: 0 auto; padding: 0 24px; gap: 8px;
}

.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; color: #111827;
  flex-shrink: 0; text-decoration: none;
}
.site-logo:hover { color: #111827; }

.logo-mark {
  width: 36px; height: 36px;
  background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 900;
}

.logo-text .dot-dev { color: var(--accent); }

#primary-navigation { flex: 1; display: flex; align-items: center; margin-left: 16px; }

.nav-menu { display: flex; align-items: center; gap: 2px; }

.nav-menu > li > a {
  display: flex; align-items: center; gap: 3px;
  padding: 6px 12px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500; color: #374151;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a { color: #111827; background: #f9fafb; }

.nav-menu .menu-arrow { opacity: 0.45; width: 13px; height: 13px; }

.nav-menu li { position: relative; }
.nav-menu .sub-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px; min-width: 180px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); z-index: 200;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: #374151; font-size: 0.875rem; }
.nav-menu .sub-menu a:hover { background: #f9fafb; color: #111827; }

.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-icon-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: #6b7280; position: relative; background: transparent;
}
.nav-icon-btn:hover { background: #f9fafb; color: #111827; }

.cart-count {
  position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px; background: var(--accent); border-radius: 50%;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #fff;
}

.btn-my-account {
  background: var(--accent); color: #fff !important;
  padding: 9px 20px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.btn-my-account:hover { background: var(--accent-h); transform: translateY(-1px); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #374151; border-radius: 2px; }

/* ============================================================
   HERO — deep dark navy/purple gradient
   ============================================================ */
.hero-section {
  position: relative;
  background: #0f0c29;
  background-image:
    radial-gradient(ellipse 65% 90% at 65% 50%, rgba(88,28,235,0.6) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 85% 15%, rgba(124,58,237,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 35% 45% at 5% 85%,  rgba(67,56,202,0.3) 0%, transparent 60%);
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; position: relative; z-index: 1;
}

.hero-title {
  font-size: clamp(2.4rem, 3.8vw, 3.4rem);
  font-weight: 900; line-height: 1.08;
  color: #fff; letter-spacing: -1px; margin-bottom: 18px;
}
.hero-title .accent-line { color: #a78bfa; }

.hero-desc {
  font-size: 1rem; color: rgba(255,255,255,0.68);
  line-height: 1.65; max-width: 430px; margin-bottom: 34px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 13px 26px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(124,58,237,0.5);
}
.btn-hero-primary:hover { background: var(--accent-h); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,0.65); }

.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,0.88);
  padding: 13px 26px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.22);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); color: #fff; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; }
.trust-pill { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.55); font-size: 0.8rem; font-weight: 500; }
.trust-icon-box {
  width: 28px; height: 28px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}

/* Dashboard mockup */
.hero-visual { position: relative; }

.mockup-outer {
  background: rgba(12,10,36,0.85);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
}

.mockup-topbar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mdot { width: 10px; height: 10px; border-radius: 50%; }
.mdot.r { background: #ff5f57; } .mdot.y { background: #febc2e; } .mdot.g { background: #28c840; }

.mockup-url {
  flex: 1; margin-left: 8px;
  background: rgba(0,0,0,0.25); border-radius: 4px;
  padding: 3px 10px; font-size: 0.65rem;
  color: rgba(255,255,255,0.35); font-family: monospace;
}

.mockup-layout { display: grid; grid-template-columns: 158px 1fr; }

.mockup-sidebar {
  background: rgba(8,6,28,0.9);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 14px 10px;
}
.msb-logo { font-size: 0.7rem; font-weight: 700; color: #8b5cf6; margin-bottom: 18px; padding: 0 6px; }
.msb-item { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 6px; font-size: 0.7rem; color: rgba(255,255,255,0.38); margin-bottom: 2px; }
.msb-item.active { background: rgba(124,58,237,0.2); color: #a78bfa; border: 1px solid rgba(124,58,237,0.25); }

.mockup-main-area { padding: 14px; }
.mma-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 11px; gap: 8px; }
.mma-title { font-size: 0.78rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.mma-sub { font-size: 0.6rem; color: rgba(255,255,255,0.4); }
.mma-sort { font-size: 0.6rem; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 5px; padding: 4px 8px; color: rgba(255,255,255,0.45); white-space: nowrap; }

.mockup-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.mpc { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 10px; }
.mpc-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 8px; }
.mpc-name { font-size: 0.63rem; font-weight: 700; color: #fff; margin-bottom: 2px; line-height: 1.3; }
.mpc-type { font-size: 0.52rem; color: rgba(255,255,255,0.38); margin-bottom: 7px; }
.mpc-footer { display: flex; justify-content: space-between; align-items: flex-end; }
.mpc-stars { color: #f59e0b; font-size: 0.52rem; }
.mpc-count { font-size: 0.48rem; color: rgba(255,255,255,0.3); }
.mpc-price { font-size: 0.7rem; font-weight: 700; color: #fff; }
.mpc-cart { width: 18px; height: 18px; background: rgba(124,58,237,0.25); border: 1px solid rgba(124,58,237,0.3); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #a78bfa; }

/* ============================================================
   FEATURES STRIP — white background, bordered 4-col card
   ============================================================ */
.features-section { background: #fff; padding: 32px 0; }

.features-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.feature-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 28px 22px;
  border-right: 1px solid var(--border); background: #fff;
}
.feature-item:last-child { border-right: none; }

.feat-icon {
  width: 44px; height: 44px;
  background: #f3f0ff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 20px;
}

.feat-body h4 { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.feat-body p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ============================================================
   POPULAR PRODUCTS — white bg, 5-col grid
   ============================================================ */
.products-section { background: #fff; padding: 52px 0 64px; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 1.55rem; font-weight: 800; color: var(--text-dark); letter-spacing: -0.3px; }
.view-all-link { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--text-mid); }
.view-all-link:hover { color: var(--accent); }

.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

.product-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; flex-direction: column;
  transition: all 0.2s; cursor: pointer;
}
.product-card:hover { border-color: #c4b5fd; box-shadow: 0 8px 24px rgba(124,58,237,0.12); transform: translateY(-2px); }

.pc-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 14px; }

.pc-name { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; line-height: 1.3; }
.pc-type { font-size: 0.74rem; color: var(--text-muted); margin-bottom: 10px; }
.pc-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; flex: 1; }

.pc-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 14px; }
.pc-stars { color: var(--yellow); font-size: 0.72rem; }
.pc-rating-text { font-size: 0.74rem; color: var(--text-muted); }

.pc-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.pc-price { font-size: 1.05rem; font-weight: 800; color: var(--text-dark); }

.pc-add-cart {
  width: 32px; height: 32px;
  background: #f3f4f6; border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 15px; transition: all 0.2s; text-decoration: none;
}
.pc-add-cart:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   TRUST BAR — white, centered logos
   ============================================================ */
.trust-section { background: #fff; border-top: 1px solid var(--border); padding: 36px 0; text-align: center; }
.trust-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 24px; }
.trust-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-logo { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; color: #9ca3af; transition: color 0.2s; }
.trust-logo:hover { color: #6b7280; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { background: var(--surface); padding: 80px 0; text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-label { font-size: 0.75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; }
.cta-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--text-dark); letter-spacing: -0.5px; margin-bottom: 14px; line-height: 1.2; }
.cta-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 32px; line-height: 1.65; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-cta-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 13px 26px; border-radius: 8px; font-size: 0.95rem; font-weight: 700; box-shadow: 0 4px 16px rgba(124,58,237,0.4); }
.btn-cta-primary:hover { background: var(--accent-h); color: #fff; transform: translateY(-1px); }

.btn-cta-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--text-mid); padding: 13px 26px; border-radius: 8px; font-size: 0.95rem; font-weight: 600; border: 1px solid var(--border); }
.btn-cta-ghost:hover { background: #fff; color: var(--text-dark); }

/* ============================================================
   FOOTER — white
   ============================================================ */
#colophon { background: #fff; border-top: 1px solid var(--border); padding: 56px 0 28px; }

.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }

.footer-brand p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; margin: 12px 0 20px; max-width: 240px; }

.footer-social { display: flex; gap: 10px; }
.social-btn { width: 34px; height: 34px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 15px; transition: all 0.2s; text-decoration: none; }
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-col h4 { font-size: 0.78rem; font-weight: 700; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.84rem; color: var(--text-muted); padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; gap: 10px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-muted); font-size: 0.8rem; }
.footer-legal a:hover { color: var(--accent); }

/* ============================================================
   PAGE CONTENT / BLOG
   ============================================================ */
.site-main { min-height: 60vh; }

.entry-content { padding: 60px 24px; max-width: 800px; margin: 0 auto; }
.entry-content h1,.entry-content h2,.entry-content h3 { color: var(--text-dark); margin: 1.5rem 0 0.75rem; font-weight: 800; }
.entry-content p { color: var(--text-mid); margin-bottom: 1rem; }
.entry-content a { color: var(--accent); }
.entry-content ul,.entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content li { color: var(--text-mid); margin-bottom: 0.4rem; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 48px 0; }
.post-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: all 0.2s; }
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.post-card-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card-body { padding: 20px; }
.post-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.post-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.post-card-title a { color: var(--text-dark); }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 32px 0; }
.page-numbers { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.page-numbers:hover,.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Forms */
input[type="text"],input[type="email"],input[type="password"],input[type="search"],input[type="url"],input[type="number"],textarea,select { width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--text-dark); font-family: 'Inter',sans-serif; font-size: 0.9rem; transition: all 0.2s; }
input:focus,textarea:focus,select:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }

/* 404 */
.error-404 { text-align: center; padding: 100px 24px; }
.error-code { font-size: 7rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 16px; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: flex; align-items: flex-start; padding-top: 80px; }
.search-overlay[hidden] { display: none; }
.search-overlay-inner { background: #fff; border-radius: var(--radius-lg); padding: 24px; width: 100%; max-width: 600px; margin: 0 auto; position: relative; }
.search-close { position: absolute; top: 16px; right: 16px; font-size: 18px; color: var(--text-muted); }

/* Badges */
.badge { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.badge-new  { background: #d1fae5; color: #065f46; }
.badge-hot  { background: #fee2e2; color: #991b1b; }
.badge-sale { background: #ede9fe; color: #5b21b6; }

/* Utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3,1fr); }
  .features-strip { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 34px; }
  .hero-buttons,.hero-trust { justify-content: center; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  #primary-navigation { display: none; }
  #primary-navigation.is-open { display: flex; flex-direction: column; position: fixed; inset: 64px 0 0 0; background: #fff; padding: 20px; overflow-y: auto; z-index: 999; border-top: 1px solid var(--border); }
  #primary-navigation.is-open .nav-menu { flex-direction: column; width: 100%; }
  #primary-navigation.is-open .nav-menu > li > a { padding: 12px 16px; font-size: 1rem; }
  .menu-toggle { display: flex; }
  .features-strip { grid-template-columns: 1fr; margin: 0; border-radius: 0; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-item:last-child { border-bottom: none; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
