/* ================================================================
   BONGOSOUL MAIN CSS
   Single entry point for all styles
   Modern design system - Tanzanian Tech aesthetic
================================================================ */

/* ── Core Foundation ── */
@import url('core/01-reset.css');
@import url('core/02-tokens.css');
@import url('core/03-typography.css');
@import url('core/04-utilities.css');

/* ── Components ── */
@import url('components/navbar.css');
@import url('components/mobile-menu.css');
@import url('components/footer.css');

/* ── Theme Toggle FAB ── */
.theme-fab {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--gradient-hero);
  border: none;
  color: white;
  font-size: var(--text-xl);
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  z-index: var(--z-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  overflow: hidden;
}

.theme-fab:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow-glow);
}

.theme-fab:active {
  transform: scale(0.95);
}

.theme-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  animation: ripple-effect 0.6s ease-out;
}

@keyframes ripple-effect {
  to {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

/* ── Main Content Area ── */
.main-content {
  min-height: 60vh;
  width: 100%;
}

/* ── Basic Card Styles ── */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.08);
}

.card-content {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--ff-head);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.card-excerpt {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex: 1;
}

/* ── Button System ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-hero);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-bg-secondary);
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.btn-outline:hover {
  background: var(--brand-primary);
  color: white;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(255, 107, 53, 0.1);
  color: var(--brand-primary);
}

.badge-success {
  background: rgba(6, 214, 160, 0.1);
  color: var(--brand-success);
}

.badge-warning {
  background: rgba(255, 210, 63, 0.1);
  color: var(--brand-warning);
}

/* ── Loading States ── */
.loading-spinner {
  border: 3px solid rgba(255, 107, 53, 0.1);
  border-top: 3px solid var(--brand-primary);
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

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

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

/* ── Responsive Grid Helpers ── */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-auto {
    gap: var(--space-8);
  }
}

/* ── Section Spacing ── */
.section {
  padding: var(--space-16) var(--space-4);
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-20) var(--space-6);
  }
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-24) var(--space-8);
  }
}
