/* UCI MTB World Series CSR Platform - Custom Styles */

:root {
  --uci-blue: #0066CC;
  --uci-red: #E10600;
  --uci-yellow: #FFD500;
  --uci-green: #00A651;
  --uci-black: #000000;
  
  /* TrailGuard Brand Colors */
  --trailguard-navy: #2B2D42;
  --trailguard-neon-green: #B4F34D;
  --trailguard-hot-pink: #FF0066;
}

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

/* Two-stripe header - TrailGuard colors */
.rainbow-stripe {
  height: 8px;
  background: linear-gradient(to right, 
    var(--trailguard-neon-green) 0%, var(--trailguard-neon-green) 50%,
    var(--trailguard-hot-pink) 50%, var(--trailguard-hot-pink) 100%
  );
}

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

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

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

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

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

/* Button styles */
.btn-primary {
  background-color: var(--uci-blue);
  color: white;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: #0052a3;
  transform: translateY(-1px);
}

.btn-success {
  background-color: var(--uci-green);
  color: white;
  transition: all 0.2s;
}

.btn-success:hover {
  background-color: #008841;
}

/* Status badges */
.badge-draft {
  background-color: #FFC107;
  color: #000;
}

.badge-submitted {
  background-color: #2196F3;
  color: #fff;
}

.badge-approved {
  background-color: #4CAF50;
  color: #fff;
}

.badge-rejected {
  background-color: #F44336;
  color: #fff;
}

/* Chart containers */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

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

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

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.photo-item:hover {
  transform: scale(1.05);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Form styles */
.form-input {
  transition: all 0.2s;
}

.form-input:focus {
  border-color: var(--uci-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
