/*
Theme Name: Ofertas POP
Theme URI: https://jakson.co/
Author: Jakson
Author URI: https://jakson.co/
Description: 
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.4
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ofertas-pop
Tags: Block Editor Patterns, Site Editor

/*  Smoot Scroll */
html {
  scroll-behavior: smooth;
}

/*  Reduced motion prefs  */
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@view-transition {
  navigation: auto;
}

/*  Navigation Block Breakpoint. Credit: https://wpdocs.io/ */
body .wp-block-navigation__responsive-container-open:not(.always-shown) {
  display: block !important;
}

body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
  display: none !important;
}

/* anchor */
a[rel~="noreferrer"]:not(:has(img)),
a[rel~="noopener"]:not(:has(img)),
a[rel~="nofollow"]:not(:has(img)) {
  position: relative;
}

a[rel~="noreferrer"]:not(:has(img))::after,
a[rel~="noopener"]:not(:has(img))::after,
a[rel~="nofollow"]:not(:has(img))::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 3px 0 8px;
  mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==) no-repeat center;
  mask-size: contain;
  background: currentColor;
}

.oferta-simples a {
  text-decoration: none;
  font-weight: 700;
}

/* Afiliados */

.hostinger-affiliate-block-list-simple__product-title a::after,
.hostinger-affiliate-block-list-cards__product-title a::after, 
.hostinger-affiliate-block-single-type__product-title a::after {
    display:none !important;
}

.hostinger-affiliate-block-single-type {
    border: 4px solid var(--wp--preset--color--theme-7);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
}

.hostinger-affiliate-block-single-type__product-title h3 {
    margin: 0!important;
}
.hostinger-affiliate-block-list-simple__product-title h3,
.hostinger-affiliate-block-list-cards__product-title h3 {
    font-size: 18px;
    line-height: 24px;
    margin: 0 !important;
}

.hostinger-affiliate-block-list-cards__product-price {
    font-size: 20px;
}

/* Dark styles */
.theme-dark body {
  --wp--preset--color--theme-1: var(--wp--preset--color--custom-theme-1-dark, var(--wp--custom--color--theme-1-dark));
  --wp--preset--color--theme-2: var(--wp--preset--color--custom-theme-2-dark, var(--wp--custom--color--theme-2-dark));
  --wp--preset--color--theme-3: var(--wp--preset--color--custom-theme-3-dark, var(--wp--custom--color--theme-3-dark));
  --wp--preset--color--theme-4: var(--wp--preset--color--custom-theme-4-dark, var(--wp--custom--color--theme-4-dark));
  --wp--preset--color--theme-5: var(--wp--preset--color--custom-theme-5-dark, var(--wp--custom--color--theme-5-dark));
  --wp--preset--color--theme-6: var(--wp--preset--color--custom-theme-6-dark, var(--wp--custom--color--theme-6-dark));
  --wp--preset--color--theme-7: var(--wp--preset--color--custom-theme-7-dark, var(--wp--custom--color--theme-7-dark));
  --wp--preset--color--theme-8: var(--wp--preset--color--custom-theme-8-dark, var(--wp--custom--color--theme-8-dark));
  --wp--preset--color--theme-9: var(--wp--preset--color--custom-theme-9-dark, var(--wp--custom--color--theme-9-dark));
  --wp--preset--color--theme-10: var(--wp--preset--color--custom-theme-10-dark, var(--wp--custom--color--theme-10-dark));
}

.site-logo img.custom-logo {
  display: none;
}

/* estado padrão (tema claro) */
.logo-dark {
  display: none !important;
}

.logo-light {
  display: inline-block !important;
}

/* quando o HTML tiver a classe .dark-theme */
html.theme-dark .logo-light {
  display: none !important;
}

html.theme-dark .logo-dark {
  display: inline-block !important;
}

/* Change the width to the breakpoit of the Nav */
@media (min-width: 799px) {
  body .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none !important;
  }

  body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: block !important;
  }
}

/* end nav break point */

/* Nicley wrapped headlines */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

h2:not(:first-of-type) {
    margin-top: 40px;
}

h3:not(:first-of-type) {
    margin-top: 42px;
}

/* Define o espaçamento padrão, exceto na navegação */
li:where(.entry-content *) {
    --li-margin: 18px;
}

li li:where(.entry-content *) {
    --li-margin: 12px;
}

/* Aplica a margem apenas se não for o primeiro item */
li:where(:not(:first-of-type)):where(.entry-content *) {
    margin-top: var(--li-margin);
}

/* I've no idea why when you add a backgroud colour to a column, WP by default adds padding to it... so weird - this get's rid of that */
:where(.wp-block-columns.has-background) {
  padding: initial;
}

/* Pull Quote */
.wp-block-pullquote blockquote {
  display: grid;
  gap: 20px;
}

.wp-block-pullquote cite {
  font-size: 80%;
  font-weight: 600;
}

/* Search Block */
.wp-block-search__input {
  border: 1px solid;
}

.wp-block-search__button {
  box-shadow: none;
  border: 1px solid var(--wp--preset--color--theme-6);
  border-radius: 0;
  color: white;
  padding: 0.4rem 1rem 0.5rem 1rem;
  font-weight: 500;
}

/* Comments */
.comment-form-cookies-consent {
  font-size: 14px;
  line-height: 2;
}

/* Keep our titles link the off black color*/
.wp-block-post-title :where(a) {
  color: var(--wp--preset--color--theme-6);
}

/* Button hover state  - core button block still does not have this and I can't figure out how to do it in theme.json! */
.wp-block-button__link,
a {
  transition: 0.3s;
}

.wp-block-button.is-style-fill .wp-block-button__link:hover,
#commentform .form-submit.wp-block-button input:hover {
  background: var(--wp--preset--color--theme-1);
  color: var(--wp--preset--color--theme-6);
}

.wp-block-button .wp-block-button__link:hover {
  background: var(--wp--preset--color--theme-1);
  color: var(--wp--preset--color--theme-6);
  border-color: var(--wp--preset--color--theme-6);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--theme-6);
  color: var(--wp--preset--color--theme-1);
  border-color: var(--wp--preset--color--theme-6);
}

a:hover:not(.wp-block-site-title a, .wp-block-button__link.wp-element-button) {
  text-decoration: underline !important;
}

/* Pagination */
.page-numbers {
  background: var(--wp--preset--color--theme-1);
  color: var(--wp--preset--color--theme-6);
  border: none;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  font-weight: 600;
}

.page-numbers.current {
  background: var(--wp--preset--color--theme-3);
  color: var(--wp--preset--color--theme-6);
}

.wp-block-post-navigation-link {
  text-wrap: balance;
}

/* TOC */
.simpletoc-list {
    padding-left: 1.5rem;
}

.simpletoc-list li {
    margin-bottom: .75rem;
    line-height: 1.45;
}

.simpletoc-list li a {
    text-decoration: none;
}

@media screen and (min-width: 1024px) {
  /* Seu CSS para telas maiores que 1024px */
  .grupo_banner {
      padding: var(--wp--preset--spacing--medium);
  }
}