/**
 * Cardano Hub Utility Classes
 * Tailwind-style utility classes for quick styling
 */

/* Background Colors */
.bg-primary { background-color: var(--color-primary) !important; }
.bg-primary-dark { background-color: var(--color-primary-dark) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-secondary-dark { background-color: var(--color-secondary-dark) !important; }
.bg-light-blue { background-color: var(--color-accent-light-blue) !important; }
.bg-light { background-color: var(--color-background-light) !important; }

/* Text Colors */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-dark { color: var(--color-text-dark) !important; }
.text-light { color: var(--color-text-light) !important; }

/* Border Colors */
.border-primary { border-color: var(--color-primary) !important; }
.border-secondary { border-color: var(--color-secondary) !important; }

/* Hover States */
.hover-primary:hover { background-color: var(--color-primary) !important; }
.hover-secondary:hover { background-color: var(--color-secondary) !important; }
.hover-text-primary:hover { color: var(--color-primary) !important; }
.hover-text-secondary:hover { color: var(--color-secondary) !important; }

/* Typography */
.font-heading { font-family: 'Unbounded', sans-serif !important; }
.font-body { font-family: 'Lexend', sans-serif !important; }

/* Spacing Utilities */
.section-padding { padding: 4rem 2rem; }
.section-padding-lg { padding: 6rem 2rem; }

@media (max-width: 768px) {
  .section-padding { padding: 3rem 1.5rem; }
  .section-padding-lg { padding: 4rem 1.5rem; }
}

/* Card Utilities */
.card-shadow { box-shadow: 0 4px 16px rgba(0, 51, 173, 0.1); }
.card-shadow-lg { box-shadow: 0 8px 32px rgba(0, 51, 173, 0.15); }
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 51, 173, 0.2);
}

/* Rounded Corners */
.rounded-card { border-radius: 1rem; }
.rounded-button { border-radius: 0.75rem; }
.rounded-badge { border-radius: 2rem; }

/* Flex Utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Grid Utilities */
.grid-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-community {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

@media (max-width: 640px) {
  .grid-events,
  .grid-community {
    grid-template-columns: 1fr;
  }
}

/* Animation Utilities */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Button Utilities */
.btn-base {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  line-height: 1.5;
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
}

/* Button Color Variants */
.btn-blue {
  background-color: #0033AD;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 51, 173, 0.2);
}

.btn-blue:hover {
  background-color: #002080;
  box-shadow: 0 4px 12px rgba(0, 51, 173, 0.3);
  transform: translateY(-2px);
}

.btn-yellow {
  background-color: #FFD700;
  color: #000000;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.btn-yellow:hover {
  background-color: #FFC700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

/* Button Width Utilities */
.btn-block {
  display: block;
  width: 100%;
}

.btn-auto {
  width: auto;
}

/* Container Utilities */
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Overlay Utilities */
.overlay-dark {
  position: relative;
}

.overlay-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.overlay-dark > * {
  position: relative;
  z-index: 2;
}

/* Gradient Utilities */
.gradient-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
}

/* Divider Utilities */
.divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 2rem 0;
}

.divider-thick {
  height: 2px;
  background-color: var(--color-primary);
  margin: 3rem 0;
}

/* Footer Override - White Background for Cardano Hub */
body footer,
body .site-footer,
footer.bg-background {
  background-color: #FFFFFF !important;
  color: #1a1a1a !important;
}

body footer a,
body .site-footer a {
  color: #1a1a1a !important;
}

body footer a:hover,
body .site-footer a:hover {
  color: #0033AD !important;
}
