/**
 * WiizoChat - Estilos Customizados
 * Complementa o TailwindCSS via CDN
 */

/* ========================================
   Variáveis CSS
   ======================================== */
:root {
    --color-primary: #6607a5;
    --color-secondary: #04c82f;
    --color-white: #ffffff;
    --radius: 8px;
}

/* ========================================
   Reset e Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
}

/* ========================================
   Links e Botões - Cursor Pointer
   ======================================== */
a,
button,
[role="button"],
.nav-link,
.button-primary,
.button-secondary,
.feature-card {
    cursor: pointer !important;
}

/* ========================================
   Componentes de Navegação
   ======================================== */
.nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: #ffffff;
}

/* ========================================
   Botões
   ======================================== */
.button-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.button-primary:hover {
    background-color: rgba(102, 7, 165, 0.9);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.button-secondary:hover {
    background-color: rgba(4, 200, 47, 0.9);
    transform: translateY(-2px);
}

/* ========================================
   Cards
   ======================================== */
.feature-card {
    background-color: var(--color-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

/* ========================================
   Animações
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Classes de animação */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Delays de animação */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Estado inicial para animações */
.animate-on-scroll {
    opacity: 0;
}

/* ========================================
   Gradientes
   ======================================== */
.hero-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(4, 200, 47, 0.9) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Layouts de Página
   ======================================== */
.page-header-bg {
    background-color: var(--color-primary);
}

.page-header {
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .page-content {
        padding: 0 100px;
    }
}

/* ========================================
   Utilitários de Texto
   ======================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Aspect Ratios
   ======================================== */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* ========================================
   Glassmorphism
   ======================================== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   Scroll Customizado
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ========================================
   Responsividade Mobile
   ======================================== */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .text-hero {
        font-size: 2rem;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}