/* Global Styles - Matches portal.pebyl.ai design theme */
/* Dark theme with glassmorphism and bento box styling */

:root {
  /* Dark Theme Colors - Matching portal.pebyl.ai */
  --pebyl-bg-primary: #0A0E27; /* Dark blue background */
  --pebyl-bg-secondary: rgba(10, 14, 39, 0.95); /* Header/footer background */
  --pebyl-bg-card: rgba(26, 31, 58, 0.6); /* Bento card background */
  --pebyl-bg-card-hover: rgba(26, 31, 58, 0.8);
  
  /* Text Colors */
  --pebyl-text-primary: #FFFFFF;
  --pebyl-text-secondary: rgba(255, 255, 255, 0.7);
  --pebyl-text-muted: rgba(255, 255, 255, 0.5);
  
  /* Accent Colors - Green/Teal Gradient */
  --pebyl-primary: #00D9A5; /* Bright teal */
  --pebyl-primary-dark: #00B88A; /* Darker teal */
  --pebyl-primary-gradient: linear-gradient(135deg, #00D9A5 0%, #00B88A 100%);
  
  /* Blue/Cyan Accents */
  --pebyl-blue: #3B82F6;
  --pebyl-blue-light: rgba(59, 130, 246, 0.2);
  --pebyl-blue-border: rgba(59, 130, 246, 0.3);
  
  /* Purple Accents */
  --pebyl-purple: #4F46E5;
  --pebyl-purple-light: rgba(79, 70, 229, 0.2);
  --pebyl-purple-border: rgba(79, 70, 229, 0.3);
  
  /* Orange/Amber Accents */
  --pebyl-amber: #F59E0B;
  --pebyl-amber-light: rgba(245, 158, 11, 0.2);
  
  /* Borders */
  --pebyl-border: rgba(255, 255, 255, 0.1);
  --pebyl-border-light: rgba(255, 255, 255, 0.05);
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-heading: 'Inter', var(--font-primary);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* Layout */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 4px 6px -1px rgba(0, 217, 165, 0.3);
  --shadow-dark: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-primary);
  color: var(--pebyl-text-primary);
  background: var(--pebyl-bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 217, 165, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.1) 0px, transparent 50%);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--pebyl-text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--pebyl-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--pebyl-text-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--pebyl-primary-gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(0, 217, 165, 0.4);
  color: white;
}

.btn-secondary {
  background: rgba(59, 130, 246, 0.2);
  color: var(--pebyl-blue);
  border: 1px solid var(--pebyl-blue-border);
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--pebyl-primary);
  border: 1px solid rgba(0, 217, 165, 0.3);
}

.btn-outline:hover {
  background: rgba(0, 217, 165, 0.1);
  border-color: var(--pebyl-primary);
  color: var(--pebyl-primary);
}

/* Bento Box Cards */
.bento-card {
  background: var(--pebyl-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--pebyl-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  background: var(--pebyl-bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-dark);
}

.bento-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--pebyl-border);
  font-size: 1.75rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

/* Legacy Card Support */
.card {
  background: var(--pebyl-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--pebyl-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
}

.card:hover {
  background: var(--pebyl-bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: var(--spacing-4xl) 0;
}

.section-alt {
  background: rgba(26, 31, 58, 0.3);
  backdrop-filter: blur(10px);
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--pebyl-primary);
}

.text-gradient {
  background: var(--pebyl-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-6 { margin-top: var(--spacing-2xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mb-6 { margin-bottom: var(--spacing-2xl); }

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
}
