/* ============================================
   ALFEG DESIGN SYSTEM - THEME CSS
   Copie este arquivo para seu projeto
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   ROOT VARIABLES - LIGHT MODE
   ============================================ */

:root {
  /* Alfeg Primary - Laranja */
  --primary: oklch(0.7 0.18 45);
  --primary-foreground: oklch(1 0 0);
  
  /* Sidebar com tema Alfeg */
  --sidebar-primary: oklch(0.65 0.19 42);
  --sidebar-primary-foreground: oklch(1 0 0);
  
  /* Charts com gradiente Alfeg */
  --chart-1: oklch(0.78 0.15 50);
  --chart-2: oklch(0.7 0.18 45);
  --chart-3: oklch(0.62 0.2 40);
  --chart-4: oklch(0.82 0.15 85);
  --chart-5: oklch(0.75 0.16 80);
  
  --radius: 0.75rem;
  
  /* Fundo creme elegante Alfeg */
  --background: oklch(0.99 0.01 90);
  --foreground: oklch(0.2 0.02 260);
  
  /* Cards brancos com sombra suave */
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0.02 260);
  
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.2 0.02 260);
  
  /* Secundário - tons neutros */
  --secondary: oklch(0.96 0.01 90);
  --secondary-foreground: oklch(0.35 0.02 260);
  
  --muted: oklch(0.95 0.01 90);
  --muted-foreground: oklch(0.5 0.02 260);
  
  /* Accent - Amber/Dourado */
  --accent: oklch(0.92 0.08 85);
  --accent-foreground: oklch(0.25 0.02 260);
  
  --destructive: oklch(0.6 0.22 25);
  --destructive-foreground: oklch(1 0 0);
  
  --border: oklch(0.9 0.01 90);
  --input: oklch(0.92 0.01 90);
  --ring: oklch(0.7 0.18 45);
  
  --sidebar: oklch(1 0 0);
  --sidebar-foreground: oklch(0.2 0.02 260);
  --sidebar-accent: oklch(0.96 0.03 85);
  --sidebar-accent-foreground: oklch(0.2 0.02 260);
  --sidebar-border: oklch(0.92 0.01 90);
  --sidebar-ring: oklch(0.7 0.18 45);
}

/* ============================================
   DARK MODE VARIABLES
   ============================================ */

.dark {
  /* Alfeg Primary - Laranja (mais vibrante no dark) */
  --primary: oklch(0.72 0.19 45);
  --primary-foreground: oklch(0.15 0.01 260);
  
  --sidebar-primary: oklch(0.7 0.18 45);
  --sidebar-primary-foreground: oklch(0.15 0.01 260);
  
  /* Fundo escuro elegante */
  --background: oklch(0.13 0.02 260);
  --foreground: oklch(0.95 0.01 90);
  
  /* Cards escuros */
  --card: oklch(0.18 0.02 260);
  --card-foreground: oklch(0.95 0.01 90);
  
  --popover: oklch(0.18 0.02 260);
  --popover-foreground: oklch(0.95 0.01 90);
  
  --secondary: oklch(0.22 0.02 260);
  --secondary-foreground: oklch(0.85 0.01 90);
  
  --muted: oklch(0.25 0.02 260);
  --muted-foreground: oklch(0.65 0.02 260);
  
  --accent: oklch(0.28 0.04 50);
  --accent-foreground: oklch(0.95 0.01 90);
  
  --destructive: oklch(0.65 0.2 25);
  --destructive-foreground: oklch(1 0 0);
  
  --border: oklch(0.25 0.02 260);
  --input: oklch(0.22 0.02 260);
  --ring: oklch(0.72 0.19 45);
  
  --chart-1: oklch(0.78 0.15 50);
  --chart-2: oklch(0.72 0.19 45);
  --chart-3: oklch(0.65 0.2 40);
  --chart-4: oklch(0.82 0.15 85);
  --chart-5: oklch(0.75 0.16 80);
  
  --sidebar: oklch(0.18 0.02 260);
  --sidebar-foreground: oklch(0.95 0.01 90);
  --sidebar-accent: oklch(0.25 0.03 50);
  --sidebar-accent-foreground: oklch(0.95 0.01 90);
  --sidebar-border: oklch(0.25 0.02 260);
  --sidebar-ring: oklch(0.72 0.19 45);
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
  border-color: var(--border);
  outline-color: var(--ring);
  outline-color: oklch(var(--ring) / 0.5);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
[type="reset"]:not(:disabled),
a[href],
select:not(:disabled),
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled) {
  cursor: pointer;
}

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* Alfeg Gradient Button */
.btn-alfeg {
  background: linear-gradient(
    to right,
    oklch(0.7 0.18 45),
    oklch(0.65 0.19 42)
  );
  color: white;
  font-weight: 600;
  transition: all 300ms ease-out;
  box-shadow: 0 10px 15px -3px oklch(0.7 0.18 45 / 0.1);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
}

.btn-alfeg:hover:not(:disabled) {
  background: linear-gradient(
    to right,
    oklch(0.65 0.19 42),
    oklch(0.6 0.2 38)
  );
  box-shadow: 0 20px 25px -5px oklch(0.7 0.18 45 / 0.1);
  transform: scale(1.02);
}

.btn-alfeg:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-alfeg:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  border-radius: 1.5rem;
}

.dark .glass-card {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Elegant Input */
.input-elegant {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border: 2px solid transparent;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all 300ms;
  font-family: inherit;
  font-size: 1rem;
}

.input-elegant:focus {
  outline: none;
  border-color: oklch(0.7 0.18 45);
  box-shadow: 0 0 0 4px oklch(0.7 0.18 45 / 0.2);
}

.dark .input-elegant {
  background: rgba(31, 41, 55, 0.5);
  color: white;
}

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

/* Social Button Base */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  border: 2px solid;
  transition: all 300ms;
  cursor: pointer;
  font-family: inherit;
}

.btn-social:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-social:active {
  transform: scale(0.98);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Alfeg Gradient Text */
.text-gradient-alfeg {
  background: linear-gradient(
    to right,
    oklch(0.7 0.18 45),
    oklch(0.82 0.15 85)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated Background */
.bg-animated {
  background: linear-gradient(
    -45deg,
    oklch(0.99 0.01 90),
    oklch(0.97 0.03 85),
    oklch(0.98 0.02 50),
    oklch(0.99 0.01 90)
  );
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating Animation */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Pulse Glow */
.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px oklch(0.7 0.18 45 / 0.3);
  }
  50% {
    box-shadow: 0 0 40px oklch(0.7 0.18 45 / 0.6);
  }
}

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1280px;
  }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
  .btn-alfeg {
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
  }

  .glass-card {
    border-radius: 1rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

input:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .btn-alfeg,
  .glass-card,
  .bg-animated {
    box-shadow: none;
    background: white;
    color: black;
  }
}
