/* File CSS base per implementare lo stile grafico AstraCode */

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

/* Animazioni */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Layout base */
.min-h-screen { min-height: 100vh; }
.container { width: 100%; padding-right: 1rem; padding-left: 1rem; margin-right: auto; margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-3 { padding: 0.75rem; }
.p-2 { padding: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mr-4 { margin-right: 1rem; }
.ml-4 { margin-left: 1rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-10 { margin-top: 2.5rem; }

/* Flexbox */
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.gap-8 { gap: 2rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-2 { row-gap: 0.5rem; }

/* Colors - AstraCode Palette */
.bg-white { background-color: #ffffff; }
.bg-indigo-600 { background-color: #4f46e5; } /* AstraCode primary indigo */
.bg-indigo-100 { background-color: #e0e7ff; } /* Light indigo */
.bg-indigo-50 { background-color: #eef2ff; } /* Very light indigo */
.bg-purple-700 { background-color: #6d28d9; } /* Secondary purple */
.bg-purple-100 { background-color: #ede9fe; } /* Light purple */
.bg-purple-50 { background-color: #f5f3ff; } /* Very light purple */
.bg-amber-50 { background-color: #fffbeb; } /* Very light amber for notifications */
.bg-gray-50 { background-color: #f9fafb; } /* Very light gray for backgrounds */
.bg-gray-100 { background-color: #f3f4f6; } /* Light gray for card backgrounds */
.bg-green-100 { background-color: #d1fae5; } /* Light green for success states */
.bg-red-100 { background-color: #fee2e2; } /* Light red for warnings */
.from-indigo-500 { --tw-gradient-from: #6366f1; } /* Start gradient color */
.to-purple-600 { --tw-gradient-to: #7c3aed; } /* End gradient color */
.from-gray-50 { --tw-gradient-from: #f9fafb; } /* Light gradient start */
.to-gray-100 { --tw-gradient-to: #f3f4f6; } /* Light gradient end */

.text-white { color: #ffffff; }
.text-indigo-600 { color: #4f46e5; } /* AstraCode primary text */
.text-indigo-100 { color: #e0e7ff; } /* Light indigo text */
.text-indigo-700 { color: #4338ca; } /* Darker indigo text */
.text-gray-800 { color: #1f2937; } /* Dark gray - primary text */
.text-gray-700 { color: #374151; } /* Medium-dark gray - secondary text */
.text-gray-900 { color: #111827; } /* Very dark gray - for emphasis */
.text-gray-600 { color: #4b5563; } /* Medium gray - tertiary text */
.text-gray-500 { color: #6b7280; } /* Light gray - for less important text */
.text-gray-400 { color: #9ca3af; } /* Very light gray - placeholder text */
.text-purple-600 { color: #7c3aed; } /* Secondary purple text */
.text-purple-700 { color: #6d28d9; } /* Darker purple text */
.text-purple-500 { color: #8b5cf6; } /* Medium purple text */
.text-amber-800 { color: #92400e; } /* Dark amber - for warnings */
.text-amber-600 { color: #d97706; } /* Medium amber */
.text-red-600 { color: #dc2626; } /* Medium red - for errors/warnings */
.text-green-600 { color: #059669; } /* Medium green - for success */

/* Typography - AstraCode Style */
body { 
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1f2937; 
  line-height: 1.5;
}
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; letter-spacing: -0.025em; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.0125em; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* Borders - AstraCode Style */
.rounded-xl { border-radius: 0.5rem; }
.rounded-lg { border-radius: 0.375rem; }
.rounded-full { border-radius: 9999px; }
.rounded-r-md { border-top-right-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-amber-500 { border-color: #f59e0b; }
.border-red-400 { border-color: #f87171; }

/* Effects - AstraCode Style */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

/* Responsive design */
@media (min-width: 768px) {
  .md\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:block { display: block; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Utilities */
.hidden { display: none; }
.sticky { position: sticky; }
.top-6 { top: 1.5rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-2xl { max-width: 42rem; }
.flex-shrink-0 { flex-shrink: 0; }
.text-center { text-align: center; }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.hover\:bg-indigo-100:hover { background-color: #e0e7ff; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:text-indigo-700:hover { color: #4338ca; }
.hover\:underline:hover { text-decoration: underline; }
.transition { transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pt-8 { padding-top: 2rem; }
.pl-6 { padding-left: 1.5rem; }

/* AstraCode-specific enhancements */
section { 
  animation: fadeIn 0.5s ease-in-out;
  transition: all 0.2s ease-in-out; 
  border-radius: 0.5rem;
}
section:hover { 
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
a.block { 
  transition: all 0.2s ease; 
  border-radius: 0.375rem;
}
a.block:hover { 
  transform: translateX(2px);
  background-color: #f3f4f6;
}
h1, h2, h3, h4 { 
  letter-spacing: -0.025em;
  color: #111827;
}
.bg-gradient-to-r.from-indigo-500.to-purple-600 { 
  background-image: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
}
.bg-gradient-to-b.from-gray-50.to-gray-100 {
  background-image: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%); 
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}
.btn-primary {
  background-color: #4f46e5;
  color: white;
}
.btn-primary:hover {
  background-color: #4338ca;
}
.btn-outline {
  border: 1px solid #d1d5db;
  color: #4b5563;
}
.btn-outline:hover {
  background-color: #f3f4f6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
} 