/*
Theme Name: Astra Child
Theme URI: https://blazecolors.cl
Description: Child theme for Astra (customizations for Blaze Colors)
Author: Blaze
Template: astra
Version: 1.0.0
*/

/* BLAZE_CHILD_TEST: remove later if needed */
.site-header{
  background:#00a2ff !important;
}
.site-header a{
  color:#ffffff !important;
}

/* BLAZE_FEMININE_MODERN_TEST */
:root{
  --blaze-accent:#e91e63;
  --blaze-accent-soft:#f8bbd0;
  --blaze-lilac:#c5a3ff;
  --blaze-bg:#fff7fb;
  --blaze-text:#3b2a36;
}

body{
  background:var(--blaze-bg);
  color:var(--blaze-text);
}

.site-header{
  background:linear-gradient(135deg,var(--blaze-accent) 0%,var(--blaze-lilac) 100%) !important;
  box-shadow:0 8px 24px rgba(233,30,99,.2);
}

.site-title a,
.main-header-menu a,
.ast-desktop .main-header-menu > .menu-item > .menu-link{
  color:#ffffff !important;
}

a,
.entry-content a{
  color:var(--blaze-accent);
}

a:hover,
.entry-content a:hover{
  color:#b71550;
}

button,
.button,
input[type="submit"],
.wp-block-button__link{
  background:linear-gradient(135deg,var(--blaze-accent) 0%,var(--blaze-lilac) 100%);
  color:#fff !important;
  border:none;
  border-radius:999px;
  padding:.72em 1.35em;
  box-shadow:0 8px 18px rgba(233,30,99,.28);
  transition:transform .2s ease, box-shadow .2s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(233,30,99,.35);
}

.site,
.content-area,
.widget,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single{
  border-radius:16px;
}

.ast-container,
.site-content .ast-container{
  padding-top:1rem;
  padding-bottom:1.25rem;
}

/* BLAZE_OVERRIDE_FIX: Astra Customizer uses ast-global vars + specific header selectors */
:root{
  --ast-global-color-0:#4fb8ff; /* links/accent */
  --ast-global-color-1:#1e9ef0; /* hover */
  --ast-global-color-primary:#4fb8ff;
  --ast-global-color-4:#ffffff;
}

.ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar{
  background:linear-gradient(135deg,#4fb8ff 0%,#b8a1ff 100%) !important;
}

.ast-builder-menu-1 .menu-item > .menu-link,
.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link,
.site-title a{
  color:#ffffff !important;
}

/* BLAZE_ANIMATED_GRADIENT */
@keyframes blazeGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes blazeShineSweep {
  0% { transform: translateX(-120%); opacity: 0; }
  20% { opacity: .35; }
  50% { opacity: .5; }
  100% { transform: translateX(220%); opacity: 0; }
}

.ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar{
  background:linear-gradient(120deg,#4fb8ff,#8fd3ff,#b8a1ff,#ff9acb,#4fb8ff) !important;
  background-size:300% 300%;
  animation:blazeGradientFlow 5s linear infinite;
  position:relative;
  overflow:hidden;
}

.ast-primary-header-bar::before,
.ast-mobile-header-wrap .ast-primary-header-bar::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(100deg,transparent 35%,rgba(255,255,255,.5) 50%,transparent 65%);
  transform:translateX(-120%);
  animation:blazeShineSweep 3.6s ease-in-out infinite;
  pointer-events:none;
}

button,
.button,
input[type="submit"],
.wp-block-button__link{
  background-size:240% 240%;
  animation:blazeGradientFlow 8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce){
  .ast-primary-header-bar,
  .ast-mobile-header-wrap .ast-primary-header-bar,
  button,
  .button,
  input[type="submit"],
  .wp-block-button__link{
    animation:none;
  }
}
