/*
Theme Name: OmnifyWP Marketing
Theme URI: https://omnifywp.com
Author: OmnifyWP Team
Author URI: https://omnifywp.com
Description: High-velocity headless commerce and creator store marketing theme for the OmnifyWP WordPress plugin. Features Neo-Pastel Commerce design, 1-click express checkout showcase, device mockups, interactive sandbox, and 100% faithful replication of the design specification.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omnifywp
Tags: e-commerce, custom-colors, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* CSS Variables matching the Neo-Pastel Commerce System */
:root {
  --color-brand-black: #111111;
  --color-brand-yellow: #F2FF66;
  --color-brand-green: #2D8A61;
  --color-brand-pink: #FFD8F0;
  --color-brand-purple: #A992FA;
  --color-brand-grey: #E9ECEF;
  --color-brand-light: #F8F9FA;
  --color-hardware-black: #0D0D0D;
  --color-metallic-mid: #1A1A1A;
  --color-deep-lavender: #8A75D6;
  --color-tint-lavender: #D5C7FF;
  
  --color-surface: #F8F9FA;
  --color-surface-dim: #D9DADB;
  --color-surface-container-lowest: #FFFFFF;
  --color-surface-container-low: #F3F4F5;
  --color-surface-container: #EDEEEF;
  --color-surface-container-high: #E7E8E9;
  --color-surface-container-highest: #E1E3E4;
  --color-on-surface: #191C1D;
  --color-on-surface-variant: #444748;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-brand-black);
  background-color: #FFFFFF;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.03em;
}

h1, .h1 {
  line-height: 1.25 !important;
}

h2, .h2 {
  line-height: 1.32 !important;
}

h3, .h3 {
  line-height: 1.38 !important;
}

h4, .h4 {
  line-height: 1.42 !important;
}

h5, .h5, h6, .h6 {
  line-height: 1.48 !important;
}

/* Eyebrow Pill Badge */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid #111111;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111111;
  background: #FFFFFF;
  transition: all 0.2s ease;
}

/* Floating subtle animation for stats */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fadeIn {
  animation: fadeIn 0.2s ease-out forwards;
}

/* Metallic / Aurora gradient background for banner */
.metallic-banner {
  background: radial-gradient(120% 180% at 85% 110%, rgba(242, 255, 102, 0.22) 0%, rgba(169, 146, 250, 0.18) 35%, rgba(13, 13, 13, 1) 70%),
              linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 45%, #0D0D0D 100%);
  position: relative;
  overflow: hidden;
}
.metallic-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    transparent,
    transparent 24px,
    rgba(255, 255, 255, 0.025) 24px,
    rgba(255, 255, 255, 0.025) 48px
  );
  pointer-events: none;
}

/* Clean browser scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F8F9FA;
}
::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* WordPress Core Alignment & Block styling */
.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Material Symbols alignment helper */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* WordPress Pagination Neo-Pastel Styling */
.nav-links,
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.navigation.pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
ul.page-numbers {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  height: auto !important;
  min-width: auto !important;
}
ul.page-numbers li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
a.page-numbers,
span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 9999px;
  background-color: #ffffff;
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
a.page-numbers:hover {
  background-color: #f1f5f9;
  border-color: #0f172a;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}
span.page-numbers.current {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  font-weight: 700;
}
span.page-numbers.dots {
  background: transparent;
  border: none;
  box-shadow: none;
  min-width: auto;
  padding: 0 0.5rem;
  color: #64748b;
  font-weight: 700;
}
a.page-numbers.prev,
a.page-numbers.next {
  padding: 0 1.25rem;
  font-weight: 700;
  gap: 0.35rem;
}

/* ==========================================================================
   Blog Entry Content (Gutenberg / Block Editor & Classic Content)
   ========================================================================== */
.entry-content {
  color: #191c1d;
  font-size: 1.125rem;
  line-height: 1.8;
}
.entry-content p {
  margin-bottom: 1.5rem;
}
.entry-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.025em;
  line-height: 1.35;
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: 7rem;
}
.entry-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  scroll-margin-top: 7rem;
}
.entry-content h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.45;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.entry-content ul, .entry-content ol {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.entry-content ul { list-style-type: disc; }
.entry-content ol { list-style-type: decimal; }
.entry-content li {
  margin-bottom: 0.5rem;
}
.entry-content blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  background-color: #A992FA;
  color: #111111;
  border-radius: 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5;
  border-left: none;
  box-shadow: 0 4px 20px rgba(169, 146, 250, 0.25);
}
.entry-content pre, .entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.entry-content pre {
  background-color: #0D0D0D;
  color: #F8F9FA;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1.5rem 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.entry-content :not(pre) > code {
  background-color: #f3f4f5;
  color: #5c6300;
  padding: 0.2rem 0.4rem;
  border-radius: 0.375rem;
  font-size: 0.875em;
  font-weight: 600;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 1.25rem;
  margin: 1.5rem 0;
}
.entry-content figure {
  margin: 2rem 0;
}
.entry-content figcaption {
  font-size: 0.8125rem;
  color: #747878;
  text-align: center;
  margin-top: 0.5rem;
}
.entry-content a {
  color: #6e54d8;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.entry-content a:hover {
  color: #1e1b4b;
}
.article-lead {
  background: #f8fafc;
  border-left: 4px solid #6e54d8;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  margin: 1.75rem 0 2rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.article-lead p {
  margin-bottom: 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #1e1b4b;
}
.entry-content mark {
  background: #dfec55;
  color: #1e1b4b;
  padding: 0.15em 0.4em;
  border-radius: 0.35rem;
  font-weight: 600;
}
.entry-content table,
.entry-content .wp-block-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.entry-content th, .entry-content td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
}
.entry-content th {
  background-color: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.entry-content tr:last-child td {
  border-bottom: none;
}
.entry-content tr:nth-child(even) td {
  background-color: #f8fafc;
}

/* ==========================================================================
   Comments Section & Threaded Nested Replies Styling
   ========================================================================== */
.comment-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.comment-list .comment {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin-bottom: 1.5rem;
  list-style: none !important;
  position: relative;
}

.comment-body {
  position: relative;
  transition: all 0.2s ease;
}

.comment-list .children {
  list-style: none !important;
  margin: 1.25rem 0 0 1rem;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid #e2e8f0;
  position: relative;
}

@media (min-width: 640px) {
  .comment-list .children {
    margin: 1.5rem 0 0 2.5rem;
    padding: 0 0 0 1.75rem;
  }
}

.comment-list .children > li.comment {
  position: relative;
  margin-bottom: 1.25rem;
  list-style: none !important;
}

/* Horizontal connector branch from vertical thread line into child comment card */
.comment-list .children > li.comment::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: -1.25rem;
  width: 1.25rem;
  height: 2px;
  background-color: #e2e8f0;
}

@media (min-width: 640px) {
  .comment-list .children > li.comment::before {
    left: -1.75rem;
    width: 1.75rem;
  }
}

/* Reply Pill Action Button */
.comment-list .reply a,
.comment-body .reply a.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111111;
  background-color: #f1f5f9;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.comment-list .reply a:hover,
.comment-body .reply a.comment-reply-link:hover {
  background-color: #dfec55;
  color: #111111;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(223, 236, 85, 0.35);
}

/* Cancel Reply Button */
#cancel-comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
  background-color: #fee2e2;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-decoration: none;
  margin-left: 0.75rem;
  vertical-align: middle;
  transition: all 0.2s ease;
}

#cancel-comment-reply-link:hover {
  background-color: #fecaca;
  color: #dc2626;
}

/* In-place reply form moved by WordPress under an active comment */
li.comment #respond {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.5rem !important;
  background-color: #ffffff;
  border-radius: 1.5rem !important;
  border: 2px solid #dfec55 !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   Comment Form Neo-Pastel Architecture
   ========================================================================== */
.comment-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.comment-form > p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0 0 1.25rem 0;
}

.comment-form > p.comment-notes,
.comment-form > p.logged-in-as {
  display: block;
}

.comment-form label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e293b;
  margin-bottom: 0.375rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  display: block;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  padding: 0.875rem 1.125rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #0f172a;
  background-color: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.comment-form input[type="text"]:hover,
.comment-form input[type="email"]:hover,
.comment-form input[type="url"]:hover,
.comment-form textarea:hover {
  background-color: #ffffff;
  border-color: #cbd5e1;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  background-color: #ffffff;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(223, 236, 85, 0.5);
}

.comment-form .comment-form-cookies-consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.625rem;
  margin: 0.5rem 0 1.5rem 0;
}

.comment-form .comment-form-cookies-consent input[type="checkbox"] {
  width: 1rem !important;
  height: 1rem !important;
  margin: 0.2rem 0 0 0 !important;
  border-radius: 0.25rem;
  border: 1px solid #cbd5e1;
  accent-color: #111111;
  cursor: pointer;
}

.comment-form .comment-form-cookies-consent label {
  display: inline !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  cursor: pointer;
}

.comment-form .form-submit {
  margin: 0.5rem 0 0 0;
}

.comment-form .form-submit input[type="submit"],
.comment-form .form-submit button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #111111;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover,
.comment-form .form-submit button:hover {
  background-color: #262626;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.comment-form .form-submit input[type="submit"]:active,
.comment-form .form-submit button:active {
  transform: scale(0.98);
}
