/*
Theme Name: Academia do Moinhos
Author: Academia do Moinhos
Description: Tema personalizado para a Academia do Moinhos, focado em saúde e bem-estar para a melhor idade
Version: 1.0
*/

/* Variáveis de Cores */
:root {
    --primary: #dc2626;
    --primary-light: #fecaca;
    --primary-dark: #991b1b;
    --secondary: #000000;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f3f4f6;
}

.dark-mode {
    --primary: #ef4444;
    --primary-light: #7f1d1d;
    --primary-dark: #fca5a5;
    --secondary: #ffffff;
    --text: #f3f4f6;
    --text-light: #d1d5db;
    --bg: #111827;
    --bg-alt: #1f2937;
}

/* Estilos Globais */
body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: all 0.3s ease;
    cursor: none;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-alt { background-color: var(--bg-alt); }
.text-main { color: var(--text); }
.text-light { color: var(--text-light); }

/* Cursor Personalizado */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.3s ease;
    transform: translate(-50%, -50%) scale(1);
}

.cursor.interactive {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: var(--primary-dark);
}

/* Animações */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.pulse-animation { animation: pulse 2s infinite; }
.float-animation { animation: float 3s ease-in-out infinite; }
.shake-animation { animation: shake 0.5s ease infinite; }
.wave-animation {
    display: inline-block;
    animation: wave 2s infinite;
    transform-origin: 70% 70%;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%), url('https://academiadomoinhos.com.br/wp-content/uploads/2024/08/Imagem-do-WhatsApp-de-2024-07-19-as-11.48.22_76b09491-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.dark-mode .hero-gradient {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%), url('https://academiadomoinhos.com.br/wp-content/uploads/2024/08/Imagem-do-WhatsApp-de-2024-07-19-as-11.48.22_76b09491-scaled.jpg');
}

/* Botões */
.btn-hover-animation {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hover-animation:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-hover-animation:after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s;
}

.btn-hover-animation:hover:after { left: 100%; }

/* Navegação */
.nav-link { position: relative; }
.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}
.nav-link:hover:after { width: 100%; }

/* Indicador de Rolagem */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Barra de Carregamento */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--primary);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Seção de Estatísticas */
.stats-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1571902943202-507ec2618e8f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1075&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stats-number {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Cartões de Benefícios */
.benefit-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: var(--bg-alt);
}

.benefit-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Cartões de Depoimentos */
.testimonial-card {
    transition: all 0.5s ease;
    background-color: var(--bg);
}

.testimonial-card:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Botões de Acessibilidade */
.accessibility-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Tipografia */
.text-xxl {
    font-size: 3.5rem;
    line-height: 1.1;
}

/* Logo */
.logo {
    height: 40px;
    width: auto;
}

/* Estilo Hover */
.hover-grow:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Estilos Responsivos */
@media (max-width: 1024px) {
    .hero-gradient, .stats-section { background-attachment: scroll; }
}

@media (max-width: 768px) {
    body { cursor: default; }
    .cursor { display: none; }
    .text-xxl { font-size: 2.5rem; }
    .accessibility-btn { flex-direction: row; bottom: 10px; right: 10px; }
    .logo { height: 32px; }
}

@media (max-width: 480px) {
    .text-xxl { font-size: 2rem; }
    .logo { height: 28px; }
}

/* Acessibilidade: Reduzir Movimento */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* Estilos de Navegação */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    display: inline-block;
    margin-right: 1rem;
}

.main-navigation a {
    color: var(--text);
    font-weight: bold;
}

.main-navigation a:hover {
    color: var(--primary);
}

/* Estilos de Posts e Páginas */
.entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.entry-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.entry-content {
    margin-bottom: 2rem;
}

/* Estilos de Comentários */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--bg-alt);
    border-radius: 0.5rem;
}

.comment-respond {
    margin-top: 2rem;
}

/* Estilos de Widgets */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}