/*
Theme Name:   Astra Child - Flipper Boys
Theme URI:    https://flipperboys.com
Description:  Tema filho do Astra otimizado para Flipper Boys com performance e SEO avançados
Author:       D.A.R.I.O CEO Digital
Author URI:   https://flipperboys.com
Template:     astra
Version:      1.0.2
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child-flipper
Tags:         e-commerce, electronics, performance, seo, responsive
*/

/* ============================================================ */
/* ASTRA CHILD THEME - FLIPPER BOYS                            */
/* CSS Global do Tema (complementar ao flipper-home.css)       */
/* ============================================================ */

/* ===== VARIÁVEIS GLOBAIS ===== */
:root {
  --fb-primary: #8163fa;
  --fb-primary-dark: #6d4fe0;
  --fb-secondary: #00d4ff;
  --fb-dark: #0a0f1e;
  --fb-text: #1f2937;
  --fb-text-light: #6b7280;
  --fb-border: #e5e7eb;
  --fb-bg-light: #f8f9fb;
  --fb-success: #10b981;
  --fb-warning: #f59e0b;
  --fb-error: #ef4444;
  --fb-transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fb-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TIPOGRAFIA GLOBAL ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--fb-dark);
}

h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 36px); }
h3 { font-size: clamp(20px, 3vw, 28px); }
h4 { font-size: clamp(18px, 2.5vw, 22px); }
h5 { font-size: clamp(16px, 2vw, 18px); }
h6 { font-size: clamp(14px, 1.5vw, 16px); }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  color: var(--fb-primary);
  text-decoration: none;
  transition: var(--fb-transition);
}

a:hover {
  color: var(--fb-primary-dark);
}

/* ===== BOTÕES GLOBAIS ===== */
.wp-block-button__link,
.ast-button,
button[type="submit"],
input[type="submit"] {
  background: var(--fb-primary);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--fb-transition);
  display: inline-block;
}

.wp-block-button__link:hover,
.ast-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--fb-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(129, 99, 250, 0.3);
}

/* ===== HEADER CUSTOMIZADO ===== */
.site-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.main-header-bar {
  border-bottom: 1px solid var(--fb-border);
}

/* ===== FOOTER CUSTOMIZADO ===== */
.site-footer {
  background: var(--fb-dark);
  color: #e2e8f0;
  padding: 48px 0 24px;
}

.site-footer a {
  color: #e2e8f0;
}

.site-footer a:hover {
  color: var(--fb-secondary);
}

/* ===== FORMULÁRIOS ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--fb-border);
  border-radius: 8px;
  font-size: 15px;
  transition: var(--fb-transition);
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--fb-primary);
  box-shadow: 0 0 0 3px rgba(129, 99, 250, 0.1);
}

/* ===== WOOCOMMERCE BÁSICO ===== */
.woocommerce .star-rating {
  color: #fbbf24;
}

.woocommerce-Price-amount {
  color: var(--fb-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.woocommerce .button.alt {
  background: var(--fb-primary);
  color: #fff;
}

.woocommerce .button.alt:hover {
  background: var(--fb-primary-dark);
}

/* ===== RESPONSIVIDADE GLOBAL ===== */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  .site-header {
    padding: 12px 0;
  }
}

/* ===== OTIMIZAÇÕES DE PERFORMANCE ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
}

/* Lazy loading visual feedback */
img[loading="lazy"] {
  opacity: 0;
  animation: fadeInImage 0.4s ease-in forwards;
}

@keyframes fadeInImage {
  to {
    opacity: 1;
  }
}

/* ===== ACESSIBILIDADE ===== */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .fb-whatsapp-float,
  .fb-topbar,
  .site-header,
  .site-footer {
    display: none !important;
  }
}

/* ============================================================ */
/* FIM DO CSS GLOBAL                                            */
/* ============================================================ */
