/* Enhanced Styles for GoalTalents */

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Enhanced Navigation */
.nav-item {
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-item:hover::after {
  width: 100%;
}

/* Enhanced Buttons */
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Enhanced Form Inputs */
.form-input {
  position: relative;
}

.form-input:focus {
  transform: translateY(-1px);
}

.form-group {
  position: relative;
}

.form-label {
  transition: all 0.3s;
}

.form-input:focus + .form-label {
  color: var(--primary-color);
  font-weight: 600;
}

/* Loading Animation */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-box {
  height: 100px;
  margin-bottom: 16px;
  border-radius: 8px;
}

/* Enhanced Dropdowns */
.dropdown {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
}

.dropdown a {
  position: relative;
  overflow: hidden;
}

.dropdown a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background-color: var(--primary-color);
  transition: height 0.3s;
}

.dropdown a:hover::before {
  height: 100%;
}

/* Enhanced Notifications */
.notification {
  animation: slideIn 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.notification.success {
  background: linear-gradient(to right, rgba(46,204,113,0.1), rgba(255,255,255,0.95));
}

.notification.error {
  background: linear-gradient(to right, rgba(231,76,60,0.1), rgba(255,255,255,0.95));
}

.notification.warning {
  background: linear-gradient(to right, rgba(243,156,18,0.1), rgba(255,255,255,0.95));
}

.notification.info {
  background: linear-gradient(to right, rgba(52,152,219,0.1), rgba(255,255,255,0.95));
}

/* Progress Indicator */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  z-index: 10001;
}

/* Enhanced Modal */
.modal-content {
  animation: modalBounce 0.5s ease;
}

@keyframes modalBounce {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Enhanced Mobile Menu */
.mobile-menu-toggle {
  position: relative;
  width: 30px;
  height: 30px;
}

.mobile-menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 6px;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 14px;
}

.mobile-menu-toggle span:nth-child(3) {
  top: 22px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 14px;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 14px;
}

/* Enhanced Search */
.search-container {
  position: relative;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-results.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background-color: var(--primary-light);
}

.search-result-item:last-child {
  border-bottom: none;
}

/* Enhanced Tooltips */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background-color: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  pointer-events: none;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-12px);
}

/* Accessibility Improvements */
.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 */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline-offset: 4px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  a {
    text-decoration: underline;
  }
  
  a[href^="http"]:after {
    content: " (" attr(href) ")";
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Football emoji styling */
.dropdown a::before {
  content: '';
  display: inline-block;
  width: 20px;
  text-align: center;
  margin-right: 8px;
}

.dropdown a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
}

/* Remove default emoji style */
.dropdown a,
#accountDropdown a {
  font-size: 14px;
  line-height: 1.6;
}

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

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

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

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

/* Performance Optimizations */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}

/* 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;
  }
}