/* Puncher Brand Theme
   ערכת עיצוב מלאה המבוססת על הלוגו והמותג */

/* ========================================
   1. CSS Variables
   ======================================== */
:root {
  /* Brand Colors */
  --color-primary: #0C1E30;
  --color-primary-light: #1A3B59;
  --color-primary-dark: #081420;
  
  --color-accent: #FF8A4C;
  --color-accent-light: #FFB088;
  --color-accent-dark: #E06A2C;
  
  --color-flame: #FF6B2C;
  --color-flame-light: #FF8F5E;
  --color-flame-dark: #E05510;
  
  /* Functional Colors */
  --color-success: #16A34A;
  --color-success-light: #22C55E;
  --color-error: #EF4444;
  --color-error-light: #F87171;
  --color-warning: #EAB308;
  --color-warning-light: #FACC15;
  --color-info: #3B82F6;
  
  /* Surface Colors */
  --color-surface: #122B43;
  --color-surface-light: #1A3B59;
  --color-surface-dark: #0A1728;
  
  /* Text Colors */
  --color-text: #FFFFFF;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #94A3B8; /* Lightened for WCAG AA compliance (was #64748B which failed contrast) */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0C1E30 0%, #1A3B59 100%);
  --gradient-accent: linear-gradient(135deg, #FF8A4C 0%, #FF6B2C 100%);
  --gradient-flame: linear-gradient(135deg, #FF6B2C 0%, #E05510 100%);
  --gradient-success: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);
  --gradient-hero: linear-gradient(135deg, #0C1E30 0%, #1A3B59 50%, #FF8A4C 100%);
  
  /* Typography */
  --font-display: 'Suez One', Georgia, serif;
  --font-body: 'Rubik', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* 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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-accent: 0 4px 12px rgba(255, 138, 76, 0.3);
  --shadow-accent-hover: 0 6px 16px rgba(255, 138, 76, 0.4);
  --shadow-flame: 0 4px 12px rgba(255, 107, 44, 0.3);
  --shadow-flame-hover: 0 6px 16px rgba(255, 107, 44, 0.4);
  
  /* Animations */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;
  --duration-slower: 500ms;
  
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-sharp: cubic-bezier(0.4, 0, 0.6, 1);
}

/* ========================================
   2. Keyframe Animations
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes flame {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  25% { transform: scale(1.05) rotate(-2deg); opacity: 0.9; }
  50% { transform: scale(1.1) rotate(0deg); opacity: 1; }
  75% { transform: scale(1.05) rotate(2deg); opacity: 0.9; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 138, 76, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 138, 76, 0.6); }
}

/* Logo Animations */
@keyframes flame-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes flame-rise {
  0% { transform: translateY(0) scaleY(1); opacity: 0.6; }
  50% { transform: translateY(-20px) scaleY(1.2); opacity: 0.3; }
  100% { transform: translateY(-40px) scaleY(0.8); opacity: 0; }
}

@keyframes splash-bounce {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  60% { transform: scale(1.1) rotate(10deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes success-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes draw-check {
  0% { stroke-dasharray: 100; stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

/* Icon Animations */
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes icon-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes icon-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* Brand Component Classes */
.icon-animated:hover {
  animation: icon-bounce 0.6s ease;
}

.brand-icon {
  transition: all var(--duration-fast) var(--ease-default);
}

.brand-icon:hover {
  transform: scale(1.1);
}

.icon-flame {
  animation: flame-pulse 2s ease-in-out infinite;
  transform-origin: center bottom;
}

.logo-blade {
  animation: icon-bounce 3s ease-in-out infinite;
}

.logo-handle {
  animation: icon-pulse 3s ease-in-out infinite;
}

.logo-hat {
  animation: icon-bounce 2.5s ease-in-out infinite;
  transform-origin: center bottom;
}

.logo-hat-band {
  animation: icon-pulse 2.5s ease-in-out infinite 0.2s;
}

.logo-flame {
  animation: flame-pulse 1.5s ease-in-out infinite;
  transform-origin: center bottom;
}

/* ========================================
   3. Base Styles
   ======================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   4. Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 30px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
  font-family: var(--font-body);
  line-height: 1.5;
  margin: 0;
}

/* ========================================
   5. Brand Components
   ======================================== */

/* Brand Button */
.brand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
  font-family: var(--font-body);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.brand-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.brand-button:hover::before {
  left: 100%;
}

.brand-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.brand-button--primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow-accent);
}

.brand-button--primary:hover:not(:disabled) {
  background: var(--gradient-flame);
  box-shadow: var(--shadow-accent-hover);
  transform: translateY(-2px);
}

.brand-button--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-primary-light);
}

.brand-button--secondary:hover:not(:disabled) {
  background: var(--color-surface-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.brand-button--ghost {
  background: transparent;
  color: var(--color-accent);
}

.brand-button--ghost:hover:not(:disabled) {
  background: rgba(255, 138, 76, 0.1);
}

.brand-button--danger {
  background: var(--color-error);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.brand-button--danger:hover:not(:disabled) {
  background: var(--color-error-light);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

/* Brand Card */
.brand-card {
  background: var(--color-surface);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-default);
}

.brand-card--accent {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-primary-light) 100%);
  border: 2px solid var(--color-accent);
}

.brand-card--highlight {
  background: var(--color-primary-light);
  border: 2px solid var(--color-flame);
  box-shadow: var(--shadow-flame);
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Brand Input */
.brand-input__field {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface-dark);
  border: 2px solid var(--color-primary-light);
  border-radius: var(--radius-lg);
  outline: none;
  transition: all var(--duration-fast) var(--ease-default);
}

.brand-input__field:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.brand-input--error .brand-input__field {
  border-color: var(--color-error);
}

.brand-input--error .brand-input__field:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Brand Badge */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-family: var(--font-body);
}

.brand-badge--default {
  background: rgba(255, 138, 76, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(255, 138, 76, 0.3);
}

.brand-badge--success {
  background: rgba(22, 163, 74, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.brand-badge--error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.brand-badge--warning {
  background: rgba(234, 179, 8, 0.1);
  color: var(--color-warning);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.brand-badge--info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Brand Animation */
.brand-animation--fadeIn {
  animation: fadeIn var(--duration-normal) var(--ease-default) both;
}

.brand-animation--slideUp {
  animation: slideUp var(--duration-normal) var(--ease-default) both;
}

.brand-animation--slideDown {
  animation: slideDown var(--duration-normal) var(--ease-default) both;
}

.brand-animation--scaleIn {
  animation: scaleIn var(--duration-normal) var(--ease-default) both;
}

.brand-animation--bounce {
  animation: bounce var(--duration-slow) var(--ease-bounce) both;
}

.brand-animation--pulse {
  animation: pulse 2s var(--ease-default) infinite;
}

.brand-animation--spin {
  animation: spin 1s linear infinite;
}

.brand-animation--flame {
  animation: flame 3s var(--ease-default) infinite;
}

/* Brand Divider */
.brand-divider--default {
  height: 1px;
  background: var(--color-primary-light);
  margin: 24px 0;
}

.brand-divider--accent {
  height: 2px;
  background: var(--color-accent);
  margin: 24px 0;
}

.brand-divider--gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: 24px 0;
}

/* ========================================
   6. Utility Classes
   ======================================== */
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-flame { color: var(--color-flame); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-warning { color: var(--color-warning); }
.text-info { color: var(--color-info); }

.bg-primary { background: var(--color-primary); }
.bg-accent { background: var(--color-accent); }
.bg-flame { background: var(--color-flame); }
.bg-surface { background: var(--color-surface); }

.gradient-primary { background: var(--gradient-primary); }
.gradient-accent { background: var(--gradient-accent); }
.gradient-flame { background: var(--gradient-flame); }
.gradient-hero { background: var(--gradient-hero); }

.shadow-accent { box-shadow: var(--shadow-accent); }
.shadow-flame { box-shadow: var(--shadow-flame); }

.radius-sm { border-radius: var(--radius-sm); }
.radius-md { border-radius: var(--radius-md); }
.radius-lg { border-radius: var(--radius-lg); }
.radius-xl { border-radius: var(--radius-xl); }
.radius-2xl { border-radius: var(--radius-2xl); }
.radius-full { border-radius: var(--radius-full); }

/* ========================================
   7. Responsive Design
   ======================================== */
@media (max-width: 640px) {
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }
  
  .brand-section {
    padding: 32px 16px;
  }
}

/* ========================================
   8. Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   9. High Contrast Mode
   ======================================== */
@media (prefers-contrast: high) {
  .brand-button {
    border-width: 2px;
  }
  
  .brand-card {
    border-width: 2px;
  }
}
