/**
 * JCP-VISION Brand Styles
 * =======================
 * Single source of truth for all brand definitions.
 * 
 * Usage:
 * <link rel="stylesheet" href="/static/css/brand-styles.css">
 */

/* 1. FONT IMPORTS */
@import url(https://fonts.googleapis.com/css?family=Google+Sans+Text);
/* Fonts are loaded in HTML head for performance, utilizing:
   - 'Inter' for Logo
   - 'Manrope' for Body/Display
   - 'Material Symbols Outlined' for Icons 
*/

/* 2. CSS CUSTOM PROPERTIES (Design Tokens) */
:root {
  /* Primary Brand Colors */
  --jcp-primary: #68de7e;
  --jcp-primary-rgb: 104 222 126;
  --jcp-primary-dark: #4db861;
  --jcp-primary-dark-rgb: 77 184 97;

  /* Light Mode Colors */
  --jcp-bg-light: #f9fafa;
  --jcp-bg-light-rgb: 249 250 250;
  --jcp-surface-light: #ffffff;
  --jcp-surface-light-rgb: 255 255 255;
  --jcp-text-light-main: #111827;
  --jcp-text-light-main-rgb: 17 24 39;
  --jcp-text-light-secondary: #4B5563;
  --jcp-text-light-secondary-rgb: 75 85 99;
  --jcp-border-light: #E5E7EB;
  --jcp-border-light-rgb: 229 231 235;
  
  /* Dark Mode Colors */
  --jcp-bg-dark: #101318;
  --jcp-bg-dark-rgb: 16 19 24;
  --jcp-surface-dark: #1A1E24;
  --jcp-surface-dark-rgb: 26 30 36;
  --jcp-surface-darker: #15181E;
  --jcp-surface-darker-rgb: 21 24 30;
  --jcp-text-dark-secondary: #9ca3af;
  --jcp-text-dark-secondary-rgb: 156 163 175;
  --jcp-border-dark-opacity: rgba(255, 255, 255, 0.05);

  /* Typography */
  --jcp-font-display: "Google Sans Text", "Google Sans", "Manrope", sans-serif;
  --jcp-font-body: 'Manrope', sans-serif;
  --jcp-font-logo: 'Inter', sans-serif;
  --jcp-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Spacing */
  --jcp-container-max: 1280px;
  --jcp-container-padding: 24px;   /* px-6 equivalent */
  --jcp-section-padding: 96px;     /* py-24 equivalent */
  --jcp-navbar-height: 64px;       /* h-16 equivalent */

  /* Transitions */
  --jcp-transition-fast: 150ms;
  --jcp-transition-base: 300ms;
  --jcp-transition-slow: 600ms;
}

/* 3. BASE HTML STYLES */
html {
  font-family: var(--jcp-font-display);
  font-size: 14px;
  color-scheme: light dark;
  scroll-behavior: smooth;
}

body {
  font-family: var(--jcp-font-body);
}

body {
  background-color: var(--jcp-bg-light);
  color: var(--jcp-text-light-main);
  /* Tailwind defaults */
  line-height: inherit;
  margin: 0;
}

html.dark body {
  background-color: var(--jcp-bg-dark);
  color: #ffffff;
}

/* 4. TYPOGRAPHY CLASSES & UTILITIES */
.font-brand-logo {
  font-family: var(--jcp-font-logo);
  letter-spacing: 0.02em;
}

.font-brand-display {
  font-family: var(--jcp-font-display);
}

/* 5. LOGO COMPONENT */
.brand-logo {
  display: flex;
  align-items: center;
  font-family: var(--jcp-font-logo);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.125rem; /* text-lg */
}

.brand-logo-text-main {
  color: var(--jcp-text-light-main);
}
html.dark .brand-logo-text-main {
  color: #ffffff;
}

.brand-logo-text-accent {
  color: var(--jcp-primary);
}

/* 6. COMPONENT PATTERNS via Utility Classes 
   (Note: Since the codebase heavily uses Tailwind classes directly in HTML, 
   we provide CSS variables that map to these needs, but for a standalone 
   brand CSS, here are the component classes associated with JCP vision)
*/

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem; /* h-12 */
  padding-left: 2rem; /* px-8 */
  padding-right: 2rem;
  background-color: var(--jcp-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem; /* text-sm */
  border-radius: 0.375rem; /* rounded-md */
  transition: all var(--jcp-transition-fast);
  position: relative;
  overflow: hidden;
}

html.dark .btn-primary {
  color: var(--jcp-bg-dark);
}

.btn-primary:hover {
  background-color: var(--jcp-primary-dark);
}

html.dark .btn-primary:hover {
  background-color: #ffffff;
  color: #000000;
}

/* 7. CARD COMPONENTS */
.card-base {
  background-color: #ffffff;
  border: 1px solid var(--jcp-border-light);
  border-radius: 0.75rem; /* rounded-xl */
  padding: 2rem;
  transition: all var(--jcp-transition-base);
}

html.dark .card-base {
  background-color: var(--jcp-surface-dark);
  border-color: var(--jcp-border-dark-opacity);
}

.card-base:hover {
  border-color: rgba(104, 222, 126, 0.5); /* primary/50 */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 8. FORM ELEMENTS */
.form-input {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #d1d5db; /* gray-300 */
  color: var(--jcp-text-light-main);
  padding: 0.75rem 1rem;
  border-radius: 0.375rem; /* rounded-md */
  transition: border-color 0.2s, box-shadow 0.2s;
}

html.dark .form-input {
  background-color: var(--jcp-bg-dark);
  border-color: var(--jcp-border-dark-opacity);
  color: #ffffff;
}

.form-input:focus {
  outline: none;
  border-color: var(--jcp-primary);
  box-shadow: 0 0 0 1px var(--jcp-primary);
}

/* 9. UTILITY CLASSES */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, var(--jcp-primary-dark), #059669); /* emerald-600 */
}

html.dark .text-gradient {
  background-image: linear-gradient(to right, var(--jcp-primary), #34d399); /* emerald-400 */
}

/* 10. ANIMATIONS */
/* Animations are site-specific and handled in styles.css */
