/*
Theme Name: MGAI HUP
Theme URI: https://ar.mgai.online
Author: mgai
Description: Arabic RTL block theme (FSE) for MY H-U-P — design system mirrored from geidea.net (Almarai type, #FF4D00 orange, 32px radii, dark hero with video/gradient overlay).
Version: 1.0.0
Requires at least: 6.4
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: mgai-hup
Tags: rtl-language, block-patterns, full-site-editing, one-column, custom-colors
*/

/* ===== Geidea-style effects ===== */

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Buttons: orange pill, lift on hover */
.wp-block-button__link {
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.wp-block-button__link:hover {
  background-color: var(--wp--preset--color--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(255, 77, 0, .5);
}
.is-style-outline .wp-block-button__link:hover {
  background-color: rgba(255, 255, 255, .1) !important;
  box-shadow: none;
}

/* Cards: 32px radius, hover lift (geidea solution cards) */
.hup-card {
  border-radius: 32px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hup-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(16, 19, 33, .18);
}

/* Dark hero gradient overlay (like geidea video hero) */
.hup-hero {
  position: relative;
  isolation: isolate;
}
.hup-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 60% at 80% 10%, rgba(255, 77, 0, .28), transparent 60%),
    linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .75) 100%);
  border-radius: inherit;
  pointer-events: none;
}

/* Brand gradient text accent */
.hup-gradient-text {
  background: linear-gradient(120deg, #FF4D00, #FF8A50);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Big outlined section numbers (01 02 03…) */
.hup-step-number {
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--wp--preset--color--primary);
  line-height: 1;
}

/* FAQ details styling */
.hup-faq details {
  border-bottom: 1px solid rgba(16, 19, 33, .12);
  padding: 1.25rem 0;
}
.hup-faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.hup-faq summary::-webkit-details-marker { display: none; }
.hup-faq summary::after {
  content: "+";
  float: left; /* RTL: appears at line end */
  color: var(--wp--preset--color--primary);
  font-size: 1.5em;
  line-height: 1;
  transition: transform .25s ease;
}
.hup-faq details[open] summary::after { transform: rotate(45deg); }

/* Rounded media */
.hup-rounded img, .hup-rounded video { border-radius: 32px; }

/* Header blur (sticky like geidea) */
.hup-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Reveal-on-scroll (progressive enhancement, JS-free fallback = visible) */
@media (prefers-reduced-motion: no-preference) {
  .hup-card, .hup-step-number {
    animation: hup-fade-up .7s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
  @keyframes hup-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
  }
}
