/*
Theme Name: FIGME Theme
Theme URI: https://figme.example
Author: FIGME
Description: תבנית בלוקים צבעונית, צעירה ו-RTL לחנות הבובות האישיות FIGME. כל הלוגיקה העסקית בפלאגין figme-core.
Version: 0.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: figme-theme
Tags: block-theme, e-commerce, rtl-language-support
*/

/* ------------------------------------------------------------------ */
/* Design tokens (consumed also by the figme-core configurator)        */
/* ------------------------------------------------------------------ */
body {
  --figme-background: #ffffff;
  --figme-surface: #faf7ff;
  --figme-text: #241a3d;
  --figme-muted: #6e6688;
  --figme-border: #e9e2f7;
  --figme-accent: #7c4dff;
  --figme-accent-hover: #6a3df2;
  --figme-pink: #f0439c;
  --figme-orange: #ff8a3d;
  --figme-yellow: #ffd54d;
  --figme-mint: #2bd9c2;
  --figme-success: #12a150;
  --figme-warning: #b47d00;
  --figme-error: #d6323f;
  --figme-radius-sm: 10px;
  --figme-radius-md: 16px;
  --figme-radius-lg: 26px;
  --figme-shadow: 0 12px 40px rgba(124, 77, 255, 0.13);
  --figme-container-width: 1160px;
  --figme-gradient: linear-gradient(120deg, #7c4dff 0%, #f0439c 55%, #ff8a3d 100%);
  --figme-gradient-soft: linear-gradient(160deg, #f1eaff 0%, #ffe3f0 55%, #fff0e0 100%);
}

/* ------------------------------------------------------------------ */
/* Buttons — chunky, gradient, bouncy                                  */
/* ------------------------------------------------------------------ */
.wp-block-button__link,
.wc-block-components-button,
.woocommerce a.button,
.woocommerce button.button {
  border-radius: 999px !important;
  font-weight: 700;
  padding-block: 0.85em;
  padding-inline: 1.9em;
  background-image: var(--figme-gradient);
  border: none;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(240, 67, 156, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(240, 67, 156, 0.45);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: #fff;
  background-image: none;
  color: var(--figme-accent) !important;
  border: 2px solid var(--figme-accent);
  box-shadow: none;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.figme-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--figme-border);
}
.figme-header .wp-block-site-logo img {
  inline-size: 52px;
  block-size: 52px;
}
.figme-header .wp-block-site-title a {
  font-weight: 900;
  font-size: 1.5rem;
  background: var(--figme-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}
.figme-header .wp-block-navigation a {
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.figme-hero {
  border-radius: var(--figme-radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--figme-gradient-soft);
}
.figme-hero h1 {
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--figme-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.figme-hero-img img {
  border-radius: var(--figme-radius-lg);
  box-shadow: var(--figme-shadow);
}

/* floating confetti blobs */
.figme-hero::before,
.figme-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
}
.figme-hero::before {
  inline-size: 90px;
  block-size: 90px;
  background: var(--figme-yellow);
  inset-block-start: 8%;
  inset-inline-start: 6%;
  animation: figme-float 7s ease-in-out infinite;
}
.figme-hero::after {
  inline-size: 60px;
  block-size: 60px;
  background: var(--figme-mint);
  inset-block-end: 10%;
  inset-inline-end: 8%;
  animation: figme-float 9s ease-in-out infinite reverse;
}
@keyframes figme-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ------------------------------------------------------------------ */
/* Cards                                                               */
/* ------------------------------------------------------------------ */
.figme-step-card {
  background: #fff;
  border-radius: var(--figme-radius-lg);
  padding: 28px;
  box-shadow: var(--figme-shadow);
  border: 2px solid var(--figme-border);
  text-align: center;
  height: 100%;
  transition: transform 0.2s ease;
}
.figme-step-card:hover {
  transform: translateY(-6px);
}
.figme-step-card .figme-step-num {
  display: inline-grid;
  place-items: center;
  inline-size: 52px;
  block-size: 52px;
  border-radius: 50%;
  background: var(--figme-gradient);
  color: #fff;
  font-weight: 900;
  font-size: 1.4rem;
  margin-block-end: 8px;
  box-shadow: 0 6px 16px rgba(124, 77, 255, 0.35);
}
.figme-step-card:nth-child(odd) .figme-step-num {
  background: linear-gradient(120deg, #ff8a3d, #f0439c);
}

.figme-style-showcase {
  border-radius: var(--figme-radius-lg);
  overflow: hidden;
  box-shadow: var(--figme-shadow);
  background: #fff;
  border: 2px solid var(--figme-border);
  transition: transform 0.2s ease;
}
.figme-style-showcase:hover {
  transform: translateY(-6px) rotate(-0.5deg);
}
.figme-style-showcase img {
  display: block;
  inline-size: 100%;
}

/* use-case pills */
.figme-pills p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.figme-pills span {
  background: #fff;
  border: 2px solid var(--figme-border);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(124, 77, 255, 0.08);
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */
.figme-faq details {
  background: #fff;
  border: 2px solid var(--figme-border);
  border-radius: var(--figme-radius-md);
  padding: 16px 22px;
  margin-block-end: 12px;
  transition: border-color 0.15s ease;
}
.figme-faq details[open] {
  border-color: var(--figme-accent);
}
.figme-faq summary {
  font-weight: 700;
  cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.figme-footer {
  background: var(--figme-text);
  color: #fff;
  border-start-start-radius: var(--figme-radius-lg);
  border-start-end-radius: var(--figme-radius-lg);
  margin-block-start: 48px;
}
.figme-footer a,
.figme-footer .wp-block-site-title a {
  color: #fff;
}

/* ------------------------------------------------------------------ */
/* WooCommerce polish                                                  */
/* ------------------------------------------------------------------ */
.woocommerce-message,
.wc-block-components-notice-banner {
  border-radius: var(--figme-radius-md);
}
.wc-block-components-order-summary,
.wc-block-cart-items {
  border-radius: var(--figme-radius-md);
}

/* Focus visibility (WCAG 2.1 AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--figme-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
