/* African Calendar Styles - Matching The African Man Podcast Design */

.african-calendar-display {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.african-calendar-display .calendar-title {
  color: #ffd700;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.african-calendar-display .calendar-section {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border-left: 4px solid #ffd700;
}

.african-calendar-display .calendar-label {
  color: #ffd700;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.african-calendar-display .calendar-value {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.african-calendar-display .market-status {
  font-size: 0.85rem;
  margin-top: 8px;
}

.african-calendar-display .market-day-active {
  color: #4ade80;
  font-weight: 600;
  background: rgba(74, 222, 128, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.african-calendar-display .market-day-inactive {
  color: #94a3b8;
  font-weight: 500;
}

/* Compact Version */
.african-calendar-compact {
  background: rgba(26, 26, 46, 0.8);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.african-calendar-compact .calendar-item {
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.african-calendar-compact .market-day {
  color: #4ade80;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 8px;
  text-align: center;
  background: rgba(74, 222, 128, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Calendar Toggle Controls */
.african-calendar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}

.african-calendar-controls button {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1a2e;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.african-calendar-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.african-calendar-controls button.active {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.african-calendar-controls button.inactive {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  box-shadow: none;
}

/* Festival Calendar */
.african-festival-calendar {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.african-festival-calendar h3 {
  color: #ffd700;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.festival-section {
  margin-bottom: 20px;
}

.festival-section h4 {
  color: #ffd700;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 8px;
}

.festival-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid #ffd700;
}

.festival-item .festival-name {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 4px;
}

.festival-item .festival-date {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .african-calendar-display {
    padding: 16px;
    margin: 16px 0;
  }
  
  .african-calendar-display .calendar-title {
    font-size: 1.3rem;
  }
  
  .african-calendar-display .calendar-section {
    padding: 12px;
  }
  
  .african-calendar-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .african-calendar-controls button {
    width: 100%;
    max-width: 200px;
  }
}

/* Animation for calendar updates */
.african-calendar-display {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Loading state */
.african-calendar-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: #ffd700;
  font-size: 1.1rem;
}

.african-calendar-loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-top: 2px solid #ffd700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

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

