/* global.css - Consolidated styles for SlideGen application */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Audiowide:wght@400&display=swap');

/* CSS Custom Properties */
:root {
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-light: #fb923c;
  --primary-50: #fff7ed;
  --primary-100: #ffedd5;
  --primary-200: #fed7aa;
  --primary-300: #fdba74;
  --primary-400: #fb923c;
  --primary-500: #f97316;
  --primary-600: #ea580c;
  --primary-700: #c2410c;
  --primary-800: #9a3412;
  --primary-900: #7c2d12;
}

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #ffffff;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* SVG Flame Animation Styles */
svg .svg-elem-3 {
  stroke-dashoffset: 358.17120361328125px;
  stroke-dasharray: 358.17120361328125px;
  fill: transparent !important;
  transition: stroke-dashoffset 1s ease-out 0.24s,
              fill 0.7s ease-out 1s;
}

svg.active .svg-elem-3 {
  stroke-dashoffset: 0;
  fill: rgb(252, 251, 251) !important;
}

svg .svg-elem-4 {
  stroke-dashoffset: 348.9036560058594px;
  stroke-dasharray: 348.9036560058594px;
  fill: transparent !important;
  transition: stroke-dashoffset 1s ease-out 0.36s,
              fill 0.7s ease-out 1.1s;
}

svg.active .svg-elem-4 {
  stroke-dashoffset: 0;
  fill: rgb(251, 155, 27) !important;
}

svg .svg-elem-5 {
  stroke-dashoffset: 321.2957763671875px;
  stroke-dasharray: 321.2957763671875px;
  fill: transparent !important;
  transition: stroke-dashoffset 1s ease-out 0.48s,
              fill 0.7s ease-out 1.2s;
}

svg.active .svg-elem-5 {
  stroke-dashoffset: 0;
  fill: rgb(251, 110, 48) !important;
}

svg .svg-elem-6 {
  stroke-dashoffset: 127.00608825683594px;
  stroke-dasharray: 127.00608825683594px;
  fill: transparent !important;
  transition: stroke-dashoffset 1s ease-out 0.6s,
              fill 0.7s ease-out 1.3s;
}

svg.active .svg-elem-6 {
  stroke-dashoffset: 0;
  fill: rgb(251, 66, 68) !important;
}

/* Keyframe Animations */
@keyframes accentPulse {
  0%, 100% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

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

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-primary {
  background-color: #f97316;
  color: white;
}

.btn-primary:hover {
  background-color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

/* Form Elements */
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #f97316;
}

/* Card Component */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 24px;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Loading States */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #f97316;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1f2937;
    color: #f9fafb;
  }
  
  .logo {
    background: #374151;
  }
  
  .card {
    background: #374151;
    color: #f9fafb;
  }
  
  input, textarea, select {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }
  
  .btn-secondary {
    background-color: #4b5563;
    color: #f9fafb;
  }
  
  .btn-secondary:hover {
    background-color: #6b7280;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* Tailwind-compatible Utility Classes */
.bg-primary {
  background-color: var(--primary) !important;
  background-color: #f97316 !important;
}

.text-primary {
  color: var(--primary) !important;
  color: #f97316 !important;
}

.hover\:text-primary:hover {
  color: var(--primary) !important;
  color: #f97316 !important;
}

.hover\:bg-primary:hover {
  background-color: var(--primary) !important;
  background-color: #f97316 !important;
}

.border-primary {
  border-color: var(--primary) !important;
  border-color: #f97316 !important;
}

.focus\:ring-primary:focus {
  --tw-ring-color: var(--primary) !important;
  --tw-ring-color: #f97316 !important;
}

/* Ring utilities for focus states */
.focus\:ring-4:focus {
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3);
}

.focus\:ring-red-300:focus {
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3);
}

.focus\:ring-opacity-75:focus {
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.75);
}

/* Print styles */
@media print {
  .logo-container,
  .btn,
  button {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}


