/* 
 * new_styles.css
 * Custom styles for the EU Jobs Brussels website redesign
 */

/* Import Tailwind CSS */
@import 'https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css';

/* Custom Font Configuration */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Merriweather', Georgia, Cambria, 'Times New Roman', Times, serif;
}

/* Base Styles */
body {
  font-family: var(--font-sans);
  color: #111827;
  line-height: 1.5;
}

.font-serif {
  font-family: var(--font-serif);
}

/* Custom Tailwind Extensions */

/* Animation Utilities */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 500ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

/* Custom Purple Colors (extending Tailwind palette) */
.bg-purple-900 {
  background-color: #581c87;
}

.bg-purple-800 {
  background-color: #6b21a8;
}

.bg-purple-700 {
  background-color: #7e22ce;
}

.bg-purple-600 {
  background-color: #9333ea;
}

.bg-purple-500 {
  background-color: #a855f7;
}

.bg-purple-400 {
  background-color: #c084fc;
}

.bg-purple-300 {
  background-color: #d8b4fe;
}

.bg-purple-200 {
  background-color: #e9d5ff;
}

.bg-purple-100 {
  background-color: #f3e8ff;
}

.bg-purple-50 {
  background-color: #faf5ff;
}

.text-purple-900 {
  color: #581c87;
}

.text-purple-800 {
  color: #6b21a8;
}

.text-purple-700 {
  color: #7e22ce;
}

.text-purple-600 {
  color: #9333ea;
}

.text-purple-500 {
  color: #a855f7;
}

.text-purple-400 {
  color: #c084fc;
}

.text-purple-300 {
  color: #d8b4fe;
}

.text-purple-200 {
  color: #e9d5ff;
}

.text-purple-100 {
  color: #f3e8ff;
}

.border-purple-800 {
  border-color: #6b21a8;
}

.border-purple-700 {
  border-color: #7e22ce;
}

.border-purple-600 {
  border-color: #9333ea;
}

.border-purple-500 {
  border-color: #a855f7;
}

.hover\:bg-purple-900:hover {
  background-color: #581c87;
}

.hover\:bg-purple-800:hover {
  background-color: #6b21a8;
}

.hover\:bg-purple-700:hover {
  background-color: #7e22ce;
}

.hover\:bg-purple-600:hover {
  background-color: #9333ea;
}

.hover\:text-purple-800:hover {
  color: #6b21a8;
}

.focus\:ring-purple-800:focus {
  --tw-ring-color: #6b21a8;
}

.focus\:ring-purple-500:focus {
  --tw-ring-color: #a855f7;
}

/* Box Shadow Utilities */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.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-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Focus Ring Utilities */
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}

/* Form Element Styles */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* Custom Component Styles */
.job-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Hover Effects */
.transform {
  transform-origin: center;
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:translate-x-1:hover {
  transform: translateX(0.25rem);
}

/* Helper Classes */
.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .md\:hidden {
    display: none;
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  
  .md\:grid {
    display: grid;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Utilities for Extended Colors */
.blur-xl {
  --tw-blur: blur(24px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}