/* Custom styles for Junior Gig */

/* Base styles and overrides */
:root {
  --color-primary: #4B6DBA;  /* Primary Blue */
  --color-primary-dark: #3A5AA0;
  --color-primary-light: #7089C9;
  --color-accent: #F6B041;  /* Accent Yellow/Orange */
  --color-accent-dark: #E59D2E;
  --color-accent-light: #F9C66A;
  --color-bg: #FAF6E9;  /* Light Cream Background */
  --color-gray-dark: #334155;
  --color-gray: #64748b;
  --color-gray-light: #94a3b8;
}

body {
  font-family: 'Fredoka One', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-gray-dark);
  line-height: 1.5;
  background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-gray-dark);
}

a {
  color: var(--color-primary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
}

/* Map styles */
.map-container {
  width: 100%;
  height: 60vh;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .map-container {
    height: 70vh;
  }
}

.vendor-popup {
  text-align: center;
}

.vendor-popup h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.vendor-popup a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-primary);
  color: white;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  text-decoration: none;
}

/* Product card styling */
.product-card {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-details {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 700;
  color: var(--color-accent);
  margin-top: auto;
}

/* Form styling */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-gray-dark);
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(75, 109, 186, 0.2);
  outline: none;
}

/* Category badges */
.category-badge {
  display: inline-block;
  background-color: rgba(246, 176, 65, 0.2);
  color: var(--color-accent-dark);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Order status badges */
.status-pending {
  background-color: #fff7ed;
  color: #9a3412;
}

.status-processing {
  background-color: #ecfdf5;
  color: #065f46;
}

.status-completed {
  background-color: #f0fdfa;
  color: #0f766e;
}

.status-cancelled {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* Alert styling */
.alert {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #ecfdf5;
  border-left: 4px solid #10b981;
  color: #065f46;
}

.alert-danger {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #b91c1c;
}

.alert-warning {
  background-color: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #92400e;
}

.alert-info {
  background-color: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e40af;
}

/* Loading state */
.loading {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile responsiveness refinements */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
}

/* Copy to clipboard notification */
.clipboard-notification {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 50;
}

.clipboard-notification.show {
  transform: translateY(0);
  opacity: 1;
}
