/* SwissSkillMatch Custom Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

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

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

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Project cards */
.project-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-left-color: #4F46E5;
}

/* Engineer cards */
.engineer-card {
  transition: all 0.3s ease;
}

.engineer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
}

.badge-primary {
  background-color: #EEF2FF;
  color: #4F46E5;
}

.badge-success {
  background-color: #F0FDF4;
  color: #16A34A;
}

.badge-warning {
  background-color: #FEF3C7;
  color: #D97706;
}

.badge-info {
  background-color: #DBEAFE;
  color: #2563EB;
}

/* Rating stars */
.rating-stars {
  color: #FCD34D;
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4F46E5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-success {
  border-left: 4px solid #16A34A;
}

.toast-error {
  border-left: 4px solid #DC2626;
}

.toast-info {
  border-left: 4px solid #2563EB;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Custom focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  ring: 2px;
  ring-color: #4F46E5;
  border-color: #4F46E5;
}

/* Button hover effects */
button {
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* Link styles */
a {
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Canton flags/colors (future enhancement) */
.canton-ti { border-left-color: #DC2626; }
.canton-zh { border-left-color: #2563EB; }
.canton-ge { border-left-color: #DC2626; }
.canton-be { border-left-color: #DC2626; }
.canton-vd { border-left-color: #16A34A; }
