/**
 * LOVABLE BASE CSS
 * Estilos base idênticos à versão React/Lovable
 * Importar este arquivo em todas as páginas PHP públicas
 */

/* ========================================
   1. FONT IMPORTS (IGUAL À LOVABLE)
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* ========================================
   2. CSS RESET E BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   3. CSS VARIABLES (IDÊNTICAS À index.css DO LOVABLE)
   ======================================== */
:root {
    /* Background & Foreground */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(0, 0%, 20%);
    
    /* Card */
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 0%, 20%);
    
    /* Popover */
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(0, 0%, 20%);
    
    /* Primary (Verde Neoenergia) */
    --primary: hsl(145, 100%, 32%);
    --primary-strong: hsl(145, 100%, 28%);
    --primary-foreground: hsl(0, 0%, 100%);
    
    /* Neoenergia brand olive/brown for titles */
    --neo-title: hsl(45, 25%, 35%);
    
    /* Secondary */
    --secondary: hsl(0, 0%, 96%);
    --secondary-foreground: hsl(0, 0%, 20%);
    
    /* Muted */
    --muted: hsl(0, 0%, 96%);
    --muted-foreground: hsl(0, 0%, 45%);
    
    /* Accent */
    --accent: hsl(145, 100%, 32%);
    --accent-foreground: hsl(0, 0%, 100%);
    
    /* Destructive */
    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(0, 0%, 100%);
    
    /* Border/Input/Ring */
    --border: hsl(0, 0%, 90%);
    --input: hsl(0, 0%, 90%);
    --ring: hsl(145, 100%, 32%);
    
    /* Radius */
    --radius: 0.5rem;
    
    /* Neoenergia Brand Colors */
    --neo-green: hsl(145, 100%, 32%);
    --neo-green-dark: hsl(145, 100%, 28%);
    --neo-green-hex: #00A443;
    --neo-green-dark-hex: #007F33;
    --neo-blue: hsl(207, 90%, 54%);
    --neo-blue-hex: #0066CC;
    --neo-orange: hsl(36, 100%, 50%);
}

/* ========================================
   4. BODY STYLES
   ======================================== */
body {
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--secondary);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   5. HEADER (IDÊNTICO AO NeoHeader.tsx)
   ======================================== */
.neo-header {
    background: var(--neo-green-hex);
    width: 100%;
}

.neo-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.neo-header-content {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.neo-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.neo-header-menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: color 0.2s;
}

.neo-header-menu-btn:hover {
    color: white;
}

.neo-header-logo {
    height: 48px;
    width: auto;
}

.neo-header-login-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 6px;
    background: var(--neo-green-dark-hex);
    color: white;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.neo-header-login-btn:hover {
    opacity: 0.95;
}

/* Navigation Bar (desktop only) */
.neo-nav {
    display: none;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .neo-nav {
        display: block;
    }
}

.neo-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.neo-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 12px 0;
    list-style: none;
}

.neo-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.neo-nav-link:hover {
    color: var(--primary);
}

/* ========================================
   6. MAIN CONTENT
   ======================================== */
.neo-main {
    flex: 1;
    padding: 32px 16px;
}

.neo-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   7. CARD STYLES
   ======================================== */
.neo-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.neo-card-header {
    padding: 24px 24px 0;
}

.neo-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 4px;
}

.neo-card-description {
    font-size: 14px;
    color: var(--muted-foreground);
}

.neo-card-content {
    padding: 24px;
}

/* ========================================
   8. BUTTON STYLES
   ======================================== */
.neo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.neo-btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.neo-btn-primary:hover {
    background: var(--primary-strong);
}

.neo-btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.neo-btn-secondary:hover {
    background: hsl(0, 0%, 92%);
}

.neo-btn-blue {
    background: var(--neo-blue-hex);
    color: white;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 16px;
}

.neo-btn-blue:hover {
    opacity: 0.9;
}

.neo-btn-green {
    background: var(--neo-green-hex);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
}

.neo-btn-green:hover {
    background: var(--neo-green-dark-hex);
}

.neo-btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.neo-btn-outline:hover {
    background: var(--secondary);
}

/* ========================================
   9. FOOTER (IDÊNTICO AO NeoFooter.tsx)
   ======================================== */
.neo-footer {
    background: var(--background);
    border-top: 4px solid var(--neo-green-hex);
}

.neo-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.neo-footer-mobile {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    display: block;
}

.neo-footer-desktop {
    width: 100%;
    display: none;
}

@media (min-width: 768px) {
    .neo-footer-mobile {
        display: none;
    }
    .neo-footer-desktop {
        display: block;
    }
}

/* ========================================
   10. FORM STYLES
   ======================================== */
.neo-form-group {
    margin-bottom: 16px;
}

.neo-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 8px;
}

.neo-form-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.neo-form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.neo-form-input::placeholder {
    color: var(--muted-foreground);
}

/* ========================================
   11. STATUS BADGES
   ======================================== */
.neo-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.neo-status-success {
    background: rgba(34, 197, 94, 0.15);
    color: hsl(142, 71%, 45%);
}

.neo-status-warning {
    background: rgba(251, 191, 36, 0.15);
    color: hsl(45, 93%, 47%);
}

.neo-status-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--destructive);
}

/* ========================================
   12. ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   13. WHATSAPP BUTTON
   ======================================== */
.neo-whatsapp-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 1000;
    text-decoration: none;
}

.neo-whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.neo-whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

/* ========================================
   14. UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-destructive { color: var(--destructive); }
.text-success { color: hsl(142, 71%, 45%); }

.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-muted { background: var(--muted); }

.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }

.shadow-neo {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Spacing */
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }

.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }

.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }

.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.mx-auto { margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* Borders */
.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
