/* Custom CSS for HiveTools */

:root {
  --bs-primary: #e31337;
  --bs-primary-rgb: 227, 19, 55;
  --bs-primary-dark: #b30f2c;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --hive-red: #e31337;
  --hive-dark-red: #b30f2c;
}

/* Theme-specific custom colors */
/* Dark theme removed for now */

/* Custom utility classes */
.text-purple {
  color: #6f42c1 !important;
}

.bg-gradient-primary {
  background: linear-gradient(45deg, var(--bs-primary), var(--bs-primary-dark)) !important;
}

/* Navigation enhancements */
.navbar {
  background-color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--bs-dark) !important;
  font-weight: 600;
}

.navbar-nav .nav-link {
  color: var(--bs-dark) !important;
  transition: color 0.2s ease, background-color 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
  color: var(--bs-primary) !important;
  background-color: rgba(227, 19, 55, 0.05);
}


/* Card enhancements */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Dark theme card overrides removed */

/* Button enhancements */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(45deg, var(--bs-primary), var(--bs-primary-dark));
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--bs-primary-dark), #9c0d26);
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1rem rgba(227, 19, 55, 0.25);
}

/* Form enhancements */
.form-control, .form-select {
  border-radius: 0.5rem;
  border: 1.5px solid var(--bs-border-color);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(227, 19, 55, 0.25);
}

/* Alert enhancements */
.alert {
  border-radius: 0.75rem;
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Badge enhancements */
.badge {
  border-radius: 0.5rem;
  font-weight: 500;
}

/* Tool card specific styles */
.tool-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Dark theme tool-card overrides removed */

.tool-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(45deg, var(--bs-primary), var(--bs-primary-dark));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Hero circle - ensure perfect round and responsive size */
.hero-circle {
  width: clamp(140px, 20vw, 200px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}



/* Scale center icon responsively */
.hero-circle i {
  font-size: clamp(2.5rem, 7vw, 4rem);
}

/* Footer enhancements */
footer {
  background-color: var(--bs-light) !important;
}

/* Dark theme footer overrides removed */

.social-links a {
  transition: color 0.2s ease;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--bs-primary) !important;
}

/* Loading animations */
.spinner-grow-sm {
  width: 1rem;
  height: 1rem;
}

/* Utility classes */
.min-vh-100 {
  min-height: 100vh;
}

.shadow-hover {
  transition: box-shadow 0.15s ease-in-out;
}

.shadow-hover:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .tool-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--bs-light);
}

::-webkit-scrollbar-thumb {
  background: var(--bs-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bs-primary);
}

/* Dark theme scrollbar overrides removed */

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

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

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

.pulse-hover:hover {
  animation: pulse 0.3s ease-in-out;
}
