/*
Theme Name: MADRE – DJ/Produtor v5 ULTRA
Theme URI: https://musicbymadre.com
Description: Tema WordPress profissional com design preto e laranja, animações fluidas tipo equalizer de DJ, páginas separadas e efeitos visuais impactantes.
Version: 5.0.0
Author: Manus AI
Author URI: https://manus.ai
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: madre-theme-v5
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

:root {
  /* Paleta MADRE v5 — Preto e Laranja */
  --color-bg-dark: #0A0A0A;
  --color-bg-secondary: #1A1A1A;
  --color-primary: #FF6B35;
  --color-secondary: #FFD60A;
  --color-accent: #0096FF;
  --color-text-light: #FFFFFF;
  --color-text-muted: #B0B0B0;
  --color-border: #333333;
  
  /* Tipografia */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Espaçamento */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 16px;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ========================================
   FUNDO ANIMADO CINEMATOGRÁFICO - TIPO EQUALIZER
   ======================================== */

/* Camada 1: Gradientes dinâmicos fluindo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 150, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 214, 10, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 60% 60%, rgba(255, 107, 53, 0.08) 0%, transparent 60%);
  animation: gradientFlow 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* Camada 2: Ondas fluidas tipo equalizer */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><defs><style>.wave1{fill:none;stroke:rgba(255,107,53,0.08);stroke-width:2;}</style></defs><path class="wave1" d="M0,100 Q300,50 600,100 T1200,100"/><path class="wave1" d="M0,120 Q300,70 600,120 T1200,120"/><path class="wave1" d="M0,80 Q300,30 600,80 T1200,80"/></svg>') repeat-x,
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><defs><style>.wave2{fill:none;stroke:rgba(0,150,255,0.06);stroke-width:2;}</style></defs><path class="wave2" d="M0,150 Q300,100 600,150 T1200,150"/><path class="wave2" d="M0,170 Q300,120 600,170 T1200,170"/></svg>') repeat-x;
  background-size: 600px 200px, 800px 200px;
  background-position: 0 0, 100px 50px;
  animation: waveFlowX 15s linear infinite, waveFlowY 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  will-change: transform;
}

/* ========================================
   KEYFRAMES - ANIMAÇÕES FLUIDAS
   ======================================== */

@keyframes gradientFlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(40px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-30px, 40px) scale(1);
  }
  75% {
    transform: translate(30px, -40px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes waveFlowX {
  0% {
    background-position: 0 0, 100px 50px;
  }
  100% {
    background-position: -600px 0, -700px 50px;
  }
}

@keyframes waveFlowY {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-15px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(15px);
  }
}

/* Partículas flutuantes - tipo bolhas de música */
@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-40px) translateX(20px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-80px) translateX(-20px) scale(0.9);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-40px) translateX(30px) scale(1.05);
    opacity: 0.5;
  }
}

/* Linhas pulsantes - tipo equalizer */
@keyframes linePulse {
  0%, 100% {
    opacity: 0.3;
    height: 20px;
  }
  50% {
    opacity: 0.7;
    height: 40px;
  }
}

@keyframes linePulseAlt {
  0%, 100% {
    opacity: 0.2;
    height: 15px;
  }
  50% {
    opacity: 0.6;
    height: 50px;
  }
}

@keyframes linePulseAlt2 {
  0%, 100% {
    opacity: 0.25;
    height: 25px;
  }
  50% {
    opacity: 0.65;
    height: 45px;
  }
}

/* Glow pulsante */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
  }
}

/* Garante que todo conteúdo fica acima do fundo animado */
header, main, section, footer, .container {
  position: relative;
  z-index: 1;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-light);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
  color: var(--color-primary);
  animation: slideInLeft 0.8s ease-out;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 2px;
  animation: expandWidth 0.8s ease-out 0.2s both;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-muted);
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Header */
header {
  position: sticky;
  top: 0;
  background-color: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  padding: var(--spacing-md) 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  animation: glowPulse 3s ease-in-out infinite;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline-block;
}

nav a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
}

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

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--color-primary);
}

nav a.active::after {
  width: 100%;
}

/* Botões */
.btn {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-dark);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-dark);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
}

.btn-accent:hover {
  background-color: #0076cc;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 150, 255, 0.6);
}

/* Seções */
section {
  padding: var(--spacing-3xl) 0;
  animation: fadeIn 0.8s ease-out;
  position: relative;
  z-index: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

section.light {
  background-color: rgba(26, 26, 26, 0.5);
}

section.accent {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(0, 150, 255, 0.05) 100%);
}

/* Efeito de partículas em seções */
section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 30%, rgba(255, 107, 53, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(0, 150, 255, 0.03) 0%, transparent 40%);
  animation: gradientFlow 25s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Hero Section */
.hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, rgba(255, 107, 53, 0.1) 100%);
  position: relative;
  overflow: hidden;
  color: var(--color-text-light);
  text-align: center;
  padding: var(--spacing-3xl) 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
  animation: gradientFlow 15s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: slideInLeft 0.8s ease-out;
}

.hero .subtitle {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  font-weight: 600;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .description {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Grid de conteúdo */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  margin-top: var(--spacing-xl);
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
  transition: all 0.3s ease;
}

.content-image:hover {
  box-shadow: 0 0 50px rgba(255, 107, 53, 0.4);
  transform: translateY(-5px);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
  border: 1px solid var(--color-border);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.1);
  transition: all 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 0 40px rgba(255, 107, 53, 0.4);
  transform: scale(1.05);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Formulário */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--spacing-md);
  background-color: rgba(26, 26, 26, 0.7);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: rgba(255, 107, 53, 0.08);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background-color: rgba(26, 26, 26, 0.8);
  color: var(--color-text-light);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

.footer-section p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--color-primary);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 107, 53, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.social-links a:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Responsivo */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  /* Menu Hamburger em Mobile */
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 500px;
  }

  nav ul {
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
  }

  nav ul li {
    display: block;
    width: 100%;
  }

  nav a {
    font-size: 0.95rem;
    display: block;
    padding: var(--spacing-sm) 0;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  section {
    padding: var(--spacing-2xl) 0;
  }

  /* Prevenir overflow */
  body {
    overflow-x: hidden;
  }

  .container {
    overflow-x: hidden;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .header-content {
    padding: 0 var(--spacing-md);
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 500px;
  }

  nav ul {
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
  }

  nav ul li {
    display: block;
    width: 100%;
  }

  nav a {
    font-size: 0.9rem;
    display: block;
    padding: var(--spacing-sm) 0;
  }

  .logo {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  /* Prevenir overflow */
  body {
    overflow-x: hidden;
  }

  .container {
    overflow-x: hidden;
  }

  section {
    padding: var(--spacing-xl) 0;
  }
}
