/*
Theme Name: WMA Academy
Theme URI: https://tupiniquimmusical.com.br
Author: Tupiniquim Musical
Author URI: https://tupiniquimmusical.com.br
Description: Tema premium para escola de música online - design dark mode futurista com neon roxo e azul.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wma-academy
Tags: music, education, dark, modern, lms, elearning
*/

/* =========================================
   VARIÁVEIS CSS - DESIGN SYSTEM
   ========================================= */
:root {
    --color-bg-primary: #060612;
    --color-bg-secondary: #0a0a1a;
    --color-bg-card: #0f0f24;
    --color-bg-card-hover: #141430;
    --color-bg-overlay: rgba(6, 6, 18, 0.92);

    --color-neon-purple: #8b3dff;
    --color-neon-purple-light: #a855f7;
    --color-neon-purple-glow: rgba(139, 61, 255, 0.4);
    --color-neon-blue: #00d4ff;
    --color-neon-blue-light: #38bdf8;
    --color-neon-blue-glow: rgba(0, 212, 255, 0.4);
    --color-neon-pink: #ff3dac;
    --color-neon-green: #00ff88;

    --color-text-primary: #f0f0ff;
    --color-text-secondary: #9898b8;
    --color-text-muted: #5a5a7a;
    --color-text-accent: #a855f7;

    --color-border: rgba(139, 61, 255, 0.2);
    --color-border-bright: rgba(139, 61, 255, 0.5);

    --gradient-primary: linear-gradient(135deg, #8b3dff 0%, #00d4ff 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a1a 0%, #060612 100%);
    --gradient-card: linear-gradient(145deg, #0f0f24 0%, #0a0a1a 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(139, 61, 255, 0.15) 0%, transparent 70%);

    --font-heading: 'Orbitron', 'Space Grotesk', sans-serif;
    --font-body: 'Inter', 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    --shadow-neon-purple: 0 0 20px rgba(139, 61, 255, 0.5), 0 0 40px rgba(139, 61, 255, 0.2);
    --shadow-neon-blue: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.2);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(139, 61, 255, 0.1);

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
    --spacing-3xl: 8rem;

    --container-max: 1280px;
    --container-wide: 1440px;
    --container-narrow: 900px;

    --header-height: 80px;
    --z-header: 1000;
    --z-modal: 2000;
    --z-tooltip: 3000;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(139, 61, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-neon-purple-light); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-neon-blue); }
ul, ol { list-style: none; }

/* =========================================
   TIPOGRAFIA
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: var(--spacing-sm); color: var(--color-text-secondary); }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   LAYOUT & CONTAINERS
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section {
    position: relative;
    padding: var(--spacing-3xl) 0;
    z-index: 1;
}

.section--sm { padding: var(--spacing-xl) 0; }
.section--lg { padding: calc(var(--spacing-3xl) * 1.5) 0; }

/* =========================================
   BOTÕES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-neon-purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 61, 255, 0.7), 0 0 60px rgba(139, 61, 255, 0.3);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-neon-purple-light);
    border: 1px solid var(--color-border-bright);
}

.btn-outline:hover {
    background: rgba(139, 61, 255, 0.1);
    border-color: var(--color-neon-purple);
    box-shadow: var(--shadow-neon-purple);
    color: var(--color-neon-purple-light);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-icon { padding: 0.75rem; }

/* =========================================
   CARDS
   ========================================= */
.card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-bright);
    box-shadow: var(--shadow-card), 0 0 30px rgba(139, 61, 255, 0.1);
}

.card:hover::before { opacity: 1; }

/* =========================================
   BADGES
   ========================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-purple {
    background: rgba(139, 61, 255, 0.15);
    color: var(--color-neon-purple-light);
    border: 1px solid rgba(139, 61, 255, 0.3);
}

.badge-blue {
    background: rgba(0, 212, 255, 0.15);
    color: var(--color-neon-blue);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-green {
    background: rgba(0, 255, 136, 0.15);
    color: var(--color-neon-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* =========================================
   SEPARADOR / SECTION HEADER
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header .badge { margin-bottom: var(--spacing-sm); }
.section-header h2 { margin-bottom: var(--spacing-sm); }
.section-header p { max-width: 600px; margin: 0 auto; font-size: 1.125rem; }

/* =========================================
   PROGRESS BAR
   ========================================= */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(139, 61, 255, 0.6);
}

/* =========================================
   FORMS
   ========================================= */
.form-group { margin-bottom: var(--spacing-md); }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-neon-purple);
    background: rgba(139, 61, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.15);
}

.form-control::placeholder { color: var(--color-text-muted); }

/* =========================================
   GRID SYSTEMS
   ========================================= */
.grid { display: grid; gap: var(--spacing-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section { padding: var(--spacing-2xl) 0; }
}

/* =========================================
   UTILITÁRIOS
   ========================================= */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.glow-purple { box-shadow: var(--shadow-neon-purple); }
.glow-blue { box-shadow: var(--shadow-neon-blue); }

/* =========================================
   SCROLLBAR PERSONALIZADA
   ========================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-primary); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-neon-purple), var(--color-neon-blue));
    border-radius: var(--radius-full);
}

/* =========================================
   SELEÇÃO DE TEXTO
   ========================================= */
::selection {
    background: rgba(139, 61, 255, 0.3);
    color: var(--color-text-primary);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(139, 61, 255, 0.4); }
    50% { box-shadow: 0 0 35px rgba(139, 61, 255, 0.8), 0 0 70px rgba(139, 61, 255, 0.3); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
